URL
https://opencores.org/ocsvn/fpuvhdl/fpuvhdl/trunk
Subversion Repositories fpuvhdl
[/] [fpuvhdl/] [trunk/] [fpuvhdl/] [adder/] [fpswap_fpswap.vhd] - Rev 3
Go to most recent revision | Compare with Previous | Blame | View Log
-- -- VHDL Architecture HAVOC.FPswap.FPswap -- -- Created: -- by - Guillermo -- at - ITESM, 20:19:07 07/19/03 -- -- Generated by Mentor Graphics' HDL Designer(TM) 2002.1b (Build 7) -- -- hds interface_start LIBRARY ieee; USE ieee.std_logic_1164.all; USE ieee.std_logic_arith.all; ENTITY FPswap IS GENERIC( width : integer := 29 ); PORT( A_in : IN std_logic_vector (width-1 DOWNTO 0); B_in : IN std_logic_vector (width-1 DOWNTO 0); swap_AB : IN std_logic; A_out : OUT std_logic_vector (width-1 DOWNTO 0); B_out : OUT std_logic_vector (width-1 DOWNTO 0) ); -- Declarations END FPswap ; -- hds interface_end ARCHITECTURE FPswap OF FPswap IS BEGIN PROCESS(A_in, B_in, swap_AB) BEGIN IF (swap_AB='1') THEN A_out <= B_in; B_out <= A_in; ELSE A_out <= A_in; B_out <= B_in; END IF; END PROCESS; END FPswap;
Go to most recent revision | Compare with Previous | Blame | View Log