Altera_Forum
Honored Contributor
12 years ago4bit siso shift register
I used the following code for 4bit siso shift register.
Signal temp : std_logic_vector( 3downtown 0); begin process begin if(rising_edge(clk)) then temp(3 downtown 1)<=temp(2 downto 0); temp(0)<=si; end if; end process; so<=temp(3); end behavioural; I used the following testbench code. clk<= '0'; si<='1'; wait for 100ns; clk<= '1'; si<='1'; wait for 100ns; But after stimulation its shows that so is undefined i.e a red bar is shown.... Pls help......