0
1.1kviews
VHDL program for half subtractor.
1 Answer
| written 3.7 years ago by |
VHDL program for half subtractor:
Continued: LIBRARY ieee;
USE ieee.std_logic_1164_all;
Entity HS IS
PORT (A, B : IN STD_LOGIC;
Diff,Borrow: OUT STD_Logic);
END HS;
ARCHITECTURE BEHAVIOUR OF HS IS
BEGIN DIFF < = A XOR B;
BORROW < = (NOT A) AND B;
END BEHAVIOUR;
A shift register which can …