- Code: Select all
library IEEE;
use IEEE.std_logic_1164.all;
entity ha is
port(a,b : in bit;
s,c : out bit);
end ha;
architecture haa of ha is
begin
s<=a xor b;
c<=a and b;
end haa;
entity testbench is
end testbench;
architecture test of testbench is
signal int1,int2,sum,carry : bit;
component ha is
port(a,b : in bit;
s,c : out bit);
end component;
begin
process
begin
int1<='1';
int2<='0';
wait for 4 ns;
int1<='1';
int2<='1';
wait ;
end process;
u1: ha port map(int1,int2,sum,carry);
end test;
Everything goes fine but when I give the command to view the waveforms in gtkwave the following shows up:
GTKWave Analyzer v3.3.2 (w)1999-2010 BSI
[0] start time.
[0] end time.
VCD times range is equal to zero. Exiting.
Can anyone tell why is it happening? Thanks in advance