Skip to content

Commit 9836c6b

Browse files
rtl: fix missing reset on wden_p in WDT32
wden_p lacked an async reset, causing a simulation/synthesis mismatch: WDOV could be driven X in simulation immediately after reset deassertion when WDEN is asserted. Signed-off-by: Ashnaa Seth <ashnaaseth2325@gmail.com> Signed-off-by: ashnaaseth2325-oss <ashnaaseth2325@gmail.com>
1 parent e6d48e5 commit 9836c6b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • flow/designs/src/chameleon/IPs

flow/designs/src/chameleon/IPs/WDT32.v

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ module WDT32 (
4040
end
4141

4242
reg wden_p;
43-
always @(posedge clk)
44-
wden_p <= WDEN;
43+
always @(posedge clk or posedge rst)
44+
if (rst) wden_p <= 1'b0;
45+
else wden_p <= WDEN;
4546

4647
always @(posedge clk or posedge rst)
4748
begin

0 commit comments

Comments
 (0)