async_reset_reg: Don't randomize the register if rst is asserted anyway
This commit is contained in:
1 parent
cbd65cd247
commit
cda89fbacb
1 file changed
+3
-1
@@ -54,7 +54,9 @@ module AsyncResetReg (
|
||||
`endif
|
||||
`ifdef RANDOMIZE_REG_INIT
|
||||
_RAND = {1{$random}};
|
||||
q = _RAND[0];
|
||||
if (~rst) begin
|
||||
q = _RAND[0];
|
||||
end
|
||||
`endif
|
||||
end
|
||||
`endif // `ifdef RANDOMIZE
|
||||
|
||||
Reference in new issue
Block a user