@@ -45,7 +45,7 @@ def write_axi_wrapper(self, model):
4545 indent + 'in_struct(const T_in& data, const ap_uint<1>& last){this->data = data; this->last = last;};\n ' + \
4646 indent + 'in_struct(){this->data = 0; this->last = 0;};\n ' + \
4747 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 ' + \
4949 indent + 'operator float() const {return this->data;}\n ' + \
5050 indent + 'operator double() const {return this->data;}\n ' + \
5151 indent + 'in_struct(float data) {this->data = data; this->last = 0;}\n ' + \
@@ -57,7 +57,7 @@ def write_axi_wrapper(self, model):
5757 indent + 'out_struct(const T_out& data, const ap_uint<1>& last){this->data = data; this->last = last;};\n ' + \
5858 indent + 'out_struct(){this->data = 0; this->last = 0;};\n ' + \
5959 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 ' + \
6161 indent + 'operator float() const {return this->data;}\n ' + \
6262 indent + 'operator double() const {return this->data;}\n ' + \
6363 indent + 'out_struct(float data) {this->data = data; this->last = 0;}\n ' + \
0 commit comments