powerpoint 프레젠테이션 -...

59
12 차시 1

Upload: doanbao

Post on 03-Sep-2018

233 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

12 차시

1

Page 2: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

7.5 Read-Only Memory (ROM)

permanent binary information is stored no data input line

2

Page 3: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

each OR gate has 2k inputs, which are connected to each of the outputs of the decoder

3

Page 4: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

programming the ROM : close or open the fuse

0 : open, 1 : connect

4

Page 5: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

data at 11110? 5

Page 6: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

Combinational Circuit Implementation

internal operation of ROM

• memory unit that contains a fixed pattern of stored words • unit that implements a combinational circuit each output terminal is the output of a Boolean function

)29,....,3,2,0(),,,,( 012347 IIIIIAEx)

6

Page 7: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

Example 7.1

Design a combinational circuit that accepts 3-bit number and generates its square number. Use ROM.

7

Page 8: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

B0=A0 & B1=0 so need to generate four outputs with the ROM 8 x 4 ROM

8

Page 9: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

types of ROMs

mask programming the ROM PROM EPROM EEPROM

9

Page 10: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

Combinational PLDs

10

Page 11: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

7.6 Programmable Logic Array

similar to the PROM, but with no decoder does not generate all the minterms array of AND gates are programmed to generate any product term of the input variables

11

Page 12: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

For what exclusive OR?

F1=AB’+AC+A’BC’ F2=(AC+BC)’

12

Page 13: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

tabular form of the fuse map

Inputs (path between inputs and AND gates) 1 : variable is true form 0 : variable is complemented form - : variable is absent

Outputs (path between AND and OR gates) 1 : included in the product term - : open terminal

Then, T? C? 13

Page 14: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

size of a PLA

number of inputs, product terms, outputs

Ex) for n inputs, k product terms, m outputs n buffer-inverter gates k AND gates m OR gates m XOR gates 2n x k connections in input—AND array k x m connections in AND—OR array m connections associated with XOR gates

14

Page 15: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

Design a digital system with a PLA need PLA programming table

• mask programmable • field programmable • minimize the distinct product terms because of the finite number of AND gates (simplify both true and complement of each function)

15

Page 16: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

Ex) Implement the following with a PLA

)7,6,5,0(),,(

)4,2,1,0(),,(

2

1

CBAF

CBAF

Selected combination

'''

)'(

2

1

CBAACABF

BCACABF

find both true and complement of the functions in sum of products

16

Page 17: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

17

Page 18: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

7.7 Programmable Array Logic

fixed OR array and a programmable AND array not flexible as the PLA product term cannot be shared among OR gates each function is simplified by itself Boolean functions must be simplified to fit into each section

18

Page 19: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

19

Page 20: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

Ex) Design the following with PAL

)13,12,8,2,1(),,,(

)15,11,10,8,7,6,5,4,3,2,0(),,,(

)15,14,13,12,11,10,9,8,7(),,,(

)13,12,2(),,,(

DCBAz

DCBAy

DCBAx

DCBAw

DCBADACwDCBADACCDBAABCz

DBCDBAy

BCDAx

CDBAABCw

''''''''''''''

'''

''''

PAL programming table

simplify

20

Page 21: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

21

Page 22: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

Not used AND gates?

22

Page 23: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA & BCD Counter

Page 24: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• H/W

Page 25: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• H/W

Page 26: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• Block Diagram

Page 27: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• New Project ( Using HBE-COMBO II-DLD)

Page 28: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• New Project ( Using HBE-COMBO II-DLD)

Page 29: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• New Project ( Using HBE-COMBO II-DLD)

Page 30: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• New Project ( Using HBE-COMBO II-DLD)

Page 31: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• New Project ( Using HBE-COMBO II-DLD)

Page 32: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• New Project ( Using HBE-COMBO II-DLD)

Page 33: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• New Project ( Using HBE-COMBO II-DLD)

Page 34: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• Device Setting

Page 35: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• Device Setting

Page 36: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• Device Setting

Page 37: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• Device Setting

Page 38: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• Setting between FPGA Pin & Code variation

Page 39: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• Setting between FPGA Pin & Code variation

• After Setting,

Run Start->

Start Analysis &

Elaboration

Page 40: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• Setting between FPGA Pin & Code variation

Page 41: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• Setting between FPGA Pin & Code variation

Double click!

Page 42: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• Run Programmer

Page 43: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• Run Programmer

Page 44: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• Run Programmer

Page 45: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• Run Programmer

Page 46: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• Run Programmer

Page 47: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• Run Programmer

Page 48: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• Run Programmer

Page 49: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• Run Programmer

Page 50: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

FPGA ; HBE-COMBO II-DLD

• HBE-COMBO II-DLD ‘s Pin Map.

• Pin Map data is on eclass.(Excel)

Page 51: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

BCD Counter

• BCD Counter (Binary –Coded Decimal) in Binary system

• In computing and electronic systems, binary-coded decimal (BCD) is a class of binary encodings of decimal numbers where each decimal digit is represented by a fixed number of bits, usually four or eight

• Ex )

Page 52: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

BCD Counter

• BCD Counter (Binary –Coded Decimal)

• Counts from 0 to 9 and then repeats.

• Ex ) 0000 (0) => 0001 (1) => 0010 (2)=> 0011 (3)=> 0100 (4)=> 0101 (5)=> 0110 (6)=> 0111 (7)=> 1000 (8)=> 1001 (9)=> 0000(0) …….

• How can we express a BCD Counter as a circuit?

Page 53: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

BCD Counter

• BCD Counter is composed of a JK Flip-flop.

• Ex ) 4bit Hexadecimal Synchronous up counter ( 0x0000~0x1111)

Page 54: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

BCD Counter

• 4bit Hexadecimal Synchronous up counter

• JK Flip-Flop’s code

What is this??

Page 55: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

BCD Counter

• 4bit Hexadecimal Synchronous up counter

• User Delay Delay is 1ps

Page 56: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

BCD Counter

• 4bit Hexadecimal Synchronous up counter

• 4bit Hexadecimal Synchronous up counter ‘s code

Page 57: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

BCD Counter

• 4bit Hexadecimal Synchronous up counter

• 4bit Hexadecimal Synchronous up counter testbench‘s code

Page 58: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

BCD Counter

• 4bit Hexadecimal Synchronous up counter

• 4bit Hexadecimal Synchronous up counter wave

Page 59: PowerPoint 프레젠테이션 - contents.kocw.netcontents.kocw.net/KOCW/document/2016/hufs/hanhyungoo/12.pdf · •BCD Counter is composed of a JK Flip-flop. ... •JK Flip-Flops

BCD Counter

• 4bit Hexadecimal Synchronous up counter

• Using this, make a BCD Synchronous up counter.