Inside Digital Design Accompany Lab Manual

Similar documents
Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

Lab #10 Hexadecimal-to-Seven-Segment Decoder, 4-bit Adder-Subtractor and Shift Register. Fall 2017

Laboratory 1 - Introduction to Digital Electronics and Lab Equipment (Logic Analyzers, Digital Oscilloscope, and FPGA-based Labkit)

DIGITAL SYSTEM DESIGN UNIT I (2 MARKS)

ENGG2410: Digital Design Lab 5: Modular Designs and Hierarchy Using VHDL

MODULE 3. Combinational & Sequential logic

VeriLab. An introductory lab for using Verilog in digital design (first draft) VeriLab

CprE 281: Digital Logic

Microprocessor Design

1. Convert the decimal number to binary, octal, and hexadecimal.

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

Department of Electrical and Computer Engineering Mid-Term Examination Winter 2012

Altera s Max+plus II Tutorial

Lab #5: Design Example: Keypad Scanner and Encoder - Part 1 (120 pts)

BISHOP ANSTEY HIGH SCHOOL & TRINITY COLLEGE EAST SIXTH FORM CXC CAPE PHYSICS, UNIT 2 Ms. S. S. CALBIO NOTES lesson #39

Rensselaer Polytechnic Institute Computer Hardware Design ECSE Report. Lab Three Xilinx Richards Controller and Logic Analyzer Laboratory

Digital Networks and Systems Laboratory 2 Basic Digital Building Blocks Time 4 hours

ASYNCHRONOUS COUNTER CIRCUITS

BCN1043. By Dr. Mritha Ramalingam. Faculty of Computer Systems & Software Engineering

Register Transfer Level in Verilog: Part II

Laboratory 4. Figure 1: Serdes Transceiver

UNIVERSITI TEKNOLOGI MALAYSIA

COE328 Course Outline. Fall 2007

Implementation and Analysis of Area Efficient Architectures for CSLA by using CLA

Logic Design Viva Question Bank Compiled By Channveer Patil

Sequential Digital Design. Laboratory Manual. Experiment #7. Counters

CS6201 UNIT I PART-A. Develop or build the following Boolean function with NAND gate F(x,y,z)=(1,2,3,5,7).

ECE 263 Digital Systems, Fall 2015

Tutorial 11 ChipscopePro, ISE 10.1 and Xilinx Simulator on the Digilent Spartan-3E board

Final Exam review: chapter 4 and 5. Supplement 3 and 4

WINTER 15 EXAMINATION Model Answer

DALHOUSIE UNIVERSITY Department of Electrical & Computer Engineering Digital Circuits - ECED 220. Experiment 4 - Latches and Flip-Flops

Electrical and Telecommunications Engineering Technology_TCET3122/TC520. NEW YORK CITY COLLEGE OF TECHNOLOGY The City University of New York

Contents Circuits... 1

YEDITEPE UNIVERSITY DEPARTMENT OF COMPUTER ENGINEERING. EXPERIMENT VIII: FLIP-FLOPS, COUNTERS 2014 Fall

Decade Counters Mod-5 counter: Decade Counter:

Bachelor Level/ First Year/ Second Semester/ Science Full Marks: 60 Computer Science and Information Technology (CSc. 151) Pass Marks: 24

Registers and Counters

1. True/False Questions (10 x 1p each = 10p) (a) I forgot to write down my name and student ID number.

MODU LE DAY. Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation. Day 1

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 3 Logistics

Digital Fundamentals: A Systems Approach

Lecture 12. Amirali Baniasadi

EEE130 Digital Electronics I Lecture #1_2. Dr. Shahrel A. Suandi

TIME SCHEDULE. MODULE TOPICS PERIODS 1 Number system & Boolean algebra 17 Test I 1 2 Logic families &Combinational logic

Laboratory Exercise 7

MODEL QUESTIONS WITH ANSWERS THIRD SEMESTER B.TECH DEGREE EXAMINATION DECEMBER CS 203: Switching Theory and Logic Design. Time: 3 Hrs Marks: 100

Physics 217A LAB 4 Spring 2016 Shift Registers Tri-State Bus. Part I

Individual Project Report

Lecture 8: Sequential Logic

Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it,

Registers and Counters

1 Hour Sample Test Papers: Sample Test Paper 1. Roll No.

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Science SOLUTIONS

Logic Design. Flip Flops, Registers and Counters

1. a) For the circuit shown in figure 1.1, draw a truth table showing the output Q for all combinations of inputs A, B and C. [4] Figure 1.

Switching Circuits & Logic Design, Fall Final Examination (1/13/2012, 3:30pm~5:20pm)

QUICK GUIDE COMPUTER LOGICAL ORGANIZATION - OVERVIEW

R13 SET - 1 '' ''' '' ' '''' Code No: RT21053

NORTHWESTERN UNIVERSITY TECHNOLOGICAL INSTITUTE

Analogue Versus Digital [5 M]

CARLETON UNIVERSITY. Facts without theory is trivia. Theory without facts is bull 2607-LRB

FPGA Development for Radar, Radio-Astronomy and Communications

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

Serial FIR Filter. A Brief Study in DSP. ECE448 Spring 2011 Tuesday Section 15 points 3/8/2011 GEORGE MASON UNIVERSITY.

Tribhuvan University Institute of Science and Technology Bachelor of Science in Computer Science and Information Technology

CprE 281: Digital Logic

EE 210. LOGIC DESIGN LAB.

Combinational / Sequential Logic

Read-only memory (ROM) Digital logic: ALUs Sequential logic circuits. Don't cares. Bus

2.6 Reset Design Strategy

California State University, Bakersfield Computer & Electrical Engineering & Computer Science ECE 3220: Digital Design with VHDL Laboratory 7

Figure 1: Feature Vector Sequence Generator block diagram.

DepartmentofElectronicEngineering NEDUniversity ofengineering &Technology LABORATORY WORKBOOK DIGITAL LOGIC DESIGN (TC-201)

Design and implementation (in VHDL) of a VGA Display and Light Sensor to run on the Nexys4DDR board Report and Signoff due Week 6 (October 4)

LFSRs as Functional Blocks in Wireless Applications Author: Stephen Lim and Andy Miller

R13. II B. Tech I Semester Regular Examinations, Jan DIGITAL LOGIC DESIGN (Com. to CSE, IT) PART-A

HDL & High Level Synthesize (EEET 2035) Laboratory II Sequential Circuits with VHDL: DFF, Counter, TFF and Timer

CprE 281: Digital Logic

6.3 Sequential Circuits (plus a few Combinational)

CSCB58 - Lab 4. Prelab /3 Part I (in-lab) /1 Part II (in-lab) /1 Part III (in-lab) /2 TOTAL /8

Experiment 8 Introduction to Latches and Flip-Flops and registers

ELEC 204 Digital System Design LABORATORY MANUAL

Name: Date: Suggested Reading Chapter 7, Digital Systems, Principals and Applications; Tocci

CSE 275 Digital Design Lab Lab 8 Serial Adder/Subtractor Penn State Erie, The Behrend College Fall Semester 2007 Number of Lab Periods: 2

CprE 281: Digital Logic

Main Design Project. The Counter. Introduction. Macros. Procedure

International Journal of Engineering Research-Online A Peer Reviewed International Journal

Dr. Shahram Shirani COE2DI4 Midterm Test #2 Nov 19, 2008

Synchronous Sequential Logic

COMP12111: Fundamentals of Computer Engineering

VLSI IEEE Projects Titles LeMeniz Infotech

Sri Vidya College of Engineering And Technology. Virudhunagar Department of Electrical and Electronics Engineering

Experiment # 4 Counters and Logic Analyzer

Dev Bhoomi Institute Of Technology Department of Electronics and Communication Engineering PRACTICAL INSTRUCTION SHEET

DIGITAL FUNDAMENTALS

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

Keywords Xilinx ISE, LUT, FIR System, SDR, Spectrum- Sensing, FPGA, Memory- optimization, A-OMS LUT.

2. Counter Stages or Bits output bits least significant bit (LSB) most significant bit (MSB) 3. Frequency Division 4. Asynchronous Counters

Transcription:

1 Inside Digital Design, Accompany Lab Manual Inside Digital Design Accompany Lab Manual Simulation Prototyping Synthesis and Post Synthesis Name- Roll Number- Total/Obtained Marks- Instructor Signature-

2 Inside Digital Design, Accompany Lab Manual Lab Number Lab-1 Total Marks Marks Obtained Signatures TA of Lab-2 Lab-3 Lab-4 Lab-5 Lab-6 Lab-7 Lab-8 Lab-9 Lab-10 Lab-11 Lab-12 Lab-13 Lab-14 Lab-15 Lab-16

3 Inside Digital Design, Accompany Lab Manual Lab Equipment Required Hardware 1. FPGA Board, Preferably Spartan 3 and 2 2. Oscilloscopes, Data Timing Generator, Logic Analyzer Software 1. Xilinx ISE 2. Model Sim, Mentor Graphics 3. Synopsys, Synopsys Inc. 4. X Power for Power Analysis 5. Chip Scope Pro for Real Time On Chip Debugging 6. Timing Analyzer

4 Inside Digital Design, Accompany Lab Manual Contents Lab-1: Combinational Logic, Model Sim Adder Design, Decoder, Multiplexers, Comparator Lab-2: Sequential Logic, Model Sim Flip-flop (D, Toggle, JK), Counters, Shift Register, Linear Feed Back shift Registers, Stop Watch with Seven Segment Lab-3: Simulation of ASMD Design, RISC Processor RISC Processor Simulation, Control Unit, Memory and Data path in Model Sim Lab-4: FPGA and Synthesis, Xilinx Multiplex on FPGA, Synthesis of Designs of Lab 1 and 2, Counter and Stop watch on FPGA Lab-5: Synthesis and Prototyping of ASMD Designs, RISC Processor Design of Control Unit on FPGA Lab-6: Synthesis and Prototyping of ASMD Designs, RISC Processor Memory using Core Generators, Prototyping of RISC Processor on FPGA Lab-7: UART Simulation UART and receiver Simulation on Model Sim

5 Inside Digital Design, Accompany Lab Manual Lab-8: Design of UART system using PC and FPGA Design of UART transmitter on FPGA and Receiving Bits on HyperTerminal, Using.NET as Transmitter and Designing Receiver on FPGA, Integrating UART Receiver and Transmitter Lab-9: Design of Complete Processor with Compiler on PC Integrating RISC and UART, Sending Data from.net based compiler and receiving it on FPGA, Executing Instruction on FPGA and sending it to.net Application on PC using UART Transmitter Lab-10: Design of Veterbi and Reed Solomon Simulating Veterbi System and Reed Solomon Encoder, Decoder, Integrating Interleaver with Veterbi. Lab-11: Line Encoding Techniques Simulation and Implementation Getting Data from Voice Input from User, Line Encoding the data and sending it to PC using UART Lab-12: Design of Complete Communication System-1 Transmitting Data from the PC.Net Application to FPGA, Receiving Data on FPGA using UART receiver, Encoding the Data in the FPGA Encoding it using Communication Transmitter, Receiving the Data on.net application form FPGA. Lab-13: Design of Complete Communication System-2 The Received Data in Lab 12 is transmitter again with some noise on FPGA, FPGA Behaves like Receiver now and Recovering Data from the received data, Received data is send to.net Application

6 Inside Digital Design, Accompany Lab Manual Lab-14: Digital Signal Processing Application FIR and IIR Filters Design, Wallace Tree Multiplier, Conditional Sum Adder, Cordic Algorithm Lab-15: Digital Signal Processing and Image Processing Application-1 FFT, Decimator and Interpolator, Canny Edge Detection Lab-16: USB and PCI Bus Design Controllers for USB and PCI Bus Lab-17: Post Synthesis (Optional) ASIC Chip Designing using Synopsys

7 Inside Digital Design, Accompany Lab Manual This Page is intentionally Left Blank

8 Inside Digital Design, Accompany Lab Manual Combinational Logic, Model Sim Lab-1 Adder Design, Decoder, Multiplexers, Comparator Question-1: Design the 4-Bit Ripple carry Adder Circuit. Partition your design using down up approach. Design a half adder circuit, seeing the truth table and the diagram in Figure 1-1. Using the half adder design, make full adder design, seeing diagram in figure 1-2. Finally integrate the full adder to make 4-bit ripple carry adder shown in figure 1-3. (Paste your results above the waveform 1-1, 1-2 and 1-3 given below).

9 Inside Digital Design, Accompany Lab Manual Modify the 4-bit adder so that it can work as adder-subtractor circuit. The M decides whether to add or subtract, in case M is 1 the circuit take two complement by inverting all the bits and add one to the least significant position. In other way it behaves like a normal adder the illustration is given in Figure 1-4 and the waveform is given in waveform 1-4. Question-2: Write a code for 4*1 Multiplex, one of the four inputs is passed to the output, as shown in figure 1-5. This requires selection line of 2 bit. Paste the results below waveform number 1-5.

10 Inside Digital Design, Accompany Lab Manual Figure 1-5: 4x1 Multiplexer a-) Logical b-) Functional Table and c-) Block Diagram. Modify the above design so that it can be a quadruple 2x1 Multiplexer, the design is shown in figure 1-6. Paste the results below waveform number 1-5. Figure 1-6: Quadruple 2x1 Multiplex

11 Inside Digital Design, Accompany Lab Manual Question-3: Design the Encoder given in Figure 1-7. The waveform is given in waveform 1-6. Figure 1-7: Block Diagram and Truth Table for Encoder Question-4: Design a 16 Bit Encoder with 2 inputs A and B. There are three outputs A equal to B, A less than B and A greater than B. The waveform of the Design is Given in 1-6. Figure 1-8: Block Diagram for 16 Bit Comparator

12 Inside Digital Design, Accompany Lab Manual Sequential Logic, Model Sim Lab-2 Flip-flop (D, Toggle, JK), Counters, Shift Register, Linear Feed Back shift Registers, Stop Watch with Seven Segment Question 1-(a): Write Code and Stimulus for D Flip Flop. The required Circuit is given in Figure below 2-1? Figure 2-1: D Flip Flop and its Truth Table Question 1-(b): Write Code and Stimulus for T Flip Flop by Calling D Flip Flop and Without Calling D Flip Flop. The required Circuit is given in Figure 2-2 below? Figure 2-2: JK Flip Flop and its Truth Table

13 Inside Digital Design, Accompany Lab Manual Question 1-(c): Write Code and Stimulus for JK Flip Flop by Calling D Flip Flop and Without Calling D Flip Flop. The required Circuit is given in Figure below 2-3? Figure 2-3: T Flip Flop and its Truth Table Question 2: Write Code and Stimulus for the universal Shift Register. Which is capable to perform following operations? The required Circuit is given in Figure 2-4 below? Figure 2-4: Universal Shift Register and its Table Question 3: Write a code and Stimulus for the generic Linear Feed back Shift register. The output is feed back to the MSB unconditional all other feed backs are conditional to Tap Coefficients. Define any Coefficients for your Self. The required Circuit is given in Figure 2-5 below.

14 Inside Digital Design, Accompany Lab Manual Figure 2-5: Generic Linear Feed Back Shift Register Question 4-(a): Write a code for a Simple BCD Counter Which can count Up and Down from 0~9 and 9~0 respectively. The up down sequence can be switched using UD Control i.e. if the value of UD is 1 the Counter will count from 0~9 and back and if it is 0 it will count from 9~0 and back. The required Circuit is given in Figure 2-6 a below. Figure 2-6: BCD Counter with 4 bit output and Up down Control and Johnson Counter. Both can be reset Question 4-(b): Write Verilog code and Stimulus for the Johnson counter which can count in the sequence 2,4,8,16,32,64,128,256,128,64,32,16,8,4,2. Consider an 8 Bit register in which

15 Inside Digital Design, Accompany Lab Manual one is present at the LSB. Each time the value is shift once left (if Little Endean is followed) until the one reaches the MSB and then this is shifting process is reversed until it reaches LSB and So Forth. The required Circuit is given in Figure 2-6 b above. Question 5: Write code and Stimulus for the Stop watch Circuit with Seven Segment Display. The Stop Watch starts its operation with the start control. Once Triggered it will count from 0~99, It can be reset at any time to zero using rst control. The stop watch can be paused in its Operation using stop control; it will resume its halted counted by using start again. The 7 bit count is passed to BCD to seven segment module which generated the 7 bit Segment code to display on two seven Segments. The required Circuit is given in Figure 2-7 below. Figure 2-7: Stop watch on Left and Seven Segment Codes on Right Hand Side

16 Inside Digital Design, Accompany Lab Manual Simulation of ASMD Design, RISC Lab-3 RISC Processor Simulation, Control Unit, Memory and Data path in Model Sim Question-1: Design the control unit of the RISC Processor [1]. The ASMD Chart of the RISC Processor is given in the Figure 3-3. Write the Test Bench of the Control Unit, Pass different values of the instruction and study the states of the Control Unit. Architecture, Instruction Set and Instruction format are given in Figure 3-1, Figure 3-2a and Figure 3-2b. Figure 3-1: Architecture of the RISC Processor

17 Inside Digital Design, Accompany Lab Manual Figure 3-2a: Instruction Set of the Processor Figure 3-2b: Instruction Format Figure 3-3: ASMD Chart of Control Unit with the States Mentioned in Blue Assertion in Black and Dissertation of Previous State in Brown.

18 Inside Digital Design, Accompany Lab Manual Question-2: Design the Data Path of the RISC Processor given in the Question-1. Also Write the Complete Test Bench for the Design. Follow the Process Step by Step by writing the code of ALU, Register File and Memory. Write Separate Test Bench and Waveform for each Module and then the Complete Waveform for the Data Path. Question-3: Integrate Data Path and Control Unit, Write Test Bench for the Top Level Module RISC SPM. The Top Level Module Instantiates both Control Unit and Data path? Write a Code to Calculate the Factorial of the Number in the Test Bench of the Top Level module. Store Number 5 as a variable in the Data Memory Partition of the Memory. *This Lab is Triple Weight age and each Question Contains 15 Marks.