### Course description

《数字电路与数字逻辑》是电子信息工程专业本科生入门性质的专业必修基础课程，它涉及数字技术中的基本原理、基本方法和设计方法，具有很强的工程实践性。本课程衔接了电子技术、及其他电子信息工程专业的主干学科，以生活中随处可见的实物为例，渐进式由浅入深的讲授课程，增强学生的认同感和理解能力，提高教学的授课效果；以电子技术硬件电路分析为主线，以电子系统相关课程设计为实训手段，在培养学生逻辑思维和创新能力的同时，强调理论基础、强化实践动手能力、拓展学生的视野。

本课程的重点：逻辑门电路、组合逻辑电路分析与和设计的基本方法和技巧，以及掌握同步时序逻辑电路分析与设计的基本方法和技巧；难点：异步逻辑电路的分析与设计的基本方法和技巧、存储器和可编程逻辑器件的基本原理，以及EDA工具的基本工作原理。

### Syllabus

Syllabus of Digital Electronic and Numeral Logic

Course Name：Digital Electronic and Numeral Logic Course Code：621010511

Total Hours：48 Credits：3 Semester：4nd

Applicable Major：IOT

Course Type：Major Compulsory

Prerequisite Course：Computer Foundation, Electric Circuits Foundation

Textbook：

数字电子技术（第十一版）（英文版） [Digital Fundamentals, Eleventh Edition], Thomas L. Floyd, 电子工业出版社, ISBN：9787121319822.

I. Course Objectives and Tasks

This course starts from basic principles and builds up analysis procedures for all major aspects of digital electronic and numeral logic. Subjects of current interest to the digital electronic industry are covered in details. It is hoped that this course will help to inspire students new to IOT to take up their career paths in this field of engineering.

II. Course Basic Requirements

1. Familiarity with the principle of electric circuits and computer science;

2. Be a creative self-starter, and have strong attention to details;

3. Capable of performing homework in team spirit and actions;

4. Good verbal and written communication skills in English, including public speaking and presentation skills.

III. Contents of the Course

1. Digital Concepts

This chapter will provide students with:

➢ Basic concept of digital electronics;

➢ A broad overview of many important concepts, components, and tools.

Emphasis:

➢ Digital and analog quantities;

➢ Binary digits, logic levels and digital waveforms;

➢ Basic logic operations.

Difficulties:

➢ Differences between an analog quantity and a digital quantity;

➢ How to define the Not, AND, and OR operation;

➢ Differences between through-hole devices and surface-mount fixed-function devices.

2. VHDL Programming by Example

After completing this chapter, students should be able to:

➢ State the essential elements of VHDL;

➢ Use VHDL to write any Boolean expression.

Emphasis:

➢ Basic approaches to describing a digital circuit;

➢ Writing Boolean Expressions in VHDL.

Difficulties:

➢ Differences between logic operators of VHDL: and, or, not, nand, nor, xor, and xnor;

➢ How to writing Boolean Expressions in VHDL.

3. Number Systems, Operations, and Codes

After this chapter, students should have a basic knowledge on:

➢ Decimal, Binary, Octal and Hexadecimal Numbers;

➢ Convert between the binary and other number systems;

➢ Binary Coded Decimal (BCD) and Digital Coded;

➢ Error Detection and Correction Codes.

Emphasis:

➢ The binary number system and its relationship to other number systems;

➢ Arithmetic operations with binary numbers are emphasized to provide a basis for understanding how computers and many other types of digital systems work.

Difficulties:

➢ Express decimal numbers in binary and other number systems;

➢ How to detect and correct code errors.

4. Logic Gates, Boolean Algebra and Logic Simplification

After this chapter, students should have a basic knowledge on:

➢ The inverter;

➢ The AND, OR, NAND, NOR, Exclusive-OR and Exclusive-NOR Gates;

➢ Fixed-function logic;

➢ The laws, rules, and theorems of Boolean algebra and their application to digital circuits.

Emphasis:

➢ Operation, application and troubleshooting of logic gates;

➢ The relationship of input and output waveforms of a gate using timing diagrams;

➢ How to define a given circuit with a Boolean expression and evaluate its operation.

Difficulties:

➢ Differences between a programmable logic and fixed-function logic device;

➢ How to simplify logic circuits by Boolean algebra and Karnaugh maps.

5. Combinational Logic Analysis

After this chapter, students should have abilities to:

➢ Analyze basic combinational logic circuits;

➢ Use AND-OR and AND-OR-Invert circuits to implements sum-of-products (SOP) and product-of-sum (POS) expressions;

➢ Write the Boolean output expression for any combinational logic circuit.

Emphasis:

➢ Design a combinational logic circuit for a given Boolean output expression or a given truth table;

➢ Simplify a combinational logic circuit to its minimum form;

➢ Apply combinational logic to a system application.

Difficulties:

➢ Develop a truth table from the output expression for a combinational logic circuit;

➢ Use the Karnaugh map to expand an output expression containing terms with missing variables into a full SOP form.

6. Latches, Flip-Flops, and Timers

After this chapter, students should be able to:

➢ Use logic gates to construct basic latches;

➢ Explain the difference between an S-R latch and a D latch;

➢ Recognize the difference between a latch and a flip-flop.

Emphasis:

➢ Significance of propagation delays, set-up time, hold time, maximum operating frequency, minimum clock pulse widths, and power dissipation in the application of flip-flops;

➢ The basic elements in a 555 timer, and how to set up a 555 timer as a one-shot or an oscillator.

Difficulties:

➢ Differences between S-R, D, and J-K flip-flops;

➢ Explain the difference between retriggerable and nonretriggerable one-shots.

7. Counters

After this chapter, students should have a basic knowledge on:

➢ Asynchronous and synchronous counter operation;

➢ Up/down sSynchronous counters;

➢ Cascaded counters;

➢ Counter decoding and counter applications;

➢ Logic symbols with dependency notation.

Emphasis:

➢ Difference between an asynchronous and a synchronous counter;

➢ Analyze counter circuits and timing diagrams;

➢ Explain how a digital clock operates.

Difficulties:

➢ Use an up/down counter to generate forward and reverse binary sequences;

➢ Determine the sequence of a counter;

➢ Use logic gates to decode any given state of a counter.

8. Shift Registers, Memory and Storage

After this chapter, students should have a basic knowledge on:

➢ Basic shift register functions;

➢ Random-access memories (RAMs);

➢ Read-only memories (ROMs);

➢ Programmable ROMs (PROMs and EPROMs);

➢ Flash memories;

➢ Memory expansion.

Emphasis:

➢ Identify the basic forms of data movement in shift registers;

➢ Use a shift register as a time-delay device;

➢ The memory logic portion of the system, which stores the entry code.

Difficulties:

➢ Use shift registers in a system application;

➢ Describe the expansion of ROMs and RAMs to increase word length and word capacity;

➢ Develop flowcharts for memory testing.

9. Programmable Logic and Software

After this chapter, students should be able to:

➢ Explain the programming process in terms of design flow;

➢ Describe the design entry phase;

➢ Describe the functional simulation phase;

➢ Describe the synthesis phase;

➢ Describe the implementation phase;

➢ Describe the timing simulation phase;

➢ Describe the download phase.

Emphasis:

➢ The phases of the design flow for programmable logic;

➢ The essential elements for programming a CPLD or FPGA.

Difficulties:

➢ Design flow process for programming the logic for driving a 7-segment display.

10. Programmable Logic Device

After this chapter, students should be able to:

➢ Explain the basic structure of programmable logic: SPLDs and CPLDs;

➢ Distinguish between CPLDs and FPGAs.

Emphasis:

➢ Basic architecture (internal structure and organization) of SPLDs, CPLDs, and FPGAs;

➢ Describe the basic architecture of two types of SPLDs: the PAL and the GAL;

➢ Explain the basic structure of a programmable logic array (PLA).

Difficulties:

➢ Explain how product terms are generated in CPLDs and FPAGs;

➢ Discuss embedded functions.

11. Introduction to Computer and Digital Signal Processing

After this chapter, students should have a basic knowledge on:

➢ Computer and digital signal processing basics;

➢ Microprocessors;

➢ Direct memory access (DMA);

➢ Analog-to-digital conversion methods;

➢ Digital-to-analog conversion methods;

➢ The digital signal processor (DSP).

Emphasis:

➢ Explain the basic operation of an Intel CPU and microprocessor;

➢ Define and explain the advantage of DMA;

➢ Explain how analog signals are converted to digital form;

➢ State the purpose of digital-to-analog conversion;

➢ Describe the sampling process;

➢ Explain the basic concepts and architecture of a digital signal processor (DSP).

Difficulties:

➢ The Intel 8086/8088 processor;

➢ Define the Nyquist frequency;

➢ The reason for aliasing and how it is eliminated.

IV. Practice Content and Requirements

1. The practice contents should suit the main points of each chapter;

2. The goal of design practice contents is to encourage students develop the creativity and ability to think on their own.

V. Requirements of Exercises and Homework

Interactive discussion on the cases from the textbook or Internet

VI. Time Allocation

Course Part:

Chapter Content Hour(s)

1 Digital Concepts 2

2 VHDL Programming by Example 2

3 Number Systems, Operations, and Codes 3

4 Logic Gates, Boolean Algebra and Logic Simplification 2

5 Combinational Logic Analysis 3

6 Latches, Flip-Flops, and Timers 4

7 Counters 3

8 Shift Registers, Memory and Storage 3

9 Programmable Logic and Software 3

10 Programmable Logic Device 3

11 Introduction to Computer and Digital Signal Processing 2

12 Review 2

Total 32

Experimental Projects Part:

Project Content Hour(s)

1 Design flow process for programming the logic for counter down 3

2 Design a basic combinational logic circuit (such as 3-8 decoder) 3

3 Design a basic timing circuit (such as shift register) 3

4 Design a 7-segment Decoder or a Timer 3

5 Comprehensive experiment (such as design a traffic light control system, or any number systems counter) 4

Total 16

### Assessment standard

Closed book exam should be employed. 50% of the total score is examination score, 25% is decided by attendance of the students and mid-term examination, 25% of the total score allocates to experiments.

### Teaching material

Reference Book

1. Digital Fundamentals with PLD Programming. Thomas L. Floyd, Prentice-Hall Press, 2005, ISBN 0131701886.

2. 数字电子技术基础. 阎石, 高等教育出版社出版, 2016, ISBN：9787040444933.