Professional Documents
Culture Documents
Modelling of Shift Register
Modelling of Shift Register
Modelling of Shift Register
No:5
Date:.
so=out STD_LOGIC;); end shift register; architecture shift register of shift register is signal tmp:STD_LOGIC_VECTOR(7 down to 0); begin process(c,si) begin if(c event and c=1) then for i in 0 to 6 loop tmp(i+1)<=tmp(i); end loop; tmp(0)<=si; end if; end process; so<=tmp(7); end behavioural;
Procedure: 1. Go to start menu click programs, click Xilinx ISE, click project navigator 2. A new window will appear to create a new project. In the project field give the project name and select the project location 3. To create a new source click resource and click select source type used in VHDL module 4. A HDL editor window will appear in that window.Type the VHDL code 5. Save it and in the process tool click synthesis XST 6. In source window the hardware changed to behavioral simulation. Now in the process field click model sim simulator 8. In the model sim simulator force the input value and run.
Output: