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.

Jordon

Member level 1
Member level 1
Joined
Dec 25, 2022
Messages
33
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Location
Shanghai, China
Activity points
265
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?
 

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)
 

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.
 

Again,

THE PROBLEM IS NOT THAT YOU HAVE TWO CLOCK EDGES

The problem is you're driving a signal from two different sources.
 
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

Back
Top