1 #ifndef _VPPC_SIM_LIB_H_FILE_ 2 #define _VPPC_SIM_LIB_H_FILE_ 15 #define ull unsigned int 16 #define dull unsigned long long 17 #define sull 32 // size of unsigned __int32 18 #define sdull 64 // size of double variable 19 #define mull (0xffffffffUL) // max value 20 #define mdull (0xffffffffffffffffULL) 22 #define max_temp_sig 64 // has to be power of 2 23 #define temp_i_mask (max_temp_sig - 1) // temp signal index mask 25 #define const__p const_s_p 28 #define repeat(a) for (int __rep_counter__ = 0; __rep_counter__ < a; __rep_counter__++) 29 #define Swrite(cl, ...) Sfwrite(stdout_sig, cl, ##__VA_ARGS__) 30 #define Sdisplay(cl, ...) Sfwrite(stdout_sig, (std::string)cl + "\n", ##__VA_ARGS__) 31 #define Sfdisplay(fd,cl, ...) Sfwrite(fd, (std::string)cl + "\n", ##__VA_ARGS__) 42 void bw(
size_t ih,
size_t il);
61 void bw(
size_t h,
size_t l);
63 ull get_ull(
size_t bnum);
64 void set_ull(
size_t bnum,
size_t bcnt,
ull val);
67 void add_dim(
size_t h,
size_t l);
80 ull operator++ (
int){
return *
this = *
this + 1;};
81 ull operator-- (
int){
return *
this = *
this - 1;};
123 friend bool posedge (
signal_&);
124 friend bool negedge (
signal_&);
void Sfwrite(signal_ &fd, std::string format,...)
signal_ Sfopen(std::string fname, std::string mode="w")
mathSSE::Vec4< double > operator|(mathSSE::Vec4< double > a, mathSSE::Vec4< double > b)
MatrixMeschach operator+(const MatrixMeschach &mat1, const MatrixMeschach &mat2)
void add_dim(size_t h, size_t l)
signal_ & const_s(size_t sz, unsigned long long val)
mathSSE::Vec4< double > operator&(mathSSE::Vec4< double > a, mathSSE::Vec4< double > b)
MatrixMeschach operator-(const MatrixMeschach &mat1, const MatrixMeschach &mat2)
Basic3DVector & operator-=(const Basic3DVector< U > &p)
bool operator!=(debugging_allocator< X > const &, debugging_allocator< Y > const &)
int Ssscanf(signal_ &line, std::string format,...)
void bw(size_t ih, size_t il)
int Sfgets(signal_ &line, signal_ &fd)
Basic3DVector< long double > operator/(const Basic3DVector< long double > &v, S s)
bool operator<=(View< T > const &, View< T > const &)
signal_ & const_l(size_t sz, size_t count,...)
bool operator>=(View< T > const &, View< T > const &)
bool operator<(const FedChannelConnection &, const FedChannelConnection &)
bool operator==(const QGLikelihoodParameters &lhs, const QGLikelihoodCategory &rhs)
Test if parameters are compatible with category.
bool operator>(View< T > const &, View< T > const &)
unsigned int const_(size_t sz, unsigned int val)
signal_storage & operator[](unsigned int i)
void Sreadmemh(std::string fname, signal_ &dest, size_t adr=0)
signal_ & const_s_p(size_t sz, unsigned long long val)
Basic3DVector & operator/=(T t)
Scaling by a scalar value (division)
void Sfclose(signal_ &fd)
signal_ & const_l_p(size_t sz, size_t count,...)
mathSSE::Vec4< double > operator^(mathSSE::Vec4< double > a, mathSSE::Vec4< double > b)
Basic3DVector & operator+=(const Basic3DVector< U > &p)