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.

RTL Compiler : create_clock command

Status
Not open for further replies.

shyam4908

Newbie level 6
Joined
Dec 1, 2009
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,402
What is the problem with this. These are given in sdc file

set PERIOD_HCLK 20
set HCLK_RISE 0
set HCLK_FALL [expr $PERIOD_HCLK*0.5]

create_clock -period $PERIOD_HCLK -waveform {$HCLK_RISE $HCLK_FALL} "hclk"
set_dont_touch_network "hclk"
set_drive 0 "hclk"

--- I am geting the in Compiler as

Error : A command argument is of the wrong type. [TUI-66] [parse_options]
: A floating point number was expected, but '$HCLK_RISE' was seen instead.
: Check the command usage and correct the input to the command.

Please help me out

Thanks
 

create_clock -period $PERIOD_HCLK -waveform {0 $HCLK_RISE $HCLK_FALL} "hclk"
 

i tried this and strange RTLC does report an Error.. looks like a bug to me...
I initially thought that it was becuase of {} braces but no ..

If not it looks like the waveform option only accpets a number if you directly add {0 10} it works just fine

- - - Updated - - -

@shyam4908

Bang!!! I got it to work... try the below
create_clock -period $PERIOD_HCLK -waveform [list [expr $HCLK_RISE] [expr $HCLK_FALL]] "hclk"

Hope it helps... :)
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top