VLSI Lab 1: Design of Combinational Logic Designs using Schematic entry and Verilog using Quartus Prime

  

VLSI Lab 1

Lab 1: Design of Combinational Logic Designs using Schematic entry and Verilog using Quartus Prime

Laboratory Objectives

The objectives of this laboratory are:

  • Learn how to use a commercially available FPGA synthesis environment.
  • Create a combination circuit using graphical design entry (schematic entry) and Verilog.
  • Analyze the synthesis results and understand the FPGA resources consumed.
  • Simulate the design generating a testbench and verify the correctness of the simulation.


Introduction

This is a step-by-step tutorial for building a 1-bit full-adder using Quartus II Design Suite software that provides designers with the ability to generate digital circuits in different ways, e.g. schematic entry and/or using a hardware description language such as VHDL or Verilog. The Quartus II also provides the ability to apply FPGA pin and timing constraints, analyze for errors and violations.


Full Adder

An example 1-bit full adder block diagram and Boolean circuit are shown below with its truth table (to be completed at your report).



Select the FPGA board DE1-SoC. It is easier to configure the project.


Full adder schematics:



After compilation:



File > Create/Update > Create HDL Design File from Current File

Choose "Verilog HDL".

Change Project Navigator to "Files" and Right click on Files to add fulladder.v to your project.

Setting the Verilog file as top entity and recompile the design.

Create a testbench template: Processing  Start  Start Test Bench Template Writer.


The console window illustrates where the testbench has been generated.

Rename the file to a verilog type file (e.g.) "fulladder_tb.v" and add it to your project in Quartus.

Open and edit test-bench fulladder_tb.v as shown below to define input test vector A, B and Cin. The file is attached here for you to download.

Run a simulation: Tools >   Run Simulation Tool  >   RTL Simulation

Problem 1:

Solve 1:
Tools >  Options  >  (Find under) General  >  EDA Tool Option
Specify the simulation tools path where e.g. C:\intelFPGA_lite\20.1\modelsim_ase\win32aloem  (in our lab PC)

Assignments  >   Settings   >   (Find under) EDA Tools Settings  >  Simulation  > ModelSim-Altera >  Verilog (See below)


Then, run a simulation: Tools >   Run Simulation Tool  >   RTL Simulation
After doing so, Modelsim simulator could be started with above settings. 

To compile testbench : Compile  ->  Compile…
Choose the file "fulladder_tb.v" .
Click compile and then click done. This will create an entry in the work library.

Right click on fulladder_tb and choose simulate. Then select the signals to be displayed and drag to
Waveform.
Increase simulation step from 100ps to 1000ps and start simulation.
(Right click the signal and choose "Add Wave". You can type a command: e.g. run 1000000)
































留言

這個網誌中的熱門文章

VLSI Lab 4 Verilog MegaWizard IP Generator (Compiled on Quartus II v20.1) - 2024 simplified version

VLSI Lab 5 - VGA Controller (Compiled & working on Quartus v20.1)

VLSI Lab 0 - Introduction of Altera FPGA Development Board DE1-SoC (Cyclone 5)