Tesi Robotica Un coprocessore per Visual Search: Keypoint... | Page 98
4.3. IMPLEMENTAZIONE DEL MODULO DI CONVOLUZIONE LUT
43
48
53
58
63
68
73
Reg#(Int#(26)) reg_mult_rom_b_0_b_1_value <- mkRegA(0);
Reg#(Int#(26)) reg_mult_rom_b_2_b_3_value <- mkRegA(0);
Reg#(Int#(26)) reg_mult_rom_b_4_b_5_value <- mkRegA(0);
Reg#(Int#(26)) reg_mult_rom_b_4_b_5_latch_value <- mkRegA(0);
Reg#(Int#(28)) reg_mult_rom_b_0_b_1_b_2_b_3_value <- mkRegA(0);
Reg#(Int#(32)) reg_mult_rom_final_value <- mkRegA(0);
Reg#(Int#(32)) reg_mult_rom_final_value_basic <- mkRegA(0);
Reg#(Bool) end_mult <- mkRegA(False);
Reg#(Bool) end_mult_basic <- mkRegA(False);
UInt#(2) mults_rom_a_0[256];
UInt#(2) mults_rom_a_1[256];
UInt#(2) mults_rom_a_2[256];
UInt#(2) mults_rom_a_3[256];
UInt#(2) mults_rom_a_4[256];
UInt#(2) mults_rom_a_5[256];
UInt#(24) mults_rom_b_0[64];
UInt#(24) mults_rom_b_1[64];
UInt#(24) mults_rom_b_2[64];
UInt#(24) mults_rom_b_3[64];
UInt#(24) mults_rom_b_4[64];
UInt#(24) mults_rom_b_5[64];
UInt#(8) op_0 = 0;
for (Integer i=0; i<256; i=i+1)
begin
op_0 = op_0 + 1;
mults_rom_a_0[i] = truncate(op_0);
mults_rom_a_1[i] = truncate(op_0);
mults_rom_a_2[i] = truncate(op_0);
mults_rom_a_3[i] = truncate(op_0);
mults_rom_a_4[i] = truncate(op_0);
mults_rom_a_5[i] = truncate(op_0);
end
98