CS303 LOGIC DESIGN FINAL EXAM

Similar documents
MULTIMEDIA COLLEGE JALAN GURNEY KIRI KUALA LUMPUR

University of Toronto Faculty of Applied Science and Engineering Edward S. Rogers Sr. Department of Electrical and Computer Engineering

CS 151 Final. Q1 Q2 Q3 Q4 Q5 Total Credit Score. Instructions: Student ID. (Last Name) (First Name) Signature

R10. II B. Tech I Semester, Supplementary Examinations, May

One and a half hours. Section A is COMPULSORY UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE

One and a half hours. Section A is COMPULSORY

Philadelphia University Student Name: Student Number:

Written exam for IE1204/5 Digital Design Thursday 29/

ACS College of Engineering. Department of Biomedical Engineering. Logic Design Lab pre lab questions ( ) Cycle-1

Lab 3: Standard Combinational Components

Principles of Digital Techniques PDT (17320) Assignment No State advantages of digital system over analog system.

Good Evening! Welcome!

EPC6055 Digital Integrated Circuits EXAM 1 Fall Semester 2013

CS 151 Midterm. Instructions: Student ID. (Last Name) (First Name) Signature

Final Exam Solution Sunday, December 15, 10:05-12:05 PM

1. What is y-chart? ans: The y- chart consists of three domains:- behavioral, structural and geometrical.

The University of Alabama in Huntsville ECE Department CPE Midterm Exam February 26, 2003

Control and Datapath 8

R07. Code No: V0423. II B. Tech II Semester, Supplementary Examinations, April

ECE 341 Midterm Exam

KING FAHD UNIVERSITY OF PETROLEUM & MINERALS COMPUTER ENGINEERING DEPARTMENT

(ii) Simplify and implement the following SOP function using NOR gates:

ELCT 501: Digital System Design

Problem Set 10 Solutions

Hours / 100 Marks Seat No.

Written Re-exam with solutions for IE1204/5 Digital Design Friday 10/

Lecture 7. Standard ICs FPGA (Field Programmable Gate Array) VHDL (Very-high-speed integrated circuits. Hardware Description Language)

CS 151 Midterm. (Last Name) (First Name)

Laboratory 4 Design a Muti-bit Counter and Programming a FPGA

Laboratory 4 Design a Muti-bit Counter

Scheme G. Sample Test Paper-I

ECE 341 Midterm Exam

Sign here to give permission for your test to be returned in class, where others might see your score:

Laboratory Exercise 8

Lecture #1: Introduction

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

Laboratory Exercise 7

Midterm Exam Thursday, October 24, :00--2:15PM (75 minutes)

Boolean Logic CS.352.F12

CS 61C Summer 2012 Discussion 11 State, Timing, and CPU (Solutions)

DIGITAL LOGIC DESIGN VHDL Coding for FPGAs Unit 6

Summary of FPGA & VHDL

Final Exam Review. b) Using only algebra, prove or disprove the following:

Hardware Description Language VHDL (1) Introduction

UNIT I BOOLEAN ALGEBRA AND COMBINATIONAL CIRCUITS PART-A (2 MARKS)

SUBJECT CODE: IT T35 DIGITAL SYSTEM DESIGN YEAR / SEM : 2 / 3

Outline. CPE/EE 422/522 Advanced Logic Design L05. Review: General Model of Moore Sequential Machine. Review: Mealy Sequential Networks.

Abi Farsoni, Department of Nuclear Engineering and Radiation Health Physics, Oregon State University

Code No: 07A3EC03 Set No. 1

Senior Project Design Review: Internal Hardware Design of a Microcontroller in VLSI

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Sciences. Spring 2010 May 10, 2010

EEL 4712 Digital Design Test 1 Spring Semester 2007

DIGITAL ELECTRONICS. P41l 3 HOURS

PART B. 3. Minimize the following function using K-map and also verify through tabulation method. F (A, B, C, D) = +d (0, 3, 6, 10).

problem maximum score 1 10pts 2 8pts 3 10pts 4 12pts 5 7pts 6 7pts 7 7pts 8 17pts 9 22pts total 100pts

VALLIAMMAI ENGINEERING COLLEGE

END-TERM EXAMINATION

SIR C.R.REDDY COLLEGE OF ENGINEERING, ELURU DEPARTMENT OF INFORMATION TECHNOLOGY LESSON PLAN

Storage Elements & Sequential Circuits

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

VALLIAMMAI ENGINEERING COLLEGE. SRM Nagar, Kattankulathur DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING EC6302 DIGITAL ELECTRONICS

Injntu.com Injntu.com Injntu.com R16

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING QUESTION BANK NAME OF THE SUBJECT: EE 2255 DIGITAL LOGIC CIRCUITS

B.Tech II Year I Semester (R13) Regular Examinations December 2014 DIGITAL LOGIC DESIGN

Scheme I. Sample Question Paper

DHANALAKSHMI SRINIVASAN COLLEGE OF ENGINEERING AND TECHNOLOGY

Sequential Statement

DIGITAL LOGIC WITH VHDL (Fall 2013) Unit 6

Model EXAM Question Bank

[VARIABLE declaration] BEGIN. sequential statements

SHRI ANGALAMMAN COLLEGE OF ENGINEERING. (An ISO 9001:2008 Certified Institution) SIRUGANOOR, TIRUCHIRAPPALLI

Introduction to VHDL Design on Quartus II and DE2 Board

EEL 4712 Digital Design Test 1 Spring Semester 2008

CSC / EE Digital Systems Design. Summer Sample Project Proposal 01

AMD actual programming and testing on a system board. We will take a simple design example and go through the various stages of this design process.

II/IV B.Tech (Regular/Supplementary) DEGREE EXAMINATION. Answer ONE question from each unit.

Luleå University of Technology Kurskod SMD152 Datum Skrivtid

L11: Major/Minor FSMs

SIDDHARTH GROUP OF INSTITUTIONS :: PUTTUR Siddharth Nagar, Narayanavanam Road QUESTION BANK (DESCRIPTIVE) UNIT-I

HANSABA COLLEGE OF ENGINEERING & TECHNOLOGY (098) SUBJECT: DIGITAL ELECTRONICS ( ) Assignment

1. Mark the correct statement(s)

Experiment 8 Introduction to VHDL

Lab 6: Integrated the Decoder with Muti-bit Counter and Programming a FPGA

Digital logic fundamentals. Question Bank. Unit I

FSM Components. FSM Description. HDL Coding Methods. Chapter 7: HDL Coding Techniques

Read this before starting!

Logic design Ibn Al Haitham collage /Computer science Eng. Sameer

MODULE 12 APPLICATIONS OF MEMORY DEVICES:


VALLIAMMAI ENGINEERING COLLEGE

Concept of Memory. The memory of computer is broadly categories into two categories:

CS 151 Quiz 4. Instructions: Student ID. (Last Name) (First Name) Signature

COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING QUESTION BANK SUBJECT CODE & NAME: EC 1312 DIGITAL LOGIC CIRCUITS UNIT I

Read this before starting!

ECE20B, Spring Final Exam lab questions.

COPYRIGHTED MATERIAL INDEX

QUESTION BANK FOR TEST

R07

EE 109L Review. Name: Solutions

CS 151 Final. (Last Name) (First Name)

Transcription:

JANUARY 2017. CS303 LOGIC DESIGN FINAL EXAM STUDENT NAME & ID: DATE: Instructions: Examination time: 100 min. Write your name and student number in the space provided above. This examination is closed book. There are 4 questions. The points for each question are given in the square brackets, next to the question title. The overall maximum score is 100. This final exam weighs 40% of your final grade. Answer each question in the space provided. If you need to continue an answer onto the back of the sheet, clearly indicate that and label the continuation with the question number. QUESTION 1 2 3 4 POINTS /18 /28 /20 /34 TOTAL /100

1. Mark the correct statement(s) (18 %) 1.1 The minimum number of NOR gates (only!) with which it is possible to implement an AND gate is (hint: DeMorgan s theorem): [3] a) 2, b) 3, c) 4, d) It is not possible to do. 1.2 Which type of memory is volatile? [3] a) EEPROM, b) SRAM, c) DRAM, d) HDD. 1.3 Which of the following is an axiom of Boolean algebra: [3] a) x. 0 = 0, b) 1 + 1 = 1, c) x. x = 0, d) x + x = 1, e) 1 + 0 = 1 f) None of these 1.4 A priority encoder with 4 inputs has: [3] a) 2 outputs, b) 3 outputs, c) 4 outputs, d) 16 outputs 1.5 The binary number 10100 is the two's complement representation of: [3] a) -11, b) -12, c) -20, d) 20. 1.6 The output Y = 1. Which input combination below gives this output? [3] a) 10 11 10 00, b) 11 10 01 11, c) 00 01 11 01, d) 10 11 11 00. e) None of the above. 2. RAM, Logic gates and components (28%) 2.1 Write down the excitation tables of D type, T type and JK type flip flops! [9] 2.2 Implement the Boolean function F with 4x1 multiplexer and external gates. [7] D = (1 11 1 1 1 1 ) 2.3 Design (draw the chips and main components and connections) a 32M x 16 memory using RAM chips that are 8M x 8! How many address bits are required? How many data bits constitute the data bus? If the address decoder has in total 4 inputs, what is the maximum capacity to which you can expand the memory? [12]

3. VHDL exercise (20 %) Complete VHDL code to create a 16-bit synchronous counter that increments its value on each positive edge of the clock if the Enable signal is high. The counter is reset to 0 on the next positive clock edge if the synchronous Reset input is low. Use two toggle switches for enable and reset inputs, and pushbutton switch for counter input value. LIBRARY ieee; USE ieee.std_logic_1164.all; USE ieee.std_logic_unsigned.all; ENTITY Counter IS PORT ( SW : IN STD_LOGIC_VECTOR( ); KEY : STD_LOGIC_VECTOR( ); HEX3, HEX2, HEX1, HEX0 : ( )); END Counter; ARCHITECTURE Structural OF Counter IS COMPONENT hex7seg PORT ( ); END COMPONENT; Clock, Reset, Enable : STD_LOGIC; Count : ; PROCESS ( ) END PROCESS; -- drive the displays digit3: digit2: digit1: digit0: END Structural;

LIBRARY ieee; USE ieee.std_logic_1164.all; ENTITY hex7seg IS PORT ( hex : IN STD_LOGIC_VECTOR( ); display : OUT STD_LOGIC_VECTOR( ); END hex7seg; ARCHITECTURE Function OF hex7seg IS PROCESS (hex) CASE IS WHEN " " => display <= "0000001"; WHEN " " => display <= "1001111"; WHEN " " => display <= "0010010"; WHEN " " => display <= "0000110"; WHEN " " => display <= "1001100"; WHEN " " => display <= "0100100"; WHEN " " => display <= "1100000"; WHEN " " => display <= "0001111"; WHEN " " => display <= "0000000"; WHEN " " => display <= "0001100"; WHEN " " => display <= "0001000"; WHEN " " => display <= "1100000"; WHEN " " => display <= "0110001"; WHEN " " => display <= "1000010"; WHEN " " => display <= "0110000"; WHEN => display <= "0111000"; END CASE; END PROCESS; END Function;

4. Finite State Machine Design (34 %) You are a tourist and you want to visit some cities. You can travel from one to another city, depending on how much money you have in your pocket. The four cities are: Sarajevo, Tuzla, Mostar and Bihac. In your pocket, you can either see that there is money (M=1), or there is no money (M=0). You start the trip in Sarajevo. Sarajevo: If you don t have money stay in Sarajevo. If you have money then go to Tuzla. Tuzla: if you don t have any money left return back to Sarajevo. If you have money then go to Bihac. Bihac: if you don t have any money left return back to Sarajevo. If you have more money then go to Mostar. Mostar: if you don t have any money left return back to Sarajevo. If you have money stay in Mostar. 4.1 Assign states to cities and make the state diagram! [8] 4.2 Fill the state table! [8] 4.3 Design the FSM with T-flip flops! (Just state the input equations.) [9] 4.4 Design the FSM with D or JK-flip flops! (Just state the input equations.) [9] Present State INPUT Next T flip flops flip flops M State T1 T0