ad_sysref_gen: Fix quartus warnings
Fix the following warnings that are generated by Quartus: Warning (10230): Verilog HDL assignment warning at ad_sysref_gen.v(68): truncated value with size 32 to match size of target (8) No functional changes. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>main
parent
162248375c
commit
c5b1b905e3
|
@ -65,9 +65,9 @@ module ad_sysref_gen (
|
|||
// free running counter for periodic SYSREF generation
|
||||
always @(posedge core_clk) begin
|
||||
if (sysref_en_int) begin
|
||||
counter <= (counter < SYSREF_HALFPERIOD) ? counter + 1 : 0;
|
||||
counter <= (counter < SYSREF_HALFPERIOD) ? counter + 1'b1 : 8'h0;
|
||||
end else begin
|
||||
counter <= 0;
|
||||
counter <= 8'h0;
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue