ad_sysref_gen: Fix sysref generation
Toggle sysref output just if the sysref_en is asserted.main
parent
180c96bcde
commit
ce47cf8d30
|
@ -77,8 +77,10 @@ module ad_sysref_gen (
|
||||||
|
|
||||||
// generate SYSREF
|
// generate SYSREF
|
||||||
always @(posedge core_clk) begin
|
always @(posedge core_clk) begin
|
||||||
if (counter == SYSREF_HALFPERIOD) begin
|
if (sysref_en_int) begin
|
||||||
sysref_out <= ~sysref_out;
|
if (counter == SYSREF_HALFPERIOD) begin
|
||||||
|
sysref_out <= ~sysref_out;
|
||||||
|
end
|
||||||
end else begin
|
end else begin
|
||||||
sysref_out <= 1'b0;
|
sysref_out <= 1'b0;
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue