-- Generated by Mentor Graphics' HDL Designer(TM) 2010.2a (Build 7)
--
LIBRARY ieee;
USE ieee.std_logic_1164.all;
USE ieee.numeric_std.all;
ENTITY test1 IS
GENERIC(
width : positive := 32
);
PORT(
datain : IN signed (width-1 DOWNTO 0);
datain1 : IN signed (width-1 DOWNTO 0);
sel : IN std_logic;
out0 : OUT signed (width-1 DOWNTO 0);
out1 : OUT signed (width-1 DOWNTO 0);
out2 : OUT signed (width-1 DOWNTO 0);
out3 : OUT signed (width-1 DOWNTO 0)
);
-- Declarations
END test1 ;
LIBRARY ieee;
USE ieee.std_logic_1164.all;
USE ieee.numeric_std.all;
LIBRARY project_pf_lib;
ARCHITECTURE struct OF test1 IS
-- Architecture declarations
-- Internal signal declarations
-- Component Declarations
COMPONENT demux
GENERIC (
width : positive := 32
);
PORT (
datain : IN signed (width-1 DOWNTO 0);
sel : IN std_logic ;
out0 : OUT signed (width-1 DOWNTO 0);
out1 : OUT signed (width-1 DOWNTO 0)
);
END COMPONENT;
-- Optional embedded configurations
-- pragma synthesis_off
FOR ALL : demux USE ENTITY project_pf_lib.demux;
-- pragma synthesis_on
BEGIN
-- Instance port mappings.
U_0 : demux
GENERIC MAP (
width => 16
)
PORT MAP (
datain => datain,
sel => sel,
out0 => out0,
out1 => out1
);
U_2 : demux
GENERIC MAP (
width => 32
)
PORT MAP (
datain => datain1,
sel => sel,
out0 => out2,
out1 => out3
);
END struct;