Forum Discussion
Altera_Forum
Honored Contributor
12 years agoBut zoomkrupesh, that requires hardware. The OP asked for modelsim.
Jayanth - you need to create a testbench for your OR gate. This will be written in VHDL. But you can use non-synthesisable constructs in the coding, as you will only simulate it:
signal a,b,c : std_logic;
a <= '0', '1' after 10 ns, '0' after 20 ns;
b <= '0', '1' after 20 ns;
or_inst : entity work.my_or_gate
port map (
a <= a;
b <= b;
op <= op
);