UCSD ECE 111 Prof. Farinaz Koushanfar Fall 2017

Slides:



Advertisements
Similar presentations
RightNow 8 -- Adding a new report: New > Report: ORAnalytics > Reports > New Report
Advertisements

Verilog in transistor level using Microwind
Anurag Dwivedi.  Verilog- Hardware Description Language  Modules  Combinational circuits  assign statement  Control statements  Sequential circuits.
1 Brief Introduction to Verilog Weiping Shi. 2 What is Verilog? It is a hardware description language Originally designed to model and verify a design.
PSPICE Tutorial Spring 2015
Integrated Circuits Laboratory Faculty of Engineering Digital Design Flow Using Mentor Graphics Tools Presented by: Sameh Assem Ibrahim 16-October-2003.
ECE 272 Xilinx Tutorial. Workshop Goals Learn how to use Xilinx to: Draw a schematic Create a symbol Generate a testbench Simulate your circuit.
Select “Check Design Rules” and double click.. Screen after double clicking on “Check Design Rules”
ECE – 329 Fall 2007 Lab Manual for Xilinx Example: Design and simulation of a Half Adder Instructor: Dr.Botros.
Verilog Lab This presentation includes some material that is selected from BUCKNELL VERILOG HANDBOOK. Instructor: Dr. Charles Liu Prepared by John Ren.
Altera’s Quartus II Installation, usage and tutorials Gopi Tummala Lab/Office Hours : Friday 2:00 PM to.
2-to-1 Multiplexer: if Statement Discussion D7.1 Example 4.
Chapter 05 Tutorial Using Verilog
ECE Department: University of Massachusetts, Amherst Lab 1: Introduction to NIOS II Hardware Development.
Guest Lecture by Ben Magstadt CprE 281: Digital Logic.
Guest Lecture by Ben Magstadt CprE 281: Digital Logic.
Week Four Design & Simulation Example slides. Agenda Review the tiny example (Minako “logic”)from last week – look at the detailed static timing report.
1 Workshop Topics - Outline Workshop 1 - Introduction Workshop 2 - module instantiation Workshop 3 - Lexical conventions Workshop 4 - Value Logic System.
Synopsys Custom Designer Tutorial for a chip integration using the University of Utah Standard Cell Libraries In ON Semiconductor 0.5u C5 CMOS Version.
Fall 08, Oct 31ELEC Lecture 8 (Updated) 1 Lecture 8: Design, Simulation Synthesis and Test Tools ELEC 2200: Digital Logic Circuits Nitin Yogi
Chap. 4 Modules and Ports. 2 Modules and Ports Modules Ports Hierarchical Names Summary.
line.net/ okpop.com/bar elythereflashin dex.html.
Multisim Subcircuits. Draw the basic circuit you want.
Speaker: Tsung-Yi Wu FPGA Design Flow (Part 2) : Simulation.
LECTURE IV MODELSIM. Go to the link listed below for a demonstration of how to begin working with Modelsim. The video shows you how to write a Verilog.
Types of Delay Models. Delay models Three types of delay models used in Verilog Distributed delay model Lumped Delay model Pin-to-pin (path) Delay model.
 Seattle Pacific University EE Logic System DesignAlteraBoard-2 Altera Cyclone II (484 Pin BGA) 22 Pins.
Quick guide to ASIMON configuration For version 3.0 or greater SAFETY AT WORK Date: 3/18/2009.
CSCI-365 Computer Organization Lecture Note: Some slides and/or pictures in the following are adapted from: Computer Organization and Design, Patterson.
Introduction to Verilog. Data Types A wire specifies a combinational signal. – Think of it as an actual wire. A reg (register) holds a value. – A reg.
CprE 281: Verilog Tutorial Ben Magstadt – Master’s Student Electrical Engineering.
Introduction to Verilog. Structure of a Verilog Program A Verilog program is structured as a set of modules, which may represent anything from a collection.
Tutorial for Modelsim 1 Installation Download the Modelsim Student Edition: Follow the.
Hankuk University of Foreign Studies Digital IC design (Gates modeling with VHDL & Modelsim)
Import existing part with drawing
Lecture 5. Verilog HDL #3 Prof. Taeweon Suh Computer Science & Engineering Korea University COSE221, COMP211 Logic Design.
How to edit the P11 in PDF format June Open the file “P11 UNICEF.PDF” with Adobe Acrobat 9.3.
VLSI Synthesis and Simulation Tools Nitin Yogi 01/09/2009
VAB™ for INFINITY Tutorial
Lab 1: Using NIOS II processor for code execution on FPGA
The first change to your project files that is needed is to change the device to the correct FPGA. This is done by going to the Assignments tab on the.
What Should I Do if My Style Is Not Included?
Reg and Wire:.
Introduction to Verilog
Dept. of Electrical and Computer Engineering
Discussion 2: More to discuss
WORKSHOP 6 USING THE ASCII CONDUIT
Creating Exploded Views in Creo 3.0
Batch Functionality SAVING TIME WITH DATA ENTRY.
An Introduction to Designing and Executing Workflows with Taverna
Ariba Contracts: Initiate eSignature
Lecture 9: Testbench and Division
Batch Functionality SAVING TIME WITH DATA ENTRY.
Topics The logic design process..
Introduction to Verilog
Microsoft Official Academic Course, Access 2016
Levels in computer design
1. Open Visual Studio 2008.
Test Fixture (Testbench)
Introduction to Digital System and Microprocessor Design
Lecture 9: Testbench and Division
Introduction to Verilog
Introduction to Verilog, ModelSim, and Xilinx ISE
UCSD ECE 111 Prof. Farinaz Koushanfar Fall 2017
Introduction to Verilog, ModelSim, and Xilinx Vivado
European Computer Driving Licence
Introduction to Verilog
Introduction to Verilog
Software Activation for Existing Client If you are already registered with us and using our product. Start software, it will be displayed following main.
Presentation transcript:

UCSD ECE 111 Prof. Farinaz Koushanfar Fall 2017 ModelSim Tutorial UCSD ECE 111 Prof. Farinaz Koushanfar Fall 2017 Some slides are courtesy of Prof. Lin

Steps Create the project Add/create Verilog files Add testbench Compile and Simulate ECE 111 Fall 2017

Create the Project Open a new project: File > New > Project Specify a name and a location Leave the other two options as default Enter project name here Selected location ECE 111 Fall 2017

Add/Create Files Create new file: Either click on “Create New File” or right click > Add to project > New File Enter a name, Set file type to Verilog Save the file: File > Save (or ctr-S) ECE 111 Fall 2017

Add/Create Files Double click on the file or right click > edit to edit the file Add an existing file: Either click on “Create New File” or right click > Add to project > Existing file, then browse for the file Similarly, add the necessary testbench(s) ECE 111 Fall 2017

Add Testbench Testbench is a simulation specific Verilog file that is used to provide input values to the module under test. In the next two slides we provide a simple Verilog file and corresponding testbench. Detail on testbench later in the course ECE 111 Fall 2017

Add Testbench module first_module( input i1, i2, output o1, o2 ); assign o1 = i1&i2; assign o2 = i1|i2; endmodule ECE 111 Fall 2017

Add Testbench contd.. Testbench module does not have any input/output module first_module_tb; // Inputs reg i1; reg i2; // Outputs wire o1; wire o2; first_module uut ( .i1(i1), .i2(i2), .o1(o1), .o2(o2) ); Testbench module does not have any input/output The inputs will be changed inside an always/initial block Instantiate the module under test contd.. ECE 111 Fall 2017

Add Testbench initial begin i1 = 0; i2 = 0; #100; $display("%d %d %d %d\n", i1, i2, o1, o2); i2 = 1; Wait, only works in simulation Display the values, similar format as printf C , only works in simulation contd.. ECE 111 Fall 2017

Add Testbench i1 = 1; i2 = 0; #100; $display("%d %d %d %d\n", i1, i2, o1, o2); i2 = 1; end endmodule ECE 111 Fall 2017

Compile Select all the files and right click to specify compile order For simple project we can use Auto Generate to generate the order But for larger project we might need to specify the orders by ourselves Compile all after you have specified the order ECE 111 Fall 2017

Simulate Simulate > start simulation Under work > find your testbench file Click ok ECE 111 Fall 2017

Simulate Open wave tab if it did not pop up automatically In Objects tab, drag the desired input/output into the wave tab ECE 111 Fall 2017

Simulate Specify time to run and hit the run next to it ECE 111 Fall 2017