Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
• Memory Hierarchy
• Main Memory
• Auxiliary Memory
• Associative Memory
• Cache Memory
• Virtual Memory
MEMORY HIERARCHY
CPU Cache
memory
Register
Cache
Main Memory
Magnetic Disk
Magnetic Tape
Main Memory
MAIN MEMORY
RAM and ROM Chips
Typical RAM chip
9-bit address AD 9
Main Memory
Decoder
3 2 1 0
CS1
CS2
RD 128 x 8
RAM 1
WR
AD7
Data
CS1
CS2
RD 128 x 8
RAM 2
WR
AD7
Data
CS1
CS2
RD 128 x 8
RAM 3
WR
AD7
CS1 Data
CS2
RD 128 x 8
RAM 4
WR
AD7
Data
CS1
CS2
1- 7 512 x 8
8 ROM
AD9
9
Data
Random Access Memory
Read Cycle
'0'
Read
'1'
●Easy reading
●Easy Writing
●High density
Non-Volatile
Read-Write Memory Read-Write Read-Only Memory
Memory
DRAM LIFO
Shift Register
CAM
●DRAM
–Low Cost
–High Density
–Medium Speed
●SRAM
–High Speed
–Ease of use
Basic Cells
SRAM
● DRAM
VDD
WL
WL
WL
DL
DL
DL
Read Only Memory (ROM)
Can only be read from.
Memory is written (or “programmed”) once
Reading from ROM is non-destructive.
Access time to read from any memory
location is the same.
Ascompared to serial access memory.
Non-Volatile
●Non-volatile Data
●Method of Data Writing
●Mask ROM
Floating Gate
DL DL
MOS NAND ROM
V DD
Pull-up devices
WL [0]
WL [1]
WL [2]
WL [3]
–An IC where the logic function can be programmed into it after manufacture
–In some cases, it can be reprogrammed if a bug in the design is discovered
–Originally not thought of as a programmable device at all – simply a memory for holding machine
specific information, such as the control store operation
CPLD (complex programmable logic device)
●
R. W. Knepper, SC312
page O/V-16
Programmable Logic Devices: CPLD vs FPGA
Complex Programmable Logic Device (CPLD): see (a) below
●
–Most of today’s CPLD’s are simply a collection of PLD’s on a chip with interconnected by programmable
interconnect (wiring)
Field Programmable Gate Array (FPGA): see (b) below
●
–FPGA’s are comprised of basic logic blocks interconnected by X and Y wiring channels
R. W. Knepper, SC312
page O/V-17
PROGRAMMABLE
LOGIC DEVICES
(PLD)
PLD
•Problems by Using Basic Gates
•Many components on PCB:
–As no. of components rise, nodes interconnection
complexity grow exponentially
–Growth in interconnection will cause increase in
interference, PCB size, PCB design cost, and
manufacturing time
PLD
•The purpose of a PLD device is to permit elaborate digital logic designs to be
implemented by the user in a single device.
•Can be erased electrically and reprogrammed with a new design, making them
very well suited for academic and prototyping
39
PAL - Programmable Array Logic
PLA have higher programmability than PAL, however they have lower
speed than PAL
42
A simple four-input, three-output PAL device.
An example of using a PAL device to realize two
Boolean functions. (a) Karnaugh maps. (b) Realization.
Flip-flops store the value produced by the OR gate output at a particular
point and can hold it indefinitely.
2-to-1 multiplexer selects an output from the OR gate output or the flip-flop
output. Tri-state buffers are placed between multiplexer and the PAL output.
Multiplexer’s output is fed back to the AND plane in PAL, which allows the
multiplexer signal to be used internally in the PAL. This facilitates the
implementation of circuits that have multiple stages (levels or logic gates).
45
FPGA AND CPLD
1.FPGA - Field-Programmable Gate Array.
2.CPLD - Complex Programmable Logic Device
3.FPGA and CPLD is an advance PLD.
4.Support thousands of gate where as PLD only
support hundreds of gates.
What is an FPGA?
•Before the advent of programmable logic, custom logic circuits were built at the board
level using standard components, or at the gate level in expensive application-specific
(custom) integrated circuits.
•FPGA is an integrated circuit that contains many (64 to over 10,000) identical logic
cells that can be viewed as standard components. Each logic cell can independently
take on any one of a limited set of personalities.
•Array of logic cells and interconnect form a fabric of basic building blocks for logic
circuits. Complex designs are created by combining these basic blocks to create the
desired circuit
FPGA architecture
What does a logic cell do?
•The logic cell architecture varies between different device families.
•Each logic cell combines a few binary inputs (typically between 3 and 10) to one or
two outputs according to a Boolean logic function specified in the user program .
•In most families, the user also has the option of registering the combinatorial output of
the cell, so that clocked logic can be easily implemented.
•LUT devices tend to be a bit more flexible and provide more inputs per cell than
multiplexer cells at the expense of propagation delay.
what does 'Field Programmable' mean?
•Field Programmable means that the FPGA's function is defined by a user's program
rather than by the manufacturer of the device.
•This user programmability gives the user access to complex integrated designs
without the high engineering costs associated with application specific integrated
circuits.
How are FPGA programs created?
•Individually defining the many switch connections and cell logic functions would be a
daunting task.
•This task is handled by special software. The software translates a user's schematic
diagrams or textual hardware description language code then places and routes the
translated design.
•Most of the software packages have hooks to allow the user to influence
implementation, placement and routing to obtain better performance and utilization of
the device.
•Libraries of more complex function macros (eg. adders) further simplify the design
process by providing common circuits that are already optimized for speed or area.
FPGA
FPGA applications:-
i.DSP
ii.Software-defined radio
iii.Aerospace
iv.Defense system
v.ASIC Prototyping
vi.Medical Imaging
vii.Computer vision
viii.Speech Recognition
ix.Cryptography
x.Bioinformatic
xi.And others.
CPLD
1.Complexity of CPLD is between FPGA and PLD.
2.CPLD featured in common PLD:-
i.Non-volatile configuration memory – does not need an external configuration PROM.
ii.Routing constraints. Not for large and deeply layered logic.
5.CPLD architecture:-
55