Posted
Filed under 공부한 것들/기타

[CODE type=vhdl]
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;---- Uncomment the following library declaration if instantiating
---- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all; entity exadd is
  Port ( put1 : in std_logic_vector(3 downto 0);
          put2 : in std_logic_vector(3 downto 0);
          addsu : out std_logic_vector(3 downto 0));
end exadd;architecture ex of exadd is begin
process (put1, put2)
  begin
 
  if put1 > put2 then
     addsu <= put1 + put2;
      else
     addsu <= put2 - put1;
 
  end if;
  end process;
end ex;
[/CODE]

입력받는 두 수를 비교해서..
입력 받은 두 수와 덧셈, 뺄셈 하는 것..

시뮬레이터 결과:


※ VHDL 조낸 싫다..
2006/10/13 13:36 2006/10/13 13:36
Posted
Filed under 잡담

할 짓도 없고.(?) 간만에 인터넷 속도 테스트 해봤습니다..

[측정 사이트]
http://www.benchbee.co.kr 이고.. 사양은.. P4 2.4에 768 , 100Mbps NIC 이상~!!!

사용중인 인터넷은.. 음.. 비밀로 하겠음.ㅋㅋ//
하나포스로 바뀐다고 하던데-_-''//
2006/10/10 00:10 2006/10/10 00:10