精选优质文档-倾情为你奉上EDA技术实用教程课题报告课题名称:一位全减器的设计 院系:专业:电子信息工程组员: 专心-专注-专业设计流程:一、一位半减器的设计一位半减器程序如下; 其中x,y是输入,diff是输出差,s_out是借位输出, sub_in为借位输入。library ieee;use ieee.std_logic_1164.all;entity h_suber is port (x,y : in std_logic; diff,s_out : out std_logic ); end h_suber;architecture hdlarch of h_suber is begin process(x,y) begin diff = x xor y;s_out = (not x) and y; end process; end