4 std::vector<int>
vhdl_slice(std::vector<int>
v,
int upper,
int lower) {
5 int final_value = lower;
10 for (
int i = final_value;
i <= upper;
i++) {
19 for (
size_t i = 0;
i <
v.size();
i++) {
26 if (
v[
v.size() - 1] == 0)
35 }
else if (
value != 1) {
53 for (
int i =
v.size();
i <
size - 1;
i++) {
65 for (
int i =
v.size();
i < new_size;
i++) {
72 if (
v[
v.size() - 1] == 1)
74 for (
int i =
v.size();
i < new_size;
i++) {
80 for (
size_t i =
v.size() - 1 - 1;
i >=
v.size() - 1 - (
v.size() - new_size);
i--) {
81 if (
v[
i] !=
v[
v.size() - 1])
88 for (
size_t i =
v.size() - 1;
i >=
v.size() - 1 + 1 - (
v.size() - new_size);
i--) {
void vhdl_resize_signed(std::vector< int > &v, int new_size)
int vhdl_unsigned_to_int(std::vector< int > v)
void vhdl_resize_unsigned(std::vector< int > &v, int new_size)
bool vhdl_resize_unsigned_ok(std::vector< int > v, int new_size)
bool vhdl_resize_signed_ok(std::vector< int > v, int new_size)
int vhdl_signed_to_int(std::vector< int > v)
void vhdl_int_to_signed(int value, std::vector< int > &v)
void vhdl_int_to_unsigned(int value, std::vector< int > &v)
std::vector< int > vhdl_slice(std::vector< int > v, int upper, int lower)
Power< A, B >::type pow(const A &a, const B &b)