Skip to content

Commit 61bbd43

Browse files
author
Rafal Kapuscik
committed
Fix initialization in clock-crossing module
Signed-off-by: Rafal Kapuscik <rkapuscik@antmicro.com>
1 parent 9fe5058 commit 61bbd43

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

common/strobe.v

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ module strobe(
1919
initial begin
2020
flag = 0;
2121
prev_strobe = 0;
22-
sync = 0;
23-
data = 0;
22+
sync[DELAY:0] = 0;
23+
data[WIDTH-1:0] = 0;
2424
end
2525

2626
// flip the flag and clock in the data when strobe is high
@@ -55,7 +55,7 @@ module dflip(
5555
);
5656
reg [2:0] d;
5757
initial begin
58-
d = 0;
58+
d[2:0] = 0;
5959
end
6060
always @(posedge clk)
6161
d <= { d[1:0], in };

0 commit comments

Comments
 (0)