Nightlamp
Newbie level 4
Had just a quick question about a VHDL testbench I made. I am testing a full adder (a,b,c_in are my inputs) and wanted to simply test from (0,0,0 to 1,1,1) as to get all possible combinations of inputs. The reason for this project is just a simple start at vhdl/coding in general.
Anyway my question is this I have this test bench (attached) and I was able to run the simulation correctly, but I was wondering if there is a more eloquent way to realize the code:
a <= '0';
b <= '0';
c_in <= '0';
wait for 20 ns;
a <= '0';
b <= '0';
c_in <= '1';
wait for 20 ns; etc.etc View attachment My test file.txt
I feel like this was a horrible way to realize all input combinations and would like to learn how to set it up better as I will be moving on to bigger and more complicated vhdl projects
Anyway my question is this I have this test bench (attached) and I was able to run the simulation correctly, but I was wondering if there is a more eloquent way to realize the code:
a <= '0';
b <= '0';
c_in <= '0';
wait for 20 ns;
a <= '0';
b <= '0';
c_in <= '1';
wait for 20 ns; etc.etc View attachment My test file.txt
I feel like this was a horrible way to realize all input combinations and would like to learn how to set it up better as I will be moving on to bigger and more complicated vhdl projects