Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vhdl code for subtractor

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
anyone know references for subtractor vhdl code?

-jake
 
Here is the VHDL code for Subtractor.
Enjoy.


RV



library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
entity sub is
port(a,b: in std_logic_vector(2 downto 0);
c: out std_logic_vector(2 downto 0));
end entity;

architecture rtl of sub is
begin
c <= a - b;
end rtl;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top