Skip to content

Commit

Permalink
[csrng] Temporarily hack-in disable handling
Browse files Browse the repository at this point in the history
will be fixed by official PR separately

Signed-off-by: Timothy Chen <[email protected]>
  • Loading branch information
Timothy Chen committed Aug 25, 2022
1 parent 82105ce commit f4df12f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion hw/ip/csrng/rtl/csrng_cmd_stage.sv
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,13 @@ module csrng_cmd_stage import csrng_pkg::*; #(
cmd_stage_sm_err_o = 1'b1;
end
default: state_d = Error;
endcase
endcase // unique case (state_q)

// if disable, cycle back to Idle
if (!cs_enable_i && state_q != Idle) begin
state_d = Idle;
end

end

//---------------------------------------------------------
Expand Down

0 comments on commit f4df12f

Please sign in to comment.