Expt 2
Expt 2
• ENTITY
• VHDL CODE:
--------------------------------------------------------------------------------
-- Company:
-- Engineer:
--
-- Design Name:
-- Target Device:
-- Tool versions:
-- Description:
--
--
-- Dependencies:
--
-- Revision:
-- Additional Comments:
--
-- Notes:
-- This testbench has been automatically generated using types std_logic and
-- std_logic_vector for the ports of the unit under test. Xilinx recommends
-- that these types always be used for the top-level I/O of a design in order
-- simulation model.
--------------------------------------------------------------------------------
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
--USE ieee.numeric_std.ALL;
ENTITY shiftreg IS
END shiftreg;
COMPONENT unishiftreg
PORT(
si : IN std_logic;
clk : IN std_logic;
so : OUT std_logic;
);
END COMPONENT;
--Inputs
--Outputs
signal so : std_logic;
BEGIN
si => si,
clk => clk,
so => so,
po => po,
);
clk_process :process
begin
end process;
-- Stimulus process
stim_proc: process
begin
wait;
end process;
END;
• TESTBENCH
--------------------------------------------------------------------------------
-- Company:
-- Engineer:
--
-- Design Name:
-- Target Device:
-- Tool versions:
-- Description:
--
--
-- Dependencies:
--
-- Revision:
-- Additional Comments:
--
-- Notes:
-- This testbench has been automatically generated using types std_logic and
-- std_logic_vector for the ports of the unit under test. Xilinx recommends
-- that these types always be used for the top-level I/O of a design in order
-- simulation model.
--------------------------------------------------------------------------------
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
--USE ieee.numeric_std.ALL;
ENTITY tb IS
END tb;
ARCHITECTURE behavior OF tb IS
COMPONENT unishiftreg
PORT(
si : IN std_logic;
clk : IN std_logic;
so : OUT std_logic;
);
END COMPONENT;
--Inputs
signal si : std_logic := '0';
--Outputs
signal so : std_logic;
BEGIN
si => si,
so => so,
po => po,
);
clk_process :process
begin
end process;
-- Stimulus process
stim_proc: process
begin
si <= '1';
si <= '1';
wait;
end process;
END;
• SYNTHESIS REPORT
TABLE OF CONTENTS
2) HDL Compilation
4) HDL Analysis
5) HDL Synthesis
8) Partition Report
9) Final Report
=========================================================================
=========================================================================
Safe Implementation : No
Asynchronous To Synchronous : NO
Optimization Effort :1
Keep Hierarchy : No
=========================================================================
=========================================================================
* HDL Compilation *
=========================================================================
=========================================================================
=========================================================================
=========================================================================
* HDL Analysis *
=========================================================================
=========================================================================
* HDL Synthesis *
=======================================================================
WARNING:Xst:647 - Input <pin> is never used. This port will be preserved and left unconnected if it
belongs to a top-level block or it belongs to a sub-block and the hierarchy of this sub-block is preserved.
Summary:
=========================================================================
Macro Statistics
# Registers :3
1-bit register :1
4-bit register :2
=========================================================================
=========================================================================
=========================================================================
=========================================================================
Macro Statistics
# Registers :9
Flip-Flops :9
=========================================================================
=========================================================================
=========================================================================
=========================================================================
Macro Statistics
# Registers :9
Flip-Flops :9
=========================================================================
=========================================================================
* Partition Report *
========================================================================
-------------------------------
-------------------------------
=========================================================================
* Final Report *
=========================================================================
Final Results
Keep Hierarchy : No
Design Statistics
# IOs : 13
Cell Usage :
# BELS :6
# LUT2 :2
# LUT3 :4
# FlipFlops/Latches :9
# FD :4
# FDE :5
# Clock Buffers :1
# BUFGP :1
# IO Buffers :8
# IBUF :3
# OBUF :5
=========================================================================
--------------------------
Selected Device : 3s400pq208-5
Number of IOs: 13
---------------------------
---------------------------
---------------------------
=========================================================================
TIMING REPORT
Clock Information:
------------------
-----------------------------------+------------------------+-------+
-----------------------------------+------------------------+-------+
clk | BUFGP |9 |
-----------------------------------+------------------------+-------+
Timing Summary:
---------------
Sped Grade: -5
Timing Detail:
--------------
=========================================================================
-------------------------------------------------------------------------
Gate Net
----------------------------------------
=========================================================================
-------------------------------------------------------------------------
Gate Net
---------------------------------------- ------------
----------------------------------------
-------------------------------------------------------------------------
Source: so (FF)
Destination: so (PAD)
Data Path: so to so
Gate Net
---------------------------------------- ------------
----------------------------------------
=========================================================================
-->