@@ -45,7 +45,7 @@ def write_axi_wrapper(self, model):
45
45
indent + 'in_struct(const T_in& data, const ap_uint<1>& last){this->data = data; this->last = last;};\n ' + \
46
46
indent + 'in_struct(){this->data = 0; this->last = 0;};\n ' + \
47
47
indent + 'friend std::ostream& operator<<(std::ostream& stream, const in_struct& in)\n ' + \
48
- indent + '{ return stream << "{ data: " << in.data << ", last: " << in.last << " }" << std::endl; }\n ' + \
48
+ indent + '{ return stream << "{ data: " << float( in.data) << ", last: " << float( in.last) << " }" << std::endl; }\n ' + \
49
49
indent + 'operator float() const {return this->data;}\n ' + \
50
50
indent + 'operator double() const {return this->data;}\n ' + \
51
51
indent + 'in_struct(float data) {this->data = data; this->last = 0;}\n ' + \
@@ -57,7 +57,7 @@ def write_axi_wrapper(self, model):
57
57
indent + 'out_struct(const T_out& data, const ap_uint<1>& last){this->data = data; this->last = last;};\n ' + \
58
58
indent + 'out_struct(){this->data = 0; this->last = 0;};\n ' + \
59
59
indent + 'friend std::ostream& operator<<(std::ostream& stream, const out_struct& out)\n ' + \
60
- indent + '{ return stream << "{ data: " << out.data << ", last: " << out.last << " }" << std::endl; }\n ' + \
60
+ indent + '{ return stream << "{ data: " << float( out.data) << ", last: " << float( out.last) << " }" << std::endl; }\n ' + \
61
61
indent + 'operator float() const {return this->data;}\n ' + \
62
62
indent + 'operator double() const {return this->data;}\n ' + \
63
63
indent + 'out_struct(float data) {this->data = data; this->last = 0;}\n ' + \
0 commit comments