gEDA-dev: [Fwd: Icarus Verilog command file]
Alan M. Feldstein
alan at alanfeldstein.com
Wed Sep 12 15:46:06 EDT 2007
As
http://iverilog.wikia.com/wiki/Command_File_Format#Variable_Substitution
explains (but the man page doesn't), the syntax for a variable reference
is "$(name)".
$(DV_ROOT)/design/sys/iop/ccx/rtl/ccx.v
works.
-------- Original Message --------
Subject: Icarus Verilog command file
Date: Tue, 11 Sep 2007 14:57:13 -0500
From: Alan M. Feldstein <alan at alanfeldstein.com>
Organization: Cosmic Horizon
To: geda-dev at seul.org
In a command file (the argument to the -c flag) I have
/home/alan/Sun/OpenSPARCT2.1.0beta/design/sys/iop/cpu/rtl/cpu.v
$DV_ROOT/design/sys/iop/ccx/rtl/ccx.v
...
The value of the DV_ROOT environment variable is
/home/alan/Sun/OpenSPARCT2.1.0beta
iverilog doesn't complain about the first Verilog source file, but for
the second one it reports
$DV_ROOT/design/sys/iop/ccx/rtl/ccx.v: No such file or directory
ccx.v does, in fact, exist.
The iverilog man page claims that "Variables are substitued in file
names." Therefore, $DV_ROOT should have been understood, right? Isn't
that what that means?
--
Alan Feldstein
Cosmic Horizon logo
http://www.alanfeldstein.com/
+1 585 415 6682
More information about the geda-dev
mailing list