answersLogoWhite

0

library IEEE;

use IEEE.STD_LOGIC_1164.ALL;

entity shiftreg is

Port ( en : in STD_LOGIC;

clock : in STD_LOGIC;

reset :in std_logic;

data_i : in STD_LOGIC_VECTOR (15 downto 0);

shift : in STD_LOGIC;

data_o : out STD_LOGIC);

end shiftreg;

architecture Behavioral of shiftreg is

signal reg: std_logic_vector (15 downto 0);

begin

process (clock, en,reg,reset)

begin

if reset<='1' then

reg<=data_i;

elsif (clock'event and clock <='1' ) then

if (en <='1') then

reg <= data_i;

elsif (en<='1' and shift<='1') then

reg <= reg (14 downto 0) & '0';

end if;

end if;

end process;

data_o <= reg (15);

end Behavioral;

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

How do you convert spatial code into temporal code?

It can be converted using a Shift register. A Serial-In-Parallel-Out(SISO) shift register is used to convert temporal code to spatial code. A Parallel-In-Serial-Out(PISO) shift register is used to convert spatial code to temporal code.


Which one is used to change data from special code to temporal code?

shift register


How can we write a code after main closed in c language?

Register the function(s) containing the code with atexit.


Applications of shift register?

shift registers can be used in CDMA(code division multiple access) in communication.


What is index register?

A register used to store an address of something in memory. Its invention eliminated the need to write self modifying code.


How do you write the code on a nexon cash card?

Its impossible. The codes only work when activated at a cash register. And I doubt you can get the code right between the time a person activates it at a register and uses it.


How do you interface a code memory of 128 KBytes to a controller having 16 address lines?

use bank-switching, or (slower) a shift register.


How do you register on webkins?

go online to webkinz start as a new user them write th secret code and the rest is easy


What is the code on Howrse to register a new horse?

You do not need a code to register a horse on howrse. You make an account.


How do you register in poxnora with retail code?

what is retail code poxnora..???


What is a register key code?

15707


What is count register purpose?

The 8085 does not have a specific "count" register. Any register can be used, in the larger context of a block of code, as a count register.