5、主要的一点是要勤动手,多写程序,多思,才能有所提高。知道了学以致用的重要性,学的很多知识不运用不能是真正的掌握,这一点在我身上很是有所体现。四位比较器VHDL源文件: library ieee; use ieee.std_logic_1164.all; use ieee.std_logic_arith.all; use ieee.std_logic_unsigned.all; entity comp4 is port (A:in std_logic_vector(3 downto 0); B:in st
6、d_logic_vector(3 downto 0); M,G,L:out std_logic); end comp4; architecture behave of comp4 is begin p1: process(A,B) beginif (A>B) then G<='1';M<='0';L<='0'; elsif (A