manchuk
Newbie level 5
I have 2 synchronizers in my design. Formality is not able to recognize them . Formality failing points show D and stage1_sync. But stage2_sync passes.
The sample RTL code is below
reg stage1_sync, stage2_sync;
assign Q = stage2_sync;
always @(posedge CP or negedge CL) begin
if (~CL) begin
stage1_sync <= 1'b0;
stage2_sync <= 1'b0;
end else // if (~CL)
begin
stage1_sync <= D;
stage2_sync <= stage1_sync;
end
end // always @ (posedge CP)
Thanks
The sample RTL code is below
reg stage1_sync, stage2_sync;
assign Q = stage2_sync;
always @(posedge CP or negedge CL) begin
if (~CL) begin
stage1_sync <= 1'b0;
stage2_sync <= 1'b0;
end else // if (~CL)
begin
stage1_sync <= D;
stage2_sync <= stage1_sync;
end
end // always @ (posedge CP)
Thanks