Nov 1, 2011 #1 K kalyan3911 Newbie level 1 Joined Nov 1, 2011 Messages 1 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,285 please send the vhdl programs for 8 bit shift register,priority encoder
Nov 2, 2011 #2 yura717 Advanced Member level 2 Joined Aug 24, 2009 Messages 692 Helped 90 Reputation 178 Reaction score 89 Trophy points 1,308 Location USA Activity points 4,608 1) shift_reg : PROCESS(clk_sig, reset_sig) 2) BEGIN 3) If(reset_sig = '0') THEN 4) out_1_sig <= "00000000"; 5) ELSIF(clk_sig 'event AND clk_sig = '1') THEN 6) IF (enable_sig = '1') THEN 8) out_1_sig(7 DOWNTO 1) <= out_1_sig(6 DOWNTO 0); 7) out_1_sig(0) <= data_in_sig; 9) END If; 10) END If; 11) END PROCESS;
1) shift_reg : PROCESS(clk_sig, reset_sig) 2) BEGIN 3) If(reset_sig = '0') THEN 4) out_1_sig <= "00000000"; 5) ELSIF(clk_sig 'event AND clk_sig = '1') THEN 6) IF (enable_sig = '1') THEN 8) out_1_sig(7 DOWNTO 1) <= out_1_sig(6 DOWNTO 0); 7) out_1_sig(0) <= data_in_sig; 9) END If; 10) END If; 11) END PROCESS;