Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Válassza ki, melyik programrésszel valósítható meg az alábbi áramkör:
entity pelda_8 is
GENERIC (BIT_SZAM : natural :=8);
Port ( src_clk : in std_logic;
reset : in std_logic;
d : in std_logic_vector(BIT_SZAM-1downto 0);
d : in std_logic_vector(BIT_SZAM-1
downto 0);
q : out std_logic_vector(BIT_SZAM-1downto 0)
q : out std_logic_vector(BIT_SZAM-1
downto 0)
);
end pelda_8;
architecture Behavioral ofpelda_8 is
architecture Behavioral of
pelda_8 is
begin
PROCESS
BEGIN
WAITON src_clk, reset;
WAIT
ON src_clk, reset;
IF(reset='1') THEN
IF
(reset='1') THEN
q<="00000000";
q
<="00000000";
ELSIF(src_clk'EVENT AND src_clk='1') THEN
ELSIF
(src_clk'EVENT AND src_clk='1') THEN
q<=d;
<=d;
ENDIF;
END
IF;
END PROCESS;
entity pelda_7 is
Generic (BIT_SZAM :natural := 8);
Port (sel: in std_logic_vector(2 downto 0);
a : in std_logic;
b : in std_logic;
c : in std_logic;
d : in std_logic;
e : in std_logic;
f : in std_logic;
g : in std_logic;
h : in std_logic;
q : out std_logic);
end pelda_7;
architecture Behavioral ofpelda_7 is
pelda_7 is
process (sel)
variable counter :std_logic_vector(BIT_SZAM-1 downto 0);
variable counter :
std_logic_vector(BIT_SZAM-1 downto 0);
case (sel) is
when "000" =>
q<=a;
when "001" =>
q<=b;
when "010" =>
q<=c;
when "011" =>
when "100" =>
q<=e;
when "101" =>
q<=f;
when "110" =>
q<=g;
when "111" =>
q<=h;
when others =>
q<='X';
end case;
end process;
end Behavioral;
entity pelda_7c is
-- g : in std_logic;
--
-- h : in std_logic;
end pelda_7c;
architecture Behavioral ofpelda_7c is
pelda_7c is
when others => NULL;
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!