Skip to content

Commit

Permalink
Refactor spiker_adapter.sv to comment out unused code and remove unne…
Browse files Browse the repository at this point in the history
…cessary assignments
  • Loading branch information
RenatoBelmonte committed Sep 23, 2024
1 parent 30a5781 commit fa6a49e
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions rtl/spiker_adapter.sv
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,19 @@ reg_rsp_t from_reg_file_rsp;
// spiker_adapter_hw2reg_spikes_result_mreg_t --> logic[31:0] d;
//////////////////////////////////////////////////////////////////////////
// New signals to hold the values of reg_file_to_ip.op_a and reg_file_to_ip.op_b
logic [31:0] op_a_signal;
logic [31:0] op_b_signal;

// Assign the values of reg_file_to_ip.op_a and reg_file_to_ip.op_b to the new signals
assign op_a_signal = reg_file_to_ip.spikes[0].q;
assign op_b_signal = reg_file_to_ip.spikes[1].q;


// TO READ
assign ip_to_reg_file.spikes_result[0].d = op_a_signal;
assign ip_to_reg_file.spikes_result[1].d = op_b_signal;
// logic [31:0] op_a_signal;
// logic [31:0] op_b_signal;
//
// // Assign the values of reg_file_to_ip.op_a and reg_file_to_ip.op_b to the new signals
// assign op_a_signal = reg_file_to_ip.spikes[0].q;
// assign op_b_signal = reg_file_to_ip.spikes[1].q;
//
//
// // TO READ
// assign ip_to_reg_file.spikes_result[0].d = op_a_signal;
// assign ip_to_reg_file.spikes_result[1].d = op_b_signal;


spiker_unwrap #(
Expand Down

0 comments on commit fa6a49e

Please sign in to comment.