UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL & ELECTRONICS ENGINEERING SEMESTER TWO EXAMINATION 2017/2018

Similar documents
Module -18 Flip flops

Chapter 4: FLIP FLOPS. (Sequential Circuits) By: Siti Sabariah Hj. Salihin ELECTRICAL ENGINEERING DEPARTMENT EE 202 : DIGITAL ELECTRONICS 1

Digital Circuits Laboratory LAB no. 12. REGISTERS

Fan in: The number of inputs of a logic gate can handle.

ENGIN 112 Intro to Electrical and Computer Engineering

Winter 14 EXAMINATION Subject Code: Model Answer P a g e 1/28

2014 Paper E2.1: Digital Electronics II

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

E2.11/ISE2.22 Digital Electronics II

Sequential Logic Circuits

UNIT II: Clocked Synchronous Sequential Circuits. CpE 411 Advanced Logic Circuits Design 1

Chapter 5 Sequential Logic Circuits Part II Hiroaki Kobayashi 7/11/2011

1 Q' 3. You are given a sequential circuit that has the following circuit to compute the next state:

IES Digital Mock Test

Brought to you by. Priti Srinivas Sajja. PS01CMCA02 Course Content. Tutorial Practice Material. Acknowldgement References. Website pritisajja.

DIGITAL ELECTRONICS QUESTION BANK

EE 42/100 Lecture 24: Latches and Flip Flops. Rev A 4/14/2010 (8:30 PM) Prof. Ali M. Niknejad


Lecture 02: Digital Logic Review

CMOS Digital Integrated Circuits Analysis and Design

EECS-140/141 Introduction to Digital Logic Design Lecture 7:Sequential Logic Basics

Page 1. Last time we looked at: latches. flip-flop

Module-20 Shift Registers

HIGH LOW Astable multivibrators HIGH LOW 1:1

Objective Questions. (a) Light (b) Temperature (c) Sound (d) all of these

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) SUMMER-16 EXAMINATION Model Answer

B.E. SEMESTER III (ELECTRICAL) SUBJECT CODE: X30902 Subject Name: Analog & Digital Electronics

logic system Outputs The addition of feedback means that the state of the circuit may change with time; it is sequential. logic system Outputs

Sequential Logic Circuits

CMOS Digital Integrated Circuits Lec 11 Sequential CMOS Logic Circuits

! Review: Sequential MOS Logic. " SR Latch. " D-Latch. ! Timing Hazards. ! Dynamic Logic. " Domino Logic. ! Charge Sharing Setup.

CPE/EE 427, CPE 527 VLSI Design I: Homeworks 3 & 4

Lecture 20: Several Commercial Counters & Shift Register

COMPUTER ORGANIZATION & ARCHITECTURE DIGITAL LOGIC CSCD211- DEPARTMENT OF COMPUTER SCIENCE, UNIVERSITY OF GHANA

Design of low-power, high performance flip-flops

Electronics. Digital Electronics

ECE 2300 Digital Logic & Computer Organization

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

3.1 There are three basic logic functions from which all circuits can be designed: NOT (invert), OR, and

Linear & Digital IC Applications (BRIDGE COURSE)

CHAPTER III THE FPGA IMPLEMENTATION OF PULSE WIDTH MODULATION

Digital Electronics Course Objectives

ELECTRONICS ADVANCED SUPPLEMENTARY LEVEL

Classification of Digital Circuits

ENGG1015: lab 3. Sequential Logic

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

Java Bread Board Introductory Digital Electronics Exercise 2, Page 1

Serial Addition. Lecture 29 1

In this lecture, we will first examine practical digital signals. Then we will discuss the timing constraints in digital systems.

EC O4 403 DIGITAL ELECTRONICS

1. The decimal number 62 is represented in hexadecimal (base 16) and binary (base 2) respectively as

64/256/512/1K/2K/4K/8K x 9 Synchronous FIFOs

PHYSICS 536 Experiment 14: Basic Logic Circuits

EECS 150 Homework 4 Solutions Fall 2008

ADC Bit µp Compatible A/D Converter

EC4205 Microprocessor and Microcontroller

Chapter 5 Sequential Logic Circuits Part II Hiroaki Kobayashi 6/30/2008

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

Digital Logic Circuits

1. Short answer questions. (30) a. What impact does increasing the length of a transistor have on power and delay? Why? (6)

1. What is the major problem associated with cascading pass transistor logic gates?

74ABT273 Octal D-Type Flip-Flop

Adder Comparator 7 segment display Decoder for 7 segment display D flip flop Analysis of sequential circuits. Sequence detector

CS/EE Homework 9 Solutions

Number system: the system used to count discrete units is called number. Decimal system: the number system that contains 10 distinguished

An Analysis of Multipliers in a New Binary System

Preface to Third Edition Deep Submicron Digital IC Design p. 1 Introduction p. 1 Brief History of IC Industry p. 3 Review of Digital Logic Gate

ECOM 4311 Digital System Design using VHDL. Chapter 9 Sequential Circuit Design: Practice

I hope you have completed Part 2 of the Experiment and is ready for Part 3.

! Is it feasible? ! How do we decompose the problem? ! Vdd. ! Topology. " Gate choice, logical optimization. " Fanin, fanout, Serial vs.

Computer Architecture: Part II. First Semester 2013 Department of Computer Science Faculty of Science Chiang Mai University

Data Logger by Carsten Kristiansen Napier University. November 2004

1. LINEAR WAVE SHAPING

Department of Electronics and Communication Engineering

HCF4017B DECADE COUNTER WITH 10 DECODED OUTPUTS

! Sequential Logic. ! Timing Hazards. ! Dynamic Logic. ! Add state elements (registers, latches) ! Compute. " From state elements

CS302 - Digital Logic Design Glossary By

HCC/HCF4035B 4-STAGE PARALLEL IN/PARALLEL OUT SHIFT REGISTER

CHAPTER 16 SEQUENTIAL CIRCUIT DESIGN. Click the mouse to move to the next page. Use the ESC key to exit this chapter.

GATE Online Free Material

Electronic Instrumentation

Circuits in CMOS VLSI. Darshana Sankhe

CS302 Digital Logic Design Solved Objective Midterm Papers For Preparation of Midterm Exam

EE 330 Lecture 44. Digital Circuits. Ring Oscillators Sequential Logic Array Logic Memory Arrays. Final: Tuesday May 2 7:30-9:30

LIST OF EXPERIMENTS. KCTCET/ /Odd/3rd/ETE/CSE/LM

CONTENTS Sl. No. Experiment Page No

Exercise 1: Circuit Block Familiarization

Controller Implementation--Part I. Cascading Edge-triggered Flip-Flops

74F161A 74F163A Synchronous Presettable Binary Counter

Electronic Circuits EE359A

COLLEGE OF ENGINEERING, NASIK

LSI/CSI LS7290 STEPPER MOTOR CONTROLLER. LSI Computer Systems, Inc Walt Whitman Road, Melville, NY (631) FAX (631)

ENGR-2300 Electronic Instrumentation Quiz 3 Spring Name: Solution Please write you name on each page. Section: 1 or 2

SRV ENGINEERING COLLEGE SEMBODAI RUKMANI VARATHARAJAN ENGINEERING COLLEGE SEMBODAI

Introduction to IC-555. Compiled By: Chanakya Bhatt EE, IT-NU

E2.11/ISE2.22 Digital Electronics II

EE 330 Lecture 44. Digital Circuits. Dynamic Logic Circuits. Course Evaluation Reminder - All Electronic

PROPOSED SCHEME OF COURSE WORK

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) MODEL ANSWER

74VHC174 HEX D-TYPE FLIP FLOP WITH CLEAR

Transcription:

UNIVERSITY OF BOLTON [EES04] SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL & ELECTRONICS ENGINEERING SEMESTER TWO EXAMINATION 2017/2018 INTERMEDIATE DIGITAL ELECTRONICS AND COMMUNICATIONS MODULE NO: EEE5002 Date: Wednesday 23 rd May 2018 Time: 14:00 16:00 INSTRUCTIONS TO CANDIDATES: There are SIX questions. Answer ANY FOUR questions. All questions carry equal marks. Marks for parts of questions are shown in brackets. Time: 2 hours CANDIDATES REQUIRE: Answer book Graph papers

Page 2 of 12 Q1. a) If A (=1100) and B (=1001) are two unsigned variables. Find the value of the following expressions when used inside a Verilog module: (i) (A AND B) (ii) (A && B) (iii) (A B) (iv) (A B) (v) A<<2 b) Consider the following design (Fig. 1.1) for a set-reset (S-R) latch, incorporating a NOR and XNOR gate: Fig. 1.1 (i) Fill in the function table below for Z and ~Z in this sequential circuit and reproduce this table in your answer sheet. X Y Z ~Z 0 0 0 1 1 0 1 1 Question 1b continues over the page.

Page 3 of 12 Question 1b continued. (ii) From the completed function table, explain what is wrong with this latch. How can the design be corrected? (2.5 marks) c) The circuits shown below (Fig. 1.2) are (a) D-latch & (b) D-flipflop with their outputs connected to their inputs via an inverter. Draw the output waveforms of X and Y assuming that they are both low initially and that CLK is a uniform square wave and explain what seems to be the problem for circuit (a). Fig. 1.2 d) Consider the following two Verilog modules, m1 and m2 for a shift register: module m1 (in, CLK, out); input in, CLK; output out; reg q1, q2, out; always @(posedge CLK) begin q1 = in; q2 = q1; out = q2; end endmodule Question 1d continues over the page.

Page 4 of 12 Question 1d continued. module m2 (in, CLK, out); input in, CLK; output out; reg q1, q2, out; always @(posedge CLK) begin q1 <= in; q2 <= q1; out <= q2; end endmodule (i) Describe what will be the output for each of the two modules m1 and m2. (2.5 marks) (ii) Now, considering positive edge triggered D flip flops, provide the procedural statement based Verilog code for a 4-stage shift register. Total 25 marks

Page 5 of 12 Q2. a) For the state machine shown below (Fig. 2.1), (i) Draw the equivalent Moore machine. Fig. 2.1 (7.5 marks) (ii) What would be the sequence of the state transition and the resulting output sequence if the input is fixed to a constant bit stream of 1 for all cycles? (2.5 marks) b) A synchronous state machine has its state represented by the 2-bit number S1:0 and has a single input signal DIR. The current state is stored in a D-type register whose input NS1:0 is defined by: NS1 = S0 DIR and NS0 = S1. DIR Draw the state table for the synchronous machine. (7.5 marks) Question 2 continues over the page.

Page 6 of 12 Question 2 continued. c) In the circuit shown below (Fig. 2.2), the propagation delays associated with the flip flop on the left (FF1) and the following logical block are tp and td, respectively. The flip flop on right hand side (FF2) has setup and hold times of ts and th, respectively. The circuit is being driven synchronously by a CLK signal C with a time period T. For the circuit (Fig. 2.2): Fig. 2.2 (i) Write down the setup and hold inequalities which apply to the FF2 in the circuit. (ii) Find the maximum CLK frequency for the circuit if the timing parameters are tp =2, ts =11, th = 5 and 7 td 23 (all times in ns). (2.5 marks) Total 25 marks

Page 7 of 12 Q3. A state machine that controls a vending machine has three input signals A, B and C which go high for one clock cycle following the insertion of 10p, 20p and 50p coins respectively. At most one of A, B and C is ever high at a time and their transitions occur shortly after the CLOCK rising edge (positive edge of CLOCK). The state machine has three outputs, X, Y and Z which respectively dispense a chocolate bar and give 10p and 20p coins as change. Figure 5.1 below shows the state diagram for the vending machine; the outputs are all low except where indicated on transition arrows. Fig. 5.1 (i) Deduce the cost of a chocolate bar. (ii) Complete the timing diagram shown in Figure 5.2 showing the sequence of states, S2:0, as a decimal number and the waveforms of X, Y and Z. Question 5 continues over the page.

Page 8 of 12 Question 5 continued. Fig. 5.2 (10 marks) (iii) Draw a revised state diagram for a state machine having the same input and output signals as before but with a chocolate bar price of 40p. The outputs Y and Z must never be high simultaneously. (10 marks) Total 25 marks

Page 9 of 12 Q4. Given that the characteristic equation for a J-K flip flop is given by: Q+ = JQ + K Q (i) Now, determine the flip flop input equations for both the JK flip flops (A and B) of the following sequential circuit (Fig. 3.1). You may consider that the output of the system is defined by the output of the flip flop themselves. Fig. 3.1 (10 marks) (ii) Determine the state table and state diagram for the above system. (15 marks) Total 25 marks

Page 10 of 12 Q5. a) Draw and describe the construction of a single static RAM memory cell incorporating the SR -latch and associated gates. b) Determine the output of the (i) binary weighted D/A convertor shown below, if the sequence shown (ii) is applied to the inputs (Fig. 4.1). (i) Fig. 4.1 c) Explain following modulating techniques with diagrams. (10 marks) (i) (ii) Amplitude Shift Keying (ASK) Frequency Shift Keying (FSK) (10 marks) Total 25 marks

Page 11 of 12 Q6. a) Explain why most memory integrated circuits have tri-state data output pins. b) A toggle flipflop (T-flipflop) changes state whenever its T input is high on the positive edge of the CLK as shown in the timing diagram (Fig. 6.1). Describe how a T-flipflop can be made using a D latch. Fig. 6.1 (10 marks) c) A sample-hold circuit is used to store the input voltage of a 12-bit A/D converter during each conversion. The sample-hold circuit has an aperture uncertainty of 5 ns and a leakage current of ±1 na. The A/D converter has an input voltage range of ±10 V. If the input voltage is a sine wave of amplitude 10 V, calculate: (i) the input frequency at which the aperture uncertainty will result in an error of ±0.5 LSB. Question 6c continues over the page.

Page 12 of 12 Question 6 continued. (ii) If the sample-hold circuit uses a storage capacitor of 200 pf, calculate how long the input voltage can be held before it changes by 0.5 LSB due to the leakage current. Total 25 marks END OF QUESTIONS