• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Logic Design
  3. LEC between a posedge DFF and a low-pass D latch followed...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 63
  • Views 13929
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LEC between a posedge DFF and a low-pass D latch followed by a posedge D flop

WorldMaker
WorldMaker over 15 years ago

Hi all,

There are two flops which should be equivalent, but Conformal reported an unmapped latch and a non-equivalent DFF. The 1st flop is a posedge D flop described by "always @(posedge CLK)" statement, and the 2nd flop is comprised of a low-pass D latch which is followed by a posedge D flop and the clock of the latch and flop is shorted.

My question is: How to remove the unmapped latch and fix the non-equivalent DFF? Should I delete the compared DFF using command "delete compared points DFF_reg" ?  The verilog of the two flops and the dofile are shown as follows:

////////////////verilog of the1st flop (DFF_a.v)///////////////

module dff (CLK,D,Q);
input  CLK;
input  D;
output Q;
reg    Q;

always @(posedge CLK)
  Q <= D;
endmodule

////////////////verilog of the 2nd flop (DFF_b.v) /////////////// 

module dff (CLK,D,Q);
input  CLK;
input  D;
output Q;
reg    Q;
reg    LAT;

always @(CLK or D) begin
if (~CLK) LAT <= D;
end
always @(posedge CLK) begin
Q <= LAT;
end
endmodule

 /////////////////////dofile//////////////////

read design DFFa.v -gol

read design DFFb.v -rev

go

////////////////////////////////////////////////

 

 

If the 1st flop is changed to the combination of a low-pass and high-pass d latch and the 2nd flop is unchanged. In this case, both of the two flops has two primary output pins: LAT, Q. 

Similarly, there are also unmapped and non-equivalent points, and how to verify the two flops? Verilog files of the two flops are as belows:

//////////////////verilog of the 2nd flop (DFF_c.v) ////////////////  

module dff (CLK,D,Q,LAT);
input  CLK;
input  D;
output Q;

output LAT;
reg    Q;

reg LAT;

always @(CLK or D) begin
if (~CLK)  LAT <= D;

if (CLK) Q <=LAT;

end
endmodule

////////////////verilog of the 2nd flop (DFF_d.v) /////////////// 

module dff (CLK,D,Q,LAT);
input  CLK;
input  D;
output Q;

output LAT;
reg    Q;
reg    LAT;

always @(CLK or D) begin
if (~CLK) LAT <= D;
end
always @(posedge CLK) begin
Q <= LAT;
end
endmodule

 

Thanks,

Justin

  • Cancel
  • WorldMaker
    WorldMaker over 15 years ago

    The problem has been fixed with the following remodel commands:

    remodel -unfold_dff  .....

    remodel -red_dlat ....

     

    Justin

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information