Question: code 1 :library ieee; use ieee.std _ logic _ 1 1 6 4 . all; entity D _ ff is port ( clk : in

code 1:library ieee;
use ieee.std_logic_1164.all;
entity D_ff is
port (
clk : in bit;
d : in bit;
reset : in bit;
qout : out bit
);
end D_ff;
architecture Behavioral of D_ff is
signal q_int : bit :='0';
begin
process (clk, reset)
begin
if reset ='0' then
q_int ='0';
elsif clk'event and clk ='1' then
q_int = d;
end if;
end process;
Copy
qout = q_int;
end Behavioral; code 2:library ieee;
use ieee.std_logic_1164.all;
entity mux_2_1 is
Port (
a : in bit_vector(1 downto 0);
b : in bit;
c : out bit
);
end mux_2_1;
architecture Behavioral of mux_2_1 is
begin
c = a(0) when (b ='0') else a(1);
end Behavioral;\\ use these two codes as a component to design a top level code fot 8 bit parallel in and parallel out shift register . the shift register is capable of loading parallel data or shifting data to the right direction . the cicuit has 8-bits input data and 8-bit output data , clock , and select input . the parallel loading operation occures when (select='0') and shifting data to the right direction occurs when select='1'
code 1 :library ieee; use ieee.std _ logic _ 1 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Electrical Engineering Questions!