0
1.1kviews
VHDL program for half subtractor.
1 Answer
0
4views

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 …

Create a free account to keep reading this post.

and 2 others joined a min ago.

Please log in to add an answer.