M
Mark McDougall
Guest
Hi,
I'm wondering if there's any way of passing the value of a constant to a
VHDL file from the command-line/project file under Quartus?
I have a constant in a package body that is hard-coded.
eg. constant myConstant : std_logic_vector(7 downto 0) := X"01";
What I'd _like_ to be able to do is something that is often done in
software...
eg. constant myConstant : std_logic_vector(7 downto 0) := $magic$;
....and then build with...
quartus_sh build.bat magic=2
....or there-abouts.
Is this at all possible?
I've read that you can do similar in Quartus with Verilog macros...
Regards,
--
Mark McDougall, Engineer
Virtual Logic Pty Ltd, <http://www.vl.com.au>
21-25 King St, Rockdale, 2216
Ph: +612-9599-3255 Fax: +612-9599-3266
I'm wondering if there's any way of passing the value of a constant to a
VHDL file from the command-line/project file under Quartus?
I have a constant in a package body that is hard-coded.
eg. constant myConstant : std_logic_vector(7 downto 0) := X"01";
What I'd _like_ to be able to do is something that is often done in
software...
eg. constant myConstant : std_logic_vector(7 downto 0) := $magic$;
....and then build with...
quartus_sh build.bat magic=2
....or there-abouts.
Is this at all possible?
I've read that you can do similar in Quartus with Verilog macros...
Regards,
--
Mark McDougall, Engineer
Virtual Logic Pty Ltd, <http://www.vl.com.au>
21-25 King St, Rockdale, 2216
Ph: +612-9599-3255 Fax: +612-9599-3266