PandA-2024.02
sig_variation.hpp
Go to the documentation of this file.
1 /*
2  *
3  * _/_/_/ _/_/ _/ _/ _/_/_/ _/_/
4  * _/ _/ _/ _/ _/_/ _/ _/ _/ _/ _/
5  * _/_/_/ _/_/_/_/ _/ _/_/ _/ _/ _/_/_/_/
6  * _/ _/ _/ _/ _/ _/ _/ _/ _/
7  * _/ _/ _/ _/ _/ _/_/_/ _/ _/
8  *
9  * ***********************************************
10  * PandA Project
11  * URL: http://panda.dei.polimi.it
12  * Politecnico di Milano - DEIB
13  * System Architectures Group
14  * ***********************************************
15  * Copyright (C) 2004-2024 Politecnico di Milano
16  *
17  * This file is part of the PandA framework.
18  *
19  * The PandA framework is free software; you can redistribute it and/or modify
20  * it under the terms of the GNU General Public License as published by
21  * the Free Software Foundation; either version 3 of the License, or
22  * (at your option) any later version.
23  *
24  * This program is distributed in the hope that it will be useful,
25  * but WITHOUT ANY WARRANTY; without even the implied warranty of
26  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27  * GNU General Public License for more details.
28  *
29  * You should have received a copy of the GNU General Public License
30  * along with this program. If not, see <http://www.gnu.org/licenses/>.
31  *
32  */
37 #ifndef VCD_DATA_HPP
38 #define VCD_DATA_HPP
39 
40 #include <limits>
41 #include <string>
42 
47 {
51  unsigned long long time_stamp;
52 
57  std::string value;
58 
63  unsigned long long duration;
64 
68  sig_variation(unsigned long long ts = 0, std::string val = "",
69  unsigned long long d = std::numeric_limits<decltype(sig_variation::duration)>::max());
70 };
71 
72 bool operator<(const sig_variation& w, const sig_variation& v);
73 bool operator<=(const sig_variation& w, const sig_variation& v);
74 bool operator>(const sig_variation& w, const sig_variation& v);
75 bool operator>=(const sig_variation& w, const sig_variation& v);
76 bool operator==(const sig_variation& w, const sig_variation& v);
77 bool operator!=(const sig_variation& w, const sig_variation& v);
78 
79 bool operator<(const unsigned long long t, const sig_variation& v);
80 bool operator<=(const unsigned long long t, const sig_variation& v);
81 bool operator>(const unsigned long long t, const sig_variation& v);
82 bool operator>=(const unsigned long long t, const sig_variation& v);
83 bool operator==(const unsigned long long t, const sig_variation& v);
84 bool operator!=(const unsigned long long t, const sig_variation& v);
85 
86 bool operator<(const sig_variation& w, const unsigned long long t);
87 bool operator<=(const sig_variation& w, const unsigned long long t);
88 bool operator>(const sig_variation& w, const unsigned long long t);
89 bool operator>=(const sig_variation& w, const unsigned long long t);
90 bool operator==(const sig_variation& w, const unsigned long long t);
91 bool operator!=(const sig_variation& w, const unsigned long long t);
92 
93 #endif
bool operator!=(const sig_variation &w, const sig_variation &v)
bool operator==(const sig_variation &w, const sig_variation &v)
sig_variation(unsigned long long ts=0, std::string val="", unsigned long long d=std::numeric_limits< decltype(sig_variation::duration)>::max())
constructor
bool operator>(const sig_variation &w, const sig_variation &v)
#define max
Definition: backprop.h:17
This class models a single variation of a signal in vcd.
unsigned long long duration
time duration of the value.
std::string value
new value of the signal.
bool operator<=(const sig_variation &w, const sig_variation &v)
bool operator>=(const sig_variation &w, const sig_variation &v)
bool operator<(const sig_variation &w, const sig_variation &v)
unsigned long long time_stamp
time stamp of the variation

Generated on Mon Feb 12 2024 13:02:55 for PandA-2024.02 by doxygen 1.8.13