-- University of Applied Sciences / Munich -- Federal Technological Education Center / Rio de Janeiro -- ======================================================= -- = Project : Bicycle computer in VHDL = -- = File : multiplierseq_tb_struct.vhd = -- = Notes : BikeCom.MultiplierSeq_tb = -- ======================================================= -- = Datum : 07.08.2001 = -- = Design : Joachim Reiss = -- = Revision: 001 = -- ======================================================= -- -- -- -- VHDL Entity BikeCom.MultiplierSeq_tb.symbol -- ENTITY MultiplierSeq_tb IS -- Declarations END MultiplierSeq_tb ; -- -- VHDL Architecture BikeCom.MultiplierSeq_tb.struct -- LIBRARY ieee ; USE ieee.std_logic_1164.ALL; USE ieee.std_logic_arith.ALL; LIBRARY BikeCom; ARCHITECTURE struct OF MultiplierSeq_tb IS -- Architecture declarations -- Internal signal declarations SIGNAL A_in : std_logic_vector(16 DOWNTO 0); SIGNAL B_in : std_logic_vector(16 DOWNTO 0); SIGNAL C_out : std_logic_vector(16 DOWNTO 0); SIGNAL SystemClock : std_logic; SIGNAL done : std_logic; SIGNAL error : std_logic; SIGNAL rst : std_logic; SIGNAL start : std_logic; -- Component Declarations COMPONENT MultiplierSeq PORT ( A_in : IN std_logic_vector (16 DOWNTO 0); B_in : IN std_logic_vector (16 DOWNTO 0); clk : IN std_logic ; rst : IN std_logic ; start : IN std_logic ; C_out : OUT std_logic_vector (16 DOWNTO 0); done : OUT std_logic ; error : OUT std_logic ); END COMPONENT; COMPONENT MultiplierSeq_tester PORT ( C_out : IN std_logic_vector (16 DOWNTO 0); done : IN std_logic ; error : IN std_logic ; A_in : OUT std_logic_vector (16 DOWNTO 0); B_in : OUT std_logic_vector (16 DOWNTO 0); rst : OUT std_logic ; start : OUT std_logic ); END COMPONENT; COMPONENT System_Clock_Generator GENERIC ( ClockPeriod : Time := 305175 ps ); PORT ( SystemClock : OUT std_logic ); END COMPONENT; -- Optional embedded configurations -- pragma synthesis_off FOR ALL : MultiplierSeq USE ENTITY BikeCom.MultiplierSeq; FOR ALL : MultiplierSeq_tester USE ENTITY BikeCom.MultiplierSeq_tester; FOR ALL : System_Clock_Generator USE ENTITY BikeCom.System_Clock_Generator; -- pragma synthesis_on BEGIN -- Instance port mappings. I0 : MultiplierSeq PORT MAP ( A_in => A_in, B_in => B_in, clk => SystemClock, rst => rst, start => start, C_out => C_out, done => done, error => error ); I1 : MultiplierSeq_tester PORT MAP ( C_out => C_out, done => done, error => error, A_in => A_in, B_in => B_in, rst => rst, start => start ); I2 : System_Clock_Generator GENERIC MAP ( ClockPeriod => 1 ms ) PORT MAP ( SystemClock => SystemClock ); END struct;