hi Pierre-Louis,
how may I pass generics values to a top level VHDL from
a Tcl script with Synplify??
I don't find the correct writing to add a generic option to
the launch command :" project -run "
Something like this.... (following the example we discussed
earlier):
# get the correct VHDL file into the project
add_file {date.vhd}
#
# compile it (syntax check etc)
project -run compile
#
# construct your specific value
set GenVal [hours_since_millennium]
#
# configure the generic
hdl_param -set ID_value $GenVal
#
# run the synthesis
project -run synthesis
I guess it's the [hdl_param] command you were looking for.
The help file is less than lucid on this stuff (thanks
a bunch, Synplicity!) and there appear to be options
to add these generics to the project file. Anyhow,
the script I've given above will do the job.
You can see this all happening if you look at the
Options/Configure_VHDL_Compiler menu.
Synplify Pro allows you to type commands at a Tcl
console; baseline Synplify requires you to build a
script file and then execute it from the Run menu.
HTH
--
Jonathan Bromley, Consultant
DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * Perl * Tcl/Tk * Verification * Project Services
Doulos Ltd. Church Hatch, 22 Market Place, Ringwood, Hampshire, BH24 1AW, UK
Tel: +44 (0)1425 471223 mail: (e-mail address removed)
Fax: +44 (0)1425 471573 Web:
http://www.doulos.com
The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.