Altera_Forum
Honored Contributor
16 years agoProblema De Compilacion En Quartus 2
Hola!. Por favor ayudenme con este código. A mi parecer está correcto pero me aparecen errores:confused: al compilar en QUARTUS 2. Les agradezco su ayuda anticipademente.:)
library ieee; use ieee.std_logic_1164.all; entity ejemplo_vhdl is port(B1,A1,B2,A2,G1n,G2n: in std_logic; Y1,Y2: out std_logic_vector(0 to 3)); end ejemplo_vhdl; Architecture sol of ejemplo_vhdl is signal Z1,Z2: std_logic_vector(0 to 3); begin With B1&B1 select Z1(0)<='1'when "00"; Z1(1)<='1'when "01"; Z1(2)<='1'when "10"; Z1(3)<='1'when "0thers"; With B2&A2 select Z2(0)<='1'when "00"; Z2(1)<='1'when "01"; Z2(2)<='1'when "10"; Z2(3)<='1'when "0thers"; Y1<=Z1 when G1n='1' else "0000"; Y2<=Z2 when G2n='1' else "0000"; end sol;