Previous

Installing the Software

You must have the following versions of software to use this tutorial.

Before Beginning the Tutorial

Before you begin this tutorial, set up your workstation to use Synopsys FPGA Compiler or Design Compiler and the Xilinx software as follows.

  1. Verify proper configuration of your system. Consult the release notes and installation notes that came with your software package for more information.

  2. Install the following sets of software.

  3. Verify the installation. When you finish the installation, verify that your .cshrc or setup file contains lines similar to the following.


NOTE

$XILINX is the directory for all Xilinx software. $SYNOPSYS is the directory for the Synopsys software.


setenv XILINX location_of_Xilinx_software
setenv SYNOPSYS location_of_Synopsys_software
set path=($SYNOPSYS/sparc/syn/bin \
$SYNOPSYS/sparc/sim/bin \
$XILINX/bin/sun $path)

Understanding the Tutorial Design

The Calc design is a 4-bit processor with a stack. The processor performs functions between an internal register and either the top of the stack or data input from external switches. Calc stores the results of various operations in the register and displays them in hexadecimal on a seven-segment display. The top value in the stack displays in binary on a bar LED. A count of the items in the stack displays as a “gauge” on another bar LED.

Calc consists of the following functional blocks.

Installing the Tutorial

The tutorial files install automatically when you install the Xilinx software.

You can find the FPGA Compiler tutorial files in the following directory.

$XILINX/synopsys/tutorial/fpga

You can find the Design Compiler tutorial files in the following directory.

$XILINX/synopsys/tutorial/dc

The following sections provide a description of the tutorial files.

VHDL Design Files

Calc.vhd is the top level design file but it also includes the following lower-level VHDL modules.

VHDL Testbench

You can find the testbench.vhd file in this directory. You can use the same testbench to perform both RTL and timing simulation.

Script Files

The following four script files automate the steps in this tutorial.


NOTE

When you run synthesize.csh, FPGA Compiler or Design Compiler executes calc.script, a dc_shell synthesis script file.


Setup Files

The following two setup files are provided.

Models for RTL Simulation

The following RTL simulation files are included.

Readme File

The Readme file provides the steps you need to follow to complete the tutorial.

Copying the Tutorial Files

To copy the tutorial files, follow these steps.

  1. Create a project directory that you can write to when using the tutorial, as shown in the following examples.

    mkdir calc_4kex

  2. Copy the tutorial files from $XILINX/synopsys/tutorial/fpga (FPGA Compiler tutorial).

    cp -r $XILINX/synopsys/tutorial/fpga calc_4kex
    cd calc_4kex/fpga/vhdl
    mkdir WORK


    Or copy the files from $XILINX/synopsys/tutorial/dc (Design Compiler tutorial) into the appropriate project directory.

    cp -r $XILINX/synopsys/tutorial/dc calc_4kex
    cd calc_4kex/dc/vhdl
    mkdir WORK


Next