42 sc_in<sc_uint<1> > clk;
43 sc_in<sc_uint<32> > count;
44 sc_out<sc_uint<9> > out_a0;
45 sc_out<sc_uint<9> > out_a1;
48 sensitive << count << out_a1;
52 template<
int w> sc_int<w> int_conv_from_sc_uint_to_sc_int ( sc_uint<w>
55 for (
int i=0;i<w; i++)
60 template<
int w> sc_bigint<w> int_conv_from_sc_biguint_to_sc_bigint (
63 for (
int i=0;i<w; i++)
68 template<
int w> sc_int<w> int_conv_from_sc_uint_to_sc_int (
bool a) {
75 sc_uint<32> C18_B, C18_REMAINDER;
76 bool N73, N74, N75, N76, N77, N78, N79, N80, N81, N82, N83, N84, N85,
77 N86, N87, N88, N89, N90, N91, N92, N93, N94, N95, N96, N97, N98,
78 N99, N100, N101, N102, N103, N104, N105, N106, N107, N108, N109,
79 N110, N111, N112, N113, N114, N115, N116, N117, N118, N119, N120,
80 N121, N122, N123, N124, N125, N126, N127, N128, N129, N130, N131,
90 out_a0[2].write( (0 ^ 1) );
91 out_a0[5].write( (0 ^ 1) );
126 REM_UNS_OP( count.read(), C18_B, C18_REMAINDER );
128 out_a0[7].write( (0 ^ 0) );
129 out_a0[8].write( (0 ^ 0) );
130 N73 = !(C18_REMAINDER[31]);
131 N74 = !(C18_REMAINDER[30]);
132 N76 = !(C18_REMAINDER[29]);
133 N78 = !(C18_REMAINDER[28]);
134 N80 = !(C18_REMAINDER[27]);
135 N82 = !(C18_REMAINDER[26]);
136 N84 = !(C18_REMAINDER[25]);
137 N86 = !(C18_REMAINDER[24]);
138 N88 = !(C18_REMAINDER[23]);
139 N90 = !(C18_REMAINDER[22]);
140 N92 = !(C18_REMAINDER[21]);
141 N94 = !(C18_REMAINDER[20]);
142 N96 = !(C18_REMAINDER[19]);
143 N98 = !(C18_REMAINDER[18]);
144 N100 = !(C18_REMAINDER[17]);
145 N102 = !(C18_REMAINDER[16]);
146 N104 = !(C18_REMAINDER[15]);
147 N106 = !(C18_REMAINDER[14]);
148 N108 = !(C18_REMAINDER[13]);
149 N110 = !(C18_REMAINDER[12]);
150 N112 = !(C18_REMAINDER[11]);
151 N114 = !(C18_REMAINDER[10]);
152 N116 = !(C18_REMAINDER[9]);
153 N118 = !(C18_REMAINDER[8]);
154 N120 = !(C18_REMAINDER[7]);
155 N122 = !(C18_REMAINDER[6]);
156 N124 = !(C18_REMAINDER[5]);
157 N126 = !(C18_REMAINDER[4]);
158 N128 = !(C18_REMAINDER[3]);
159 N130 = !(C18_REMAINDER[2]);
160 N132 = !(C18_REMAINDER[1]);
161 N134 = !(C18_REMAINDER[0]);
175 N101 = (N99 && N100);
176 N103 = (N101 && N102);
177 N105 = (N103 && N104);
178 N107 = (N105 && N106);
179 N109 = (N107 && N108);
180 N111 = (N109 && N110);
181 N113 = (N111 && N112);
182 N115 = (N113 && N114);
183 N117 = (N115 && N116);
184 N119 = (N117 && N118);
185 N121 = (N119 && N120);
186 N123 = (N121 && N122);
187 N125 = (N123 && N124);
188 N127 = (N125 && N126);
189 N129 = (N127 && N128);
190 N131 = (N129 && N130);
191 N133 = (N131 && N132);
192 out_a1[6].write( (N133 && N134) );
193 out_a1[4].write( out_a1.read()[6] );
194 out_a0[3].write( (0 ^ out_a1.read()[6]) );
195 out_a0[4].write( (0 ^ out_a1.read()[6]) );
196 out_a0[6].write( (0 ^ out_a1.read()[6]) );
197 out_a1[2].write( !(out_a1.read()[6]) );
198 out_a0[0].write( (out_a1.read()[2] ^ 0) );
199 out_a0[1].write( (out_a1.read()[6] ^ out_a1.read()[2]) );