Docsity
Docsity

Prepara tus exámenes
Prepara tus exámenes

Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity


Consigue puntos base para descargar
Consigue puntos base para descargar

Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium


Orientación Universidad
Orientación Universidad


Practicas laboratorio ELDI, Ejercicios de Electrónica

Practicas laboratorio ELDI código VHDL

Tipo: Ejercicios

2020/2021

Subido el 09/12/2021

bernat-costa
bernat-costa 🇪🇸

3.8

(6)

3 documentos

1 / 1

Toggle sidebar

Esta página no es visible en la vista previa

¡No te pierdas las partes importantes!

bg1
registre32.vhd Sun Nov 12 22:47:03 2017
Page 1
1 library IEEE;
2 use IEEE.STD_LOGIC_1164.ALL;
3
4 entity registre32 is
5 port(I:in std_logic_vector(31 downto 0);
6 E,RST,CLK : in std_logic;
7 O : out std_logic_vector(31 downto 0));
8 end registre32;
9
10 architecture Behavioral of registre32 is
11
12 begin
13 process(CLK)
14 begin
15 if(rising_edge(CLK)) then
16 if(RST = '1') then
17 O <= (others => '0');
18 elsif(E = '1') then
19 O <= I;
20 end if;
21 end if;
22 end process;
23
24 end Behavioral;

Vista previa parcial del texto

¡Descarga Practicas laboratorio ELDI y más Ejercicios en PDF de Electrónica solo en Docsity!

registre32.vhd Sun^ Nov^12 22:47:03^2017 Page 1

101112131415161718192021222324123456789 libraryuseentityendarchitecturebeginend^ portprocessbeginendIEEEregistre32;Behavioral;^ ifend^ registre32(process^ IEEE.( STD_LOGIC_1164IE,RST,CLKOrising_edgeifelsifend^ (CLK)if::(RST^ ;OO; inoutBehavioralif<=(E<=;^ ;^ std_logic_vector=^ std_logic_vector(=I;^ is'1')others:'1')^ (CLK))in .then ALLstd_logicofthen=> ;registre32then'0');(31;(31^ downto downtois^ 0);0));