File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,9 @@ module cdc_strobe (
65
65
// buffering strb1
66
66
logic strb1_b = 1'b0 ;
67
67
always @ (posedge clk1 or posedge arst) begin
68
- if ( arst || ~ nrst1 ) begin
68
+ if ( arst ) begin
69
+ strb1_b <= '0 ;
70
+ end else if ( ~ nrst1 ) begin // Quartus demands to split these if conditions
69
71
strb1_b <= '0 ;
70
72
end else begin
71
73
strb1_b <= strb1;
@@ -90,7 +92,9 @@ module cdc_strobe (
90
92
// gray counter does not need a synchronizer
91
93
logic [1 : 0 ][1 : 0 ] gc_b = '0 ;
92
94
always @ (posedge clk2 or posedge arst) begin
93
- if ( arst || ~ nrst2 ) begin
95
+ if ( arst ) begin
96
+ gc_b[1 : 0 ] <= { 2 { gc_FP_ATTR[1 : 0 ]}} ;
97
+ end else if ( ~ nrst2 ) begin // Quartus demands to split these if conditions
94
98
gc_b[1 : 0 ] <= { 2 { gc_FP_ATTR[1 : 0 ]}} ;
95
99
end else begin
96
100
gc_b[1 : 0 ] <= { gc_b[0 ],gc_FP_ATTR[1 : 0 ]} ; // shifting left
You can’t perform that action at this time.
0 commit comments