1
0

async_reset_reg: Don't randomize the register if rst is asserted anyway

This commit is contained in:
Megan Wachs 2017-09-20 14:47:00 -07:00
parent cbd65cd247
commit cda89fbacb

View File

@ -54,7 +54,9 @@ module AsyncResetReg (
`endif
`ifdef RANDOMIZE_REG_INIT
_RAND = {1{$random}};
if (~rst) begin
q = _RAND[0];
end
`endif
end
`endif // `ifdef RANDOMIZE