halfadder.vhd

来自「application of a galois field multiplica」· VHDL 代码 · 共 22 行

VHD
22
字号
Library ieee ;
use ieee.std_logic_1164.all;

entity hadder is
   port (
            a  : in  std_logic;
            b  : in  std_logic;
            s  : out std_logic;
            co : out std_logic
         );
end hadder;

architecture hadder_rtl of hadder is
begin

        s     <=  a xor b ;
        co    <=  a and b ;
     
end hadder_rtl;


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?