半加器1LIBRARYIEEE;USEIEEESTD_LOGIC_1164ALL;ENTITYhalfadderISPORT(A,B:INSTD_LOGIC;Co:outSTD_LOGIC;S:out
1。用CASE语句LIBRARYIEEE;USEIEEESTD_LOGIC_1164ALL;ENTITYLS138ISPORT(S:inSTD_LOGIC_vector(2downto0);Y:out
半加器1LIBRARYIEEE;USEIEEESTD_LOGIC_1164ALL;ENTITYhalfadderISPORT(A,B:INSTD_LOGIC;Co:outSTD_LOGIC;S:out
1。用CASE语句LIBRARYIEEE;USEIEEESTD_LOGIC_1164ALL;ENTITYLS138ISPORT(S:inSTD_LOGIC_vector(2downto0);Y:out