Merge pull request #1006 from freechipsproject/async_reset_reg
async_reset_reg: Don't randomize the register if rst is asserted anyway
This commit is contained in:
commit
ffa3ab29ac
@ -54,7 +54,9 @@ module AsyncResetReg (
|
|||||||
`endif
|
`endif
|
||||||
`ifdef RANDOMIZE_REG_INIT
|
`ifdef RANDOMIZE_REG_INIT
|
||||||
_RAND = {1{$random}};
|
_RAND = {1{$random}};
|
||||||
|
if (~rst) begin
|
||||||
q = _RAND[0];
|
q = _RAND[0];
|
||||||
|
end
|
||||||
`endif
|
`endif
|
||||||
end
|
end
|
||||||
`endif // `ifdef RANDOMIZE
|
`endif // `ifdef RANDOMIZE
|
||||||
|
Loading…
Reference in New Issue
Block a user