Skip to content

Commit

Permalink
fix issue in iverilog, iverilog do not allow enum in ternary operator…
Browse files Browse the repository at this point in the history
… (?:)
  • Loading branch information
zack committed Sep 30, 2023
1 parent 093da0d commit 3d85a12
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rtl/user/axilite_axis/rtl/axi_ctrl_logic.sv
Expand Up @@ -287,7 +287,13 @@ module axi_ctrl_logic(
logic [9:0]aa_index; // for index of aa_regs
logic [9:0]mb_index; // for index of mb_regs

assign next_trans = (next_ss) ? TRANS_SS : TRANS_LS;
//assign next_trans = (next_ss) ? TRANS_SS : TRANS_LS; // iverilog issue
always_comb begin
if(next_ss == 1'b1)
next_trans = TRANS_SS;
else
next_trans = TRANS_LS;
end

// compute control signals according to source (LS / SS) and address range
// note this is combinational, so the signals can only exist when state is AXI_DECIDE_DEST,
Expand Down

0 comments on commit 3d85a12

Please sign in to comment.