- Joined
- Mar 9, 2009
- Messages
- 5
- Reaction score
- 0
Hello all,
That's my first post ..
I have a testbench.vhd having the following entity:
Additionally, I wrote a file.do that compiles everything and run the testbench from the command line <linux>:
The file.do looks like:
Is there a way to pass the generic parameter "Mode" from the command line?
Thanks in advance,
Tarek
That's my first post ..
I have a testbench.vhd having the following entity:
Code:
Entity TestBench is
Generic(Mode :integer:=64); -- valid values are 64/128
End TestBench;
Additionally, I wrote a file.do that compiles everything and run the testbench from the command line <linux>:
Code:
vsim -c -do file.do
The file.do looks like:
Code:
onerror { exit }
exec rm -fr Project/;
exec mkdir Project
cd Project;
vlib work;
vcom ./../*.vhd;
vsim -novopt -quiet work.testbench;
run -all;
quit -sim;
exit;
Is there a way to pass the generic parameter "Mode" from the command line?
Thanks in advance,
Tarek
Last edited: