Featured post
Problem starting program (vcom) with multiple arguments in TCL -
i'm trying start program (vcom) tcl script options:
set compilationargs "-quiet -93" vcom $compilationargs -work work polar2rect/sc_corproc.vhd
but when run this, following error message:
# model technology modelsim altera vcom 6.5e compiler 2010.02 feb 27 2010 # ** error: (vcom-1902) option "-quiet -93" either unknown, requires argument, or given bad argument. # use -help option complete vcom usage. # /opt/altera/10.0/modelsim_ase/linuxaloem/vcom failed.
tcl seems pass 2 options (-quiet) , (-93) 1 option vcom. if use 1 of these 2 options works. , if run (vcom -93 -quiet -work work polar2rect/sc_corproc.vhd) works.
how can fix this?
thanks, hendrik.
the “problem” tcl's being careful managing spaces. useful if you've got arguments spaces in (such many full filenames on windows machines) can frustrating if wanted list broken automatically. fix indicate tcl is want split multiple words.
the best answer requires @ least tcl 8.5 (find out version you've got info tclversion
, info patchlevel
, or package require tcl
).
vcom {*}$compilationargs -work work polar2rect/sc_corproc.vhd
if you're built against older version of tcl, you'll need instead:
eval vcom $compilationargs -work work polar2rect/sc_corproc.vhd
(or this, officiously correct, hardly bothers obvious reasons)
eval [list vcom] $compilationargs [list -work work polar2rect/sc_corproc.vhd]
the version @ top expansion syntax ({*}
) best if supported. can determine if enough; if isn't, it's syntax error.
- Get link
- X
- Other Apps
Comments
Post a Comment