Question:

VHDL program to implement Full Subtractor using data flow modeling.

Posted by Saradwata Bandyopadhyay on 01-03-2025

Tags : Dataflow Modeling full subtractor Model Sim program VHDL

Answer:

Here is the solution for the above question =>

                                      library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity full_sub is
port( A, B, C : in std_logic;
DIFF, Borrow : out std_logic);
end entity;
architecture dataflow of full_sub is
begin
DIFF <= (A xor B) xor C;
Borrow <= ((not A) and (B or C)) or (B and C);
end dataflow;

You can directly download the Source Code and the Model Sim application from the links below =>

Add a Comment

Please Login to Comment.