Skip to content

Commit

Permalink
Fix initialization in clock-crossing module
Browse files Browse the repository at this point in the history
Signed-off-by: Rafal Kapuscik <rkapuscik@antmicro.com>
  • Loading branch information
Rafal Kapuscik committed Nov 20, 2019
1 parent 9fe5058 commit 61bbd43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/strobe.v
Expand Up @@ -19,8 +19,8 @@ module strobe(
initial begin
flag = 0;
prev_strobe = 0;
sync = 0;
data = 0;
sync[DELAY:0] = 0;
data[WIDTH-1:0] = 0;
end

// flip the flag and clock in the data when strobe is high
Expand Down Expand Up @@ -55,7 +55,7 @@ module dflip(
);
reg [2:0] d;
initial begin
d = 0;
d[2:0] = 0;
end
always @(posedge clk)
d <= { d[1:0], in };
Expand Down

0 comments on commit 61bbd43

Please sign in to comment.