4 to 2 encoder using VHDL programming language |
PROGRAM:
library IEEE;use IEEE.STD_LOGIC_1164.all;entity encoder4_2 is port( a : in STD_LOGIC; b : in STD_LOGIC; c : in STD_LOGIC; d : in STD_LOGIC; x : out STD_LOGIC; y : out STD_LOGIC );end encoder4_2; architecture encoder4_2_arc of encoder4_2 isbegin x <= b or d; y <= c or d;end encoder4_2_arc;
No comments:
Post a Comment