- Download code (Clone or Download button).
- Extract zip
- Open VHDL-TestVector-Generator-master folder using
cd VHDL-TestVector-Generator-master
- Run script (usage below).
-
python3 testVectorsGenerator.py <signal1> <signal2> ... <signalN> <Time_Interval> <Time_Unit>
python3 testVectorsGenerator.py a b c d 10 ns
To be generated: 16 different cases.
a
b
c
d
TimeInterval: 10
TimeUnit: ns
----Copy-Paste the following code----
process
begin
a <= '0'; b <= '0'; c <= '0'; d <= '0';
wait for 10 ns;
a <= '0'; b <= '0'; c <= '0'; d <= '1';
wait for 10 ns;
a <= '0'; b <= '0'; c <= '1'; d <= '0';
wait for 10 ns;
a <= '0'; b <= '0'; c <= '1'; d <= '1';
wait for 10 ns;
a <= '0'; b <= '1'; c <= '0'; d <= '0';
wait for 10 ns;
a <= '0'; b <= '1'; c <= '0'; d <= '1';
wait for 10 ns;
a <= '0'; b <= '1'; c <= '1'; d <= '0';
wait for 10 ns;
a <= '0'; b <= '1'; c <= '1'; d <= '1';
wait for 10 ns;
a <= '1'; b <= '0'; c <= '0'; d <= '0';
wait for 10 ns;
a <= '1'; b <= '0'; c <= '0'; d <= '1';
wait for 10 ns;
a <= '1'; b <= '0'; c <= '1'; d <= '0';
wait for 10 ns;
a <= '1'; b <= '0'; c <= '1'; d <= '1';
wait for 10 ns;
a <= '1'; b <= '1'; c <= '0'; d <= '0';
wait for 10 ns;
a <= '1'; b <= '1'; c <= '0'; d <= '1';
wait for 10 ns;
a <= '1'; b <= '1'; c <= '1'; d <= '0';
wait for 10 ns;
a <= '1'; b <= '1'; c <= '1'; d <= '1';
wait for 10 ns;
wait;
end process;
-------------------------------------