






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Entity - used to describe a system's interface
Architecture - used to describe a system's behavior (or structure)
adder.vhd entity declaration
architecture definition
architecture architecture-name of entity-name is
type… signal… constant… function… procedure… component…
begin
…behavior or structure
end architecture architecture-name ;
NOTE: - the keywords are architecture, of, is, type…component, begin, end
ex) string + real = ???
ex) there is a built in addition operator for integers
integer + integer = integer
Ex) library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_ARITH.ALL; use IEEE.STD_LOGIC_SIGNED.ALL;
library IEEE; -- package use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_ARITH.ALL; use IEEE.STD_LOGIC_SIGNED.ALL;
entity and2 is -- entity declaration
port (In1, In2 : in STD_LOGIC; Out1 : out STD_LOGIC);
end entity and2;
architecture and2_arch of and2 is -- architecture definition
begin Out1 <= In1 and In2;
end architecture and2_arch;