CMS 3D CMS Logo

vhdl_functions.h
Go to the documentation of this file.
1 #ifndef L1Trigger_DTTriggerPhase2_vhdl_h
2 #define L1Trigger_DTTriggerPhase2_vhdl_h
3 
4 #include <cstdint>
5 #include <vector>
6 #include <cmath>
7 
8 // "à la vhdl" functions
9 std::vector<int> vhdl_slice(std::vector<int> v, int upper, int lower);
10 int vhdl_unsigned_to_int(std::vector<int> v);
11 int vhdl_signed_to_int(std::vector<int> v);
12 void vhdl_int_to_unsigned(int value, std::vector<int> &v);
13 void vhdl_int_to_signed(int value, std::vector<int> &v);
14 void vhdl_resize_unsigned(std::vector<int> &v, int new_size);
15 void vhdl_resize_signed(std::vector<int> &v, int new_size);
16 bool vhdl_resize_signed_ok(std::vector<int> v, int new_size);
17 bool vhdl_resize_unsigned_ok(std::vector<int> v, int new_size);
18 
19 #endif
void vhdl_int_to_signed(int value, std::vector< int > &v)
int vhdl_signed_to_int(std::vector< int > v)
bool vhdl_resize_signed_ok(std::vector< int > v, int new_size)
std::vector< int > vhdl_slice(std::vector< int > v, int upper, int lower)
int vhdl_unsigned_to_int(std::vector< int > v)
void vhdl_resize_unsigned(std::vector< int > &v, int new_size)
void vhdl_resize_signed(std::vector< int > &v, int new_size)
Definition: value.py:1
void vhdl_int_to_unsigned(int value, std::vector< int > &v)
bool vhdl_resize_unsigned_ok(std::vector< int > v, int new_size)