Memory technologies - kth.se

95
William Sandqvist [email protected] Memory technologies Technologi Access time Cost $/GB SRAM 1 ns 1000 DRAM 50 ns 100 HDD 10 ms 1 Fast memory is expensive and inexpensive memories are slow! Principal figures.

Transcript of Memory technologies - kth.se

Page 1: Memory technologies - kth.se

William Sandqvist [email protected]

Memory technologies

Technologi Access time Cost $/GB

SRAM 1 ns 1000

DRAM 50 ns 100

HDD 10 ms 1

Fast memory is expensive and inexpensive

memories are slow!

Principal figures.

Page 2: Memory technologies - kth.se

William Sandqvist [email protected]

Memory Hierarchy

A three-level memory hierarchy. The faster memory types are

used as "buffers" against the slower.

Principle

Primary

memory

Secondary

memory

Page 3: Memory technologies - kth.se

Memory and memory chips

William Sandqvist [email protected]

Memory:

N words, width M bits

Memorychip:

p words, width q bits

Number of rows r N/p

Number of columns k M/q

Number of chips K = r k

N, M - memorykrK

Words

Width M

Number of chips K

p, q chiprows

cols

N word

memory

Page 4: Memory technologies - kth.se

William Sandqvist [email protected]

SRAM

Each bit in a CMOS SRAM

consists of a latch circuit made up

of six MOS transistors.

The memory cell is basically a

SR-latch.

Page 5: Memory technologies - kth.se

William Sandqvist [email protected]

DRAMEach bit in a DRAM consists of a

transistor and a capacitor.

A charged capacitor leaks charge

after a while. Periodically, all the

capacitors must be searched and

those who have charge left must

then be reloaded. This is called

Refresh. It is managed by circuitry

within the memory.

Page 6: Memory technologies - kth.se

William Sandqvist [email protected]

The capacitor is built on the depth

One bit in a DRAM takes the same

place as two MOS transistors. One

bit in the SRAM as six MOS

transistors!

Trench Capacitor

Page 7: Memory technologies - kth.se

Infineon HYB25D25640 256 Mbit SDRAM

William Sandqvist [email protected]

32M 25220 = 225, 25 address bits

used. Time-multiplexed

addressing, 13-bit RAS (row), 10

bit CAS (columns), two bank bits

BA0 and BA1.

Burst can be 2, 4, 8 Bytes.

Chip 256Mbit (32M8)

Synchronously, using the bus clock.

Double-edge triggered for double

data rate ck + ck (even lower

power).

Page 8: Memory technologies - kth.se

William Sandqvist [email protected]

Burst …Exept from the

memory cells

the chip also

contains a lot

of other digital

circuits

Page 9: Memory technologies - kth.se

William Sandqvist [email protected]

Column address counter can quickly address

of the "neighboring memory cells" - the

memory can moore quickly deliver a burst

with several bytes in sequence, than an totaly

random acess.

Burst …

Page 10: Memory technologies - kth.se

William Sandqvist [email protected]

Burst provides faster average access

• To access 1 ”random” word in the memory takes three busscykles 3TBus/word

(2 TBUS are Waitstates)

• To access a ”Burst” of 2 words takes 3+1 busscykles, 4/2 = 2TBus/word

• To access a ”Burst” of 4 words takes 3+1+1+1 busscykles, 6/4 = 1,5TBus/word

• To acess a ”Burst” of 8 words takes 3+1+1+1+1+1+1+1 cykles, 10/8 = 1,25TBus/word

It's important to have proper use of all fetched words - otherwise you are

wasting bus clock cycles with the Burst method!

More about this in the Computer Organization course,

when reading about caches.

Page 12: Memory technologies - kth.se

William Sandqvist [email protected]

Memory N = 256M M = 64 bits. Chip p = 32M q = 8 bits.

Number of columns k = M/q = 64/8 = 8.

Number of rows r = N/p = 256M/32M = 8.

Number of chips K = r k = 88 = 64.

a) How many chips are needed for 256M64?

Chip

256Mbit (32M8)

Ex 12.1 Dynamic Memory

Page 14: Memory technologies - kth.se

512M72 ?

Memory N = 512M M = 72 bits. Chip p = 32M q = 8 bits.

Number of columns k = M/q = 72/8 = 9.

Number of rows r = N/p = 512M/32M = 16.

Number of chips K = r k = 9 1 6 = 144.

William Sandqvist [email protected]

Chip

256Mbit (32M8)b) How many chips are needed for 512M72?

Page 15: Memory technologies - kth.se

512M72 ?

Memory N = 512M M = 72 bits. Chip p = 32M q = 8 bits.

Number of columns k = M/q = 72/8 = 9.

Number of rows r = N/p = 512M/32M = 16.

Number of chips K = r k = 9 1 6 = 144.

William Sandqvist [email protected]

Chip

256Mbit (32M8)b) How many chips are needed for 512M72?

The "unusual" bit width 72 (= 64 + 8). The 8 extra bits are used for

correcting single faults, and to detect double faults.

• (In this way, even capsules small errors could be used as the

error can be corrected. They would otherwise have to be

discarded).

Page 16: Memory technologies - kth.se

512M72 ?

Memory N = 512M M = 72 bits. Chip p = 32M q = 8 bits.

Number of columns k = M/q = 72/8 = 9.

Number of rows r = N/p = 512M/32M = 16.

Number of chips K = r k = 9 1 6 = 144.

William Sandqvist [email protected]

Chip

256Mbit (32M8)b) How many chips are needed for 512M72?

The "unusual" bit width 72 (= 64 + 8). The 8 extra bits are used for

correcting single faults, and to detect double faults.

(In this way, even capsules small errors could be used as the error

can be corrected. They would otherwise have to be discarded).

• Or will a expensive memory be good even if some of the memory

cells "wear out" over time.

Page 18: Memory technologies - kth.se

SRAM size?

William Sandqvist [email protected]

How big is the figure

SRAM, and which is

the address area

expressed in

hexadecimal numbers

Micro-

processor

Page 19: Memory technologies - kth.se

SRAM size?

William Sandqvist [email protected]

How big is the figure

SRAM, and which is

the address area

expressed in

hexadecimal numbers

Micro-

processor

Chip:

p = 512k q = 8 bits

Memory:

r = 3 k = 2 K = 2 3 = 6

M = k q = 2 8 = 16 bits

N = p r = 512k 3 = 1,5M

Page 20: Memory technologies - kth.se

SRAM Control?

William Sandqvist [email protected]

?

?

WR

RD

How big is the figure

SRAM, and which is

the address area

expressed in

hexadecimal numbers

Chip:

p = 512k q = 8 bits

Memory:

r = 3 k = 2 K = 2 3 = 6

M = k q = 2 8 = 16 bits

N = p r = 512k 3 = 1,5M

Page 21: Memory technologies - kth.se

SRAM Control?

William Sandqvist [email protected]

WRWR

RDRD

How big is the figure

SRAM, and which is

the address area

expressed in

hexadecimal numbers

Chip:

p = 512k q = 8 bits

Memory:

r = 3 k = 2 K = 2 3 = 6

M = k q = 2 8 = 16 bits

N = p r = 512k 3 = 1,5M

Page 22: Memory technologies - kth.se

SRAM address range?

William Sandqvist [email protected]

Micro-

processor

Page 23: Memory technologies - kth.se

SRAM address range?

William Sandqvist [email protected]

Micro-

processor

Page 24: Memory technologies - kth.se

SRAM address range?

William Sandqvist [email protected]

Micro-

processor

SRAM address range: A80000 - BFFFFF

Page 25: Memory technologies - kth.se

Change the address range! ?Change the address range to 980000 – AFFFFF ?

980000

1001|1000|0000|0000|0000|0000|

AFFFFF

1010|1111|1111|1111|1111|1111|

William Sandqvist [email protected]

Page 26: Memory technologies - kth.se

Change the address range! ?Change the address range to 980000 – AFFFFF ?

980000

1001|1000|0000|0000|0000|0000|

AFFFFF

1010|1111|1111|1111|1111|1111|

William Sandqvist [email protected]

Page 27: Memory technologies - kth.se

Change the address range! ?Change the address range to 980000 – AFFFFF ?

980000

1001|1000|0000|0000|0000|0000|

AFFFFF

1010|1111|1111|1111|1111|1111|

William Sandqvist [email protected]

”10|011” ”3”

”10|101” ”5”

Page 28: Memory technologies - kth.se

Change the address range! ?Change the address range to 980000 – AFFFFF ?

William Sandqvist [email protected]

”10|011” ”3”

”10|101” ”5”

Micro-

processor

980000

1001|1000|0000|0000|0000|0000|

AFFFFF

1010|1111|1111|1111|1111|1111|

Page 29: Memory technologies - kth.se

Change the address range! ?Change the address range to 480000 – 5FFFFF ?

William Sandqvist [email protected]

Page 30: Memory technologies - kth.se

Change the address range! ?Change the address range to 480000 – 5FFFFF ?

William Sandqvist [email protected]

480000

0100|1000|0000|0000|0000|0000|

5FFFFF

0101|1111|1111|1111|1111|1111|

Page 31: Memory technologies - kth.se

Change the address range! ?Change the address range to 480000 – 5FFFFF ?

William Sandqvist [email protected]

480000

0100|1000|0000|0000|0000|0000|

5FFFFF

0101|1111|1111|1111|1111|1111|

”01|001” ”1”

”01|011” ”3”

Page 32: Memory technologies - kth.se

Change the address range! ?Change the address range to 480000 – 5FFFFF ?

William Sandqvist [email protected]

480000

0100|1000|0000|0000|0000|0000|

5FFFFF

0101|1111|1111|1111|1111|1111|

”01|001” ”1”

”01|011” ”3”

Micro-

processor

Page 33: Memory technologies - kth.se

Change the address range! ?Change the address range to 480000 – 5FFFFF ?

William Sandqvist [email protected]

480000

0100|1000|0000|0000|0000|0000|

5FFFFF

0101|1111|1111|1111|1111|1111|

”01|001” ”1”

”01|011” ”3”

Micro-

processor

Page 34: Memory technologies - kth.se

ROM 00 00 00…?

William Sandqvist [email protected]

Most often a processor reads its first instruction from address 0, then there

must be a ROM at that address. Suppose a ROM 2M 16 bitar address

range 000000 … and forward. ROM Chip 512k8.

How many chips are needed?

How is the decoder connected?

How are the memory chips connected?

Which is the address area for the ROM expressed in hexadecimal

numbers.

Page 35: Memory technologies - kth.se

ROM 00 00 00…?

William Sandqvist [email protected]

Most often a processor reads its first instruction from address 0, then there

must be a ROM at that address. Suppose a ROM 2M 16 bit address

range 000000 … and forward. ROM Chip 512k8.

How many chips are needed? How is the decoder connected?

How are the memory chips connected?

Which is the address area for the ROM expressed in hexadecimal

numbers.

Memory:

N = 2 M (4512k) word is M = 16 bitar

Memory chip:

p = 512 k word is q = 8 bitar

Number of rows r N/p = 4512k/512k = 4

Number of columns k M/q = 16/8 = 2

Number of chips K = r k = 4 2 = 8

Page 36: Memory technologies - kth.se

ROM Control connections?

William Sandqvist [email protected]

Micro-

processor

?RD

Page 37: Memory technologies - kth.se

ROM Control connections?

William Sandqvist [email protected]

OERD

Page 38: Memory technologies - kth.se

Decoder ROM connection?

William Sandqvist [email protected]

Micro-

processor

Page 39: Memory technologies - kth.se

Decoder connection?

William Sandqvist [email protected]

Micro-

processor

Page 40: Memory technologies - kth.se

Decoder ROM adresses?

William Sandqvist [email protected]

Four rows with

memory chips

Decoded inside memory chips

Page 41: Memory technologies - kth.se

Decoder ROM adresses?

William Sandqvist [email protected]

00ab|cmmm|mmmm|mmmm|mmmm|mmmm

0000|0000|0|0|0|0 - 0000|0111|F|F|F|F 000000-07FFFF

0000|1000|0|0|0|0 - 0000|1111|F|F|F|F 080000-0FFFFF

0001|0000|0|0|0|0 - 0001|0111|F|F|F|F 100000-17FFFF

0001|1000|0|0|0|0 - 0001|1111|F|F|F|F 180000-1FFFFF

Page 42: Memory technologies - kth.se

Decoder ROM adresses?

William Sandqvist [email protected]

00ab|cmmm|mmmm|mmmm|mmmm|mmmm

0000|0000|0|0|0|0 - 0000|0111|F|F|F|F 000000-07FFFF

0000|1000|0|0|0|0 - 0000|1111|F|F|F|F 080000-0FFFFF

0001|0000|0|0|0|0 - 0001|0111|F|F|F|F 100000-17FFFF

0001|1000|0|0|0|0 - 0001|1111|F|F|F|F 180000-1FFFFF

Totaly ROM 000000 – 1FFFFF

ROM

Adress range for ROM

Page 43: Memory technologies - kth.se

Decoder SRAM+I/O adresses?

William Sandqvist [email protected]

00ab|cmmm|mmmm|mmmm|mmmm|mmmm

Page 44: Memory technologies - kth.se

Decoder SRAM+I/O adresses?

William Sandqvist [email protected]

I/O

I/O Input and

Output units

00ab|cmmm|mmmm|mmmm|mmmm|mmmm

0010|0000|0|0|0|0 - 0010|0111|F|F|F|F 200000-27FFFF

Page 45: Memory technologies - kth.se

Decoder SRAM+I/O adresses?

William Sandqvist [email protected]

SRAMas before

00ab|cmmm|mmmm|mmmm|mmmm|mmmm

0010|1000|0|0|0|0 - 0010|1111|F|F|F|F 280000-2FFFFF

0011|0000|0|0|0|0 - 0011|0111|F|F|F|F 300000-37FFFF

0011|1000|0|0|0|0 - 0011|1111|F|F|F|F 380000-3FFFFF

Page 46: Memory technologies - kth.se

Decoder SRAM+I/O adresser?

William Sandqvist [email protected]

00ab|cmmm|mmmm|mmmm|mmmm|mmmm

0010|0000|0|0|0|0 - 0010|0111|F|F|F|F 200000-27FFFF

0010|1000|0|0|0|0 - 0010|1111|F|F|F|F 280000-2FFFFF

0011|0000|0|0|0|0 - 0011|0111|F|F|F|F 300000-37FFFF

0011|1000|0|0|0|0 - 0011|1111|F|F|F|F 380000-3FFFFF

Possible SRAM+I/O adresser 200000 – 3FFFFF

SRAM

I/O

Page 47: Memory technologies - kth.se

William Sandqvist [email protected]

Memory map

ROM

RAM

I/O

The memory map for this

example.

Page 48: Memory technologies - kth.se

Ex 12.3 Input/Output

Peripheral circuit connected as a small RAM. Only the 8 least significant bits

of data are used. CS Chip Select enables the chip.

Connect a 8 register memory-mapped peripheral device (I/O) to

a CPU. The CPU has 16-bit data bus (only 8 bits are used by the

chip), and a 24 bit address bus. Use a 3:8-decoder and if needed

gates. The peripheral device must be connected so that it can register addresses 0x200010 … 0x200017.

William Sandqvist [email protected]

Peripherals, I/O, are often connected to

a CPU as if they were memory chips

(though with only a few "memory cells").

Eg. a real time clock chip - keeps track

of time and date. It is controlled/read

from the 8 built-in registers.

Page 49: Memory technologies - kth.se

Ex 12.3 Input/Output

William Sandqvist [email protected]

I/O adresses, at the decoder output ”4”, 200000 – 27FFFF

according to the earlier task.

Micro-

processor

Page 50: Memory technologies - kth.se

Decoding

0x200010 = 0010|0.000|0000|0000|0001|0.000

0x200011 = 0010|0.000|0000|0000|0001|0.001

0x200012 = 0010|0.000|0000|0000|0001|0.010

0x200013 = 0010|0.000|0000|0000|0001|0.011

0x200014 = 0010|0.000|0000|0000|0001|0.100

0x200015 = 0010|0.000|0000|0000|0001|0.101

0x200016 = 0010|0.000|0000|0000|0001|0.110

0x200017 = 0010|0.000|0000|0000|0001|0.111

3456789101112131415161718 AAAAAAAAAAAAAAAA

RS2RS1RS0

William Sandqvist [email protected]

Decoder output ”4”

Remains to decode:

Page 51: Memory technologies - kth.se

Connections

William Sandqvist [email protected]

Micro-

processor

Page 52: Memory technologies - kth.se

Connections

William Sandqvist [email protected]

Micro-

processor

?A bit too many

inputs?

Page 53: Memory technologies - kth.se

incomplete decoding?

William Sandqvist [email protected]

Addressing becomes

ambiguous!

Page 54: Memory technologies - kth.se

incomplete decoding?

William Sandqvist [email protected]

Addressing becomes

ambiguous!

For full decoding, we used a &-gate with 17 inputs! Sometimes you make a partial

decoding. Then you omits address signals and thus can use a gate with fewer

inputs.

I/O device addressing is ambiguous, it can be addressed with many different

addresses, but the one who writes the program code determines which addresses

to use. The main thing is to ensure that the I/O device addresses do not collide

with any other device addresses.

Page 55: Memory technologies - kth.se

volatile ?

William Sandqvist [email protected]

Page 56: Memory technologies - kth.se

volatile ?

William Sandqvist [email protected]

Since the I/O devices are not true memories - it can seem as if the content

can be changed "by itself" - so when you write computer programs you need

to "help" the compiler to understand this. It could be done by declaring these adresses as volatile.

This, you will meet in Computer Engineering course.

Page 57: Memory technologies - kth.se

William Sandqvist [email protected]

How to construct a bigger Digital

system?

Page 58: Memory technologies - kth.se

William Sandqvist [email protected]

BV 10.5

One aproach for implementing integer division is to perform repeated

subtraction as indicated in pseudo-code.

Q = 0;

R = A

While ((R – B) 0) do

R = R – B;

Q = Q + 1;

End while;

a) Give an ASM chart that represents the pseudo-code.

b) Show the datapath circuit corresponding to part (a).

c) Give the ASM chart for the control circuit corresponding to part (b).

Page 59: Memory technologies - kth.se

Algorithmic State Machine

ASM method consists of the following steps:

1. Creating an algorithm in pseudo code, which describes the

desired circuit function.

2. Transform the pseudocode to an ASM diagram.

3. Design a data flow diagram from the ASM diagram.

4. Create a detailed ASM diagram from the data flow diagram.

5. Design the control logic based on the detailed ASM chart.

William Sandqvist [email protected]

Page 60: Memory technologies - kth.se

Figure 8.86. Elements used in ASM charts.

Output signals

or actions

(Moore type)

State nameCondition expression

0 (False) 1 (True)

Conditional outputs

or actions (Mealy type) (a) State box

(b) Decision box

(c) Conditional output box

Page 61: Memory technologies - kth.se

William Sandqvist [email protected]

BV 10.5 ASM chartQ = 0;

R = A

While ((R – B) 0) do

R = R – B;

Q = Q + 1;

End while;

Page 62: Memory technologies - kth.se

William Sandqvist [email protected]

BV 10.5 ASM chartQ = 0;

R = A

While ((R – B) 0) do

R = R – B;

Q = Q + 1;

End while;

Wait for start (1)!

RESET

Q0

Start?

Load RA

Load B

0

S1

1

Page 63: Memory technologies - kth.se

William Sandqvist [email protected]

BV 10.5 ASM chartQ = 0;

R = A

While ((R – B) 0) do

R = R – B;

Q = Q + 1;

End while;

RESET

Q0

Start?

Load RA

Load B

0

S1

1

?0BR

S2

1RR-B

QQ+1

0

Subtract B!

Increment Q!

Page 64: Memory technologies - kth.se

William Sandqvist [email protected]

BV 10.5 ASM chartQ = 0;

R = A

While ((R – B) 0) do

R = R – B;

Q = Q + 1;

End while;

RESET

Q0

Start?

Load RA

Load B

0

S1

1

?0BR

S2

1RR-B

QQ+1

0Done!

Page 65: Memory technologies - kth.se

William Sandqvist [email protected]

BV 10.5 ASM chartQ = 0;

R = A

While ((R – B) 0) do

R = R – B;

Q = Q + 1;

End while;

RESET

Q0

Start?

Load RA

Load B

0

S1

1

?0BR

S2

1RR-B

QQ+1

0Done!

?

?

Page 66: Memory technologies - kth.se

William Sandqvist [email protected]

BV 10.5 ASM chartQ = 0;

R = A

While ((R – B) 0) do

R = R – B;

Q = Q + 1;

End while;

RESET

Q0

Start?

Load RA

Load B

0

S1

1

?0BR

S2

1RR-B

QQ+1

0

Done

Start?

S3

0

1

Wait for Start to be

released (0), to restart.

Page 67: Memory technologies - kth.se

William Sandqvist [email protected]

How to test condition?Q = 0;

R = A

While ((R – B) 0) do

R = R – B;

Q = Q + 1;

End while;

RESET

Q0

Start?

Load RA

Load B

0

S1

1

?0BR

S2

1RR-B

QQ+1

0

Start?

S3

0

1

How do we know when R-B<0 ?

The test that R-B 0 is

done simultaneously with

the operation R-B by

inspecting flags.

Done

Page 68: Memory technologies - kth.se

William Sandqvist [email protected]

Do you remember?

)( 0123

334

ssssZ

sNccV

YX

VNYX

VNZVNZYX

VNZYX

VNYX

ZYX

)(

1This is how a

computer can do the

most common

comparisons …

Adder

connected as

comparator

NV

Page 69: Memory technologies - kth.se

William Sandqvist [email protected]

BV 10.5 datapath circuit

Q = 0;

R = A

While ((R – B) 0) do

R = R – B;

Q = Q + 1;

End while;

Hardware

Done

ASM chart lays out the foundation for the hardware.

Page 70: Memory technologies - kth.se

William Sandqvist [email protected]

BV 10.5 Hardware

Hardware block

done

Page 71: Memory technologies - kth.se

William Sandqvist [email protected]

BV 10.5 ASM control

RESET

LoadQ LoadB

RBdiff_sel=0

LoadR_A

Start?0

S1

1S2

1LoadR_A

0

Done

Start?

S3

0

1

RBdiff_sel=1

R_GE_B

ASM chart is also used as the

Control circuit State diagram.

Control

Page 72: Memory technologies - kth.se

William Sandqvist [email protected]

BV 10.5 complete system

Complete system

Control

”SUB Divider Control”

can be constructed as a Moore

machine with three states from

the state diagram (ASM).

Page 73: Memory technologies - kth.se

William Sandqvist [email protected]

Page 74: Memory technologies - kth.se

Sin + cos values?

016:

2/

2/

yxstart

xyy

yxx

William Sandqvist [email protected]

Another bigger Digital system …

Page 75: Memory technologies - kth.se

Osquar and Osqulda are implementing a digital design algorithm, to their

thesis work. The algorithm calculates sine and cosine values.

x = x + y/2; y = y - x/2; (start values x = 0, y = 16).

Help them with how +y/2 and –x/2 can be implemented in the figure (see

four places with question marks). Constants with values 1 and 0 are

available at need.

Page 76: Memory technologies - kth.se

DQ

DQ

DQ

DQ

DQ

DQ

DQ

DQ

DQ

DQ

2/y

CP

2/x

inC

inC

x y

016:

2/

2/

yxstart

xyy

yxx

01

ADD

ADD

sinx

cosy

?

?

?

?

Page 77: Memory technologies - kth.se

DQ

DQ

DQ

DQ

DQ

DQ

DQ

DQ

DQ

DQ

2/y

CP

2/x

inC

inC

x y

01

ADD

ADD 1

0

0

0

sinx

cosy

016:

2/

2/

yxstart

xyy

yxx

Page 78: Memory technologies - kth.se

William Sandqvist [email protected]

Algorithm for sin + cos

x = 0; y = 16;

x += y/2;

y -= x/2;

-20

-15

-10

-5

0

5

10

15

20

1 4 7

10

13

16

19

22

25

28

31

34

37

40

43

46

49

52

Serie1

Serie2

Page 79: Memory technologies - kth.se

Rehearsal before the exam

Page 80: Memory technologies - kth.se

Ex 6.10 Combinatorial circuit 5 variables

William Sandqvist [email protected]

)27,26,25,24,18,16,15,14,13,12,11,9(),,,,( 01234 mxxxxxf

Page 81: Memory technologies - kth.se

6.10 Combinatorial circuit 5 variables

William Sandqvist [email protected]

)27,26,25,24,18,16,15,14,13,12,11,9(),,,,( 01234 mxxxxxf

??),,,,( 01234 ffxxxxxf

?),,,,( 01234 fxxxxxf

Page 82: Memory technologies - kth.se

6.10 Combinatorial circuit 5 variables

William Sandqvist [email protected]

)27,26,25,24,18,16,15,14,13,12,11,9(),,,,( 01234 mxxxxxf

??),,,,( 01234 ffxxxxxf

?),,,,( 01234 fxxxxxf

Page 83: Memory technologies - kth.se

6.10 Combinatorial circuit 5 variables

William Sandqvist [email protected]

)27,26,25,24,18,16,15,14,13,12,11,9(),,,,( 01234 mxxxxxf

??),,,,( 01234 ffxxxxxf

?),,,,( 01234 fxxxxxf

024023234 xxxxxxxxxf

Page 84: Memory technologies - kth.se

6.10 Combinatorial circuit 5 variables

William Sandqvist [email protected]

)27,26,25,24,18,16,15,14,13,12,11,9(),,,,( 01234 mxxxxxf

??),,,,( 01234 ffxxxxxf

?),,,,( 01234 fxxxxxf

Page 85: Memory technologies - kth.se

6.10 Combinatorial circuit 5 variables

William Sandqvist [email protected]

)27,26,25,24,18,16,15,14,13,12,11,9(),,,,( 01234 mxxxxxf

??),,,,( 01234 ffxxxxxf

?),,,,( 01234 fxxxxxf

Page 86: Memory technologies - kth.se

6.10 Combinatorial circuit 5 variables

William Sandqvist [email protected]

)27,26,25,24,18,16,15,14,13,12,11,9(),,,,( 01234 mxxxxxf

??),,,,( 01234 ffxxxxxf

?),,,,( 01234 fxxxxxf

024240334 xxxxxxxxxf

Page 87: Memory technologies - kth.se

Ex 8.1 Binary squarer

William Sandqvist [email protected]

Bring out the Boolean equations for a network at minimal SP-form which

transforms a three-bit binary coded number X (x2, x1, x0) to a binary

coded six bit number U (u5, u4, u3, u2, u1, u0) which is equal to the

square of the number U = X 2.

Page 88: Memory technologies - kth.se

8.1 Truth table

William Sandqvist [email protected]

Page 89: Memory technologies - kth.se

8.1 Karnaugh map

William Sandqvist [email protected]

Of truth table it shows that u1 always is equal to 0. u1

uotput could therefore be connected to 0V (ground) so

it will get the constant 0. One can further see that u0

always is the same as x0. u0 output can therfore be

connected directly to x0 input.

Page 90: Memory technologies - kth.se

Mechanical "squarer"

Page 91: Memory technologies - kth.se

Brock institute for advaced studies function generator

Page 92: Memory technologies - kth.se

Ex. 10.9 Stepper motor controller

William Sandqvist [email protected]

A stepper motor is a digital component that is

driven by pulses.

Stepper motors are usually connected to a

counter counting Gray code.

Figure calculator also has a mode-input,

m1m0.

m1m0 = 00 Reset (fixed position)

m1m0 = 01 count up (cw)

m1m0 = 10 count down (ccw)

m1m0 = 11 Preset (another fixed position)

Page 93: Memory technologies - kth.se

10.9 State diagram

William Sandqvist [email protected]

Sometimes you write boolean

conditions instead of just the

numbers at the arrows. In the

figure, both the condition and

numbers are used.

m1m0 = 00 Reset (fixed position)

m1m0 = 01 count up (cw)

m1m0 = 10 count down (ccw)

m1m0 = 11 Preset (another fixed position)

Page 94: Memory technologies - kth.se

10.9 State table and next state decoder

William Sandqvist [email protected]

Page 95: Memory technologies - kth.se

William Sandqvist [email protected]