Skip to content

Commit

Permalink
Fix: enclose function around ifdef to avoid yosys synthesis error
Browse files Browse the repository at this point in the history
  • Loading branch information
dpretet committed Sep 3, 2023
1 parent d98d5d0 commit 8db0518
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rtl/friscv_registers.sv
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ module friscv_registers
input wire [XLEN -1:0] csr_rd_val
);

`ifdef TRACE_REGISTERS
//------------------------------------------------
// Function to print register name and information
// @i: register number to get info
Expand Down Expand Up @@ -116,6 +117,7 @@ module friscv_registers
if (i==30) get_name = " t5 (temporary register 5)";
if (i==31) get_name = " t6 (temporary register 6)";
endfunction
`endif


// E extension limiting the register number to 16
Expand Down

0 comments on commit 8db0518

Please sign in to comment.