Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] [Design Compiler] How to compile a design with posedge and negedge clk?

Status
Not open for further replies.

Zackery

Junior Member level 2
Junior Member level 2
Joined
Dec 25, 2022
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
147
hi, i am tring to compile a sram module from sky company, but the RTL codes has two clk(i dont know how to describe this situation), like the picture below, it has both posedge and negedge clk's always block,
ZZJE(9~WA9%%%FYNT}Y~Y`N.png

i compile as normal, same as the design with one clk edge, but it seems the tools think it has one edge clk:
L4]J2ZOHBR$5V]D_]_~}BFG.png

how can i change the command or what should I add in the tcl?
 

barry

Advanced Member level 6
Advanced Member level 6
Joined
Mar 31, 2005
Messages
5,992
Helped
1,177
Reputation
2,366
Reaction score
1,321
Trophy points
1,393
Location
California, USA
Activity points
32,603
the problem is not that you’re using two clock edges.READ THE ERROR MESSAGE!! You’re driving dout from two sources ( in two different blocks)
 

Zackery

Junior Member level 2
Junior Member level 2
Joined
Dec 25, 2022
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
147
the problem is not that you’re using two clock edges.READ THE ERROR MESSAGE!! You’re driving dout from two sources ( in two different blocks)
Thanks, i have noticed that, the dout are in two always block. According to the case I inquired from the some websites, a signal cannot be driven in two always blocks, but their cases have the same clock edge in two always blocks, so I will ask whether the "DC does not recognize two kinds of clock edges" caused by different clock edges. And the most important is that the code is got from skywater PDK, so i dont know whether changes in it is a good choise.
 

FvM

Super Moderator
Staff member
Advanced Member level 7
Joined
Jan 22, 2008
Messages
50,989
Helped
14,631
Reputation
29,538
Reaction score
13,740
Trophy points
1,393
Location
Bochum, Germany
Activity points
291,735
As clearly shown by the delay statements, it's a simulation model, not code intended for synthesis. You shouldn't expect that it's synthesizable.
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top