Docsity

Memory and Programmable Logic - Lecture Notes | CPEN 214, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
1
Memory and Programmable Logic
Memory Device:
Device to which binary information is transferred for storage,
and from which information is available for processing as needed.
Memory Unit:
is a collection of cells capable of storing a large quantity of binary
information.
In digital systems, there are two types of memories:
1. RAM
2. ROM
Memory and Programmable Logic
1. Random-Access Memory(RAM)
RAM is the place in a computer where the operating system, application
programs, and data in current use are kept so that they can be quickly reached
by the computer's processor.
2. Read-Only Memory (ROM):
ROM is a type of memory that is as fast as RAM, but has two important
differences: It can not be changed, and it retains its contents even when the
computer is shut off. It is generally used to start your computer up and load the
operating system.
Using a ROM as a PLD: A programmable logic device or PLD is an electronic
component used to build digital circuits. Before the PLD can be used in a circuit
it must be programmed.
Examples of PLDs: programmable logic array (PLA), programmable array logic
(PAL), and field-programmable logic gate array (FPGA). (PAL: Program. AND,
fixed OR, PLA: Program. AND/OR)
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Memory and Programmable Logic - Lecture Notes | CPEN 214 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

Memory and Programmable Logic

Memory Device:

Device to which binary information is transferred for storage,

and from which information is available for processing as needed.

Memory Unit:

is a collection of cells capable of storing a large quantity of binary

information.

In digital systems, there are two types of memories:

1. RAM

2. ROM

Memory and Programmable Logic

1. Random-Access Memory (RAM) RAM is the place in a computer where the operating system , application programs, and data in current use are kept so that they can be quickly reached by the computer's processor. 2. Read-Only Memory (ROM): ROM is a type of memory that is as fast as RAM, but has two important differences: It can not be changed, and it retains its contents even when the computer is shut off. It is generally used to start your computer up and load the operating system.

Using a ROM as a PLD: A programmable logic device or PLD is an electronic component used to build digital circuits. Before the PLD can be used in a circuit it must be programmed. Examples of PLDs : programmable logic array (PLA), programmable array logic (PAL), and field-programmable logic gate array (FPGA). (PAL: Program. AND, fixed OR, PLA: Program. AND/OR)

Memory unit: Stores binary information in groups of bits called words.

Memory word: group of 1’s and 0’s and may represent a number, character(s), instruction, or other binary-coded information.

Most computer memories use words that are multiples of 8 bits ( byte ). 32-bit word ‡ 4 bytes

Random-Access Memory

Random-Access Memory

Each word in memory is assigned an address 0 up to 2 k^ – 1 ( k = # of

address lines).

memory content

How many bytes is this memory module? 2KB

Memory Hierarchy

physical size of memory decreases

memory access time increases

Volatile vs. Non-Volatile Memory

ß RAM (static and dynamic) is said to be volatile, since

information is lost when power is turned off.

ß Non-volatile memory retains its information even when

power is turned off.

1. Magnetic disks: stored data is represented by the direction of

magnetization.

2. CD: compact disc is a piece of polycarbonate (a type of

plastic) on which a spiral track has been impressed. This

spiral track is a series of indentations ("pits") separated by

flat areas ("land").

3. ROM: The internal storage elements are set to their values

once and after that are only read.

Erasable Programmable Read-Only Memory (EPROM) is a

special type of memory that retains its contents until it is exposed to

ultraviolet light.

To write to EPROM, you need a special device called a PROM

Programmer or PROM burner (programmer). An EPROM differs from a

PROM in that a PROM can be written to only once and cannot be

erased.

EPROMs are widely used in personal computers since they enable the

manufacturer to change the contents of the PROM before the

computer is actually shipped. This means that bugs can be removed

and new versions installed shortly before delivery.

EPROMS and PROMS

Electrically Erasable Programmable Read-Only Memory

(EEPROM), is like EPROM except that the previously

programmed connections can be erased with an electrical

signal.

Flash memory is a type of EEPROM. Information stored in

flash memory is usually written in blocks rather than a byte or

word at a time.

Virtual Memory?

With virtual memory, the computer can look for areas of RAM

that have not been used recently and copy them onto the hard

disk. This frees up space in RAM to load the new application.

Because it does this automatically, you don't even know it is

happening, and it makes your computer feel like is has

unlimited RAM space even though it has only 1 GB installed.

EEPROMS and FLASH

Commercial RAM ‡ thousands of words, with each word 1 - 64 bits. A memory with 2 k^ words of n bits/word requires k address lines that go into a k x 2 k^ decoder.

Commercial RAM

The idea of two-dimensional decoding is to arrange the memory cells in an array that is as close as possible to square. Use two k /2-input decoders instead of one k -input decoder. One decoder performs the row selection and the other the column selection in a two dimensional matrix configuration. How many words can be selected?

Two Dimensional Decoding

Read-Only Memory (ROM)

Read-only memory is a memory device in which permanent binary

information is stored.

  • The number of words in a ROM is determined from the k address

input lines needed to specify the 2 k^ words.

  • Why doesn’t the ROM have any data inputs?

Read-Only Memory (ROM)

A 32 x 8 ROM consists of 32 words of 8 bits each. The five input lines are decoded by into 32 distinct outputs (memory addresses) using a 2^5 x 8 decoder. Each OR gate has 32 input connections ‡ 32 x 8 ROM has internal connections 32 x 8. In general, a 2 k^ x n ROM will have k x 2 k^ decoder and n OR gates with 2 k^ x n internal connections.

Constructing 256K X 8 RAM (similar to 7-8)

1. How many 64K x 8 RAM chips are needed to

provide a memory capacity of 256KB?

2. How many lines of the address must be used to

access 256K bytes? How many of these lines are

connected to the address inputs of all chips?

3. How many lines must be decoded for the chip

select inputs of all chips?

Capacity: 64K words of 8 bits each

How many chips are needed to construct 256K x 8?

What is the size of the decoder?

64K X 8 RAM chip

256K X 8 RAM

  • Three-state outputs are connected together to form 8 data output lines.
  • Just one chip select (CS) will be active at any time.
  • RAM requires 18-bit address: 16 LSB address are applied to the inputs of each RAM. 2 MSB are applied to 2-to-4 decoder.
  • Address bits 16 and 17 are used for chip selection.

32 X 8 ROM chip

PLDs (continued)

product terms for Boolean functions

sum terms for Boolean functions

Programmable Logic ARRAY (PLA)

crosspoint ‘connected’

crosspoint ‘disconnected’

blown fuse.

PLA Programming Table

AB ' 1 AC 2 BC 3 A ' BC ' 4

Inputs Outputs A B C F 1 F 2

product term

PLA Programming example

Implement the following function with a PLA:

( 0 , 5 , 6 , 7 )

( 0 , 1 , 2 , 4 ) 2

1 = Σ

=Σ F

F

Sequential Programmable Logic

A microcell is a section of a SPLD that contains a sum-of- product combinational logic and a flip-flop. A commercial SPLD contains 8 - 10 microcells in an IC package.

Complex Programmable Logic Device (CPLD): The design of a complete digital system using PLD requires the use of several PLD’s in a Complex Programmable Logic Device (CPLD) integrated on a single chip.

switch matrix received inputs from I/O and directs them to the individual microcells.

Complex Programmable Logic Device (CPLD)

I/O block provides the interconnections to the IC pins

Field-Programmable Gate Array (FPGA): is a VLSI circuit whose function is defined by a user's program rather than by the manufacturer of the device (CPEN431)

  • Depending on the particular device, the program is either 'burned' in permanently or semi-permanently as part of a board assembly process, or is loaded from an external memory each time the device is powered up.
  • The Field-Programmable Gate Arrays provide the benefits of custom CMOS VLSI, while avoiding the initial cost and time delay.

Field-Programmable Gate Array (FPGA)