Main Memory 64kB Block Size 8 Bytes Direct Mapped Cache - 32 Lines
Main Memory 64kB Block Size 8 Bytes Direct Mapped Cache - 32 Lines
d divided Into what line a byte with add below be stored 0001 0001 0001 1011 1100 0011 0011 0100
Main Memory 64kB Block size 8 bytes Two way set associative 32 lines How is the 16 bit mem add divided Into what set a byte with add below be stored 0001 0001 0001 1011 1100 0011 0011 0100
LRU: replace the line in CM that has not been used for the longest time, i.e., the least recently used (LRU) line.
LRU replacement can be implemented by attaching a number to each CM line to indicate how recent a line has been used. Every time a CPU reference is made all of these numbers are updated in such a way that the smaller a number the more recent it was used,
Assume the initial state of the 4 CM lines is shown below (the underlined line is the least recently used):
If line E not currently in CM is needed, the LRU CM line A labeled by the largest number 3 will be replaced
Structure of FPGA
Each logic modules can be programmed to implement several switching functions Logic modules used in FPGA are used as look-up tables (LUTs) or multiplexers On chip latches ( memory cells) set with bit patterns to define the chip configuration, called SRAM-FPGA Volatile, programming information not preserved after chip powered down.
Memory cells are loaded during programming phase with binary values that represent
SRAM- FPGA
-Programmable switch -Programmable Multiplexer -Look-up table -Flip-flop
LOOK UP TABLE
X1
0/1 0/1 0/1 0/1
X2
LOOK UP TABLE
X1
1 0 0 1
X1 X2 0 0 0 1 0 1 F 1 0 0 1
1 1
X2
1 0 1 0
AB Y C AB
1 0 1 0
LUTs
( CLB)
-These are programmable blocks . -May consists of LUTs,several Multiplexers controlled by memory cells, Flip-flops - Provide outputs.
Programmable interconnects consists of metal segments and programmable switch points used to provide routing of signals -Direct interconnections between horizontal and vertical CLBs -General purpose interconnects consists of vertical and horizontal wiring segments between switch matrices. -Long vertical and horizontal lines span the whole CLB array , providing means for transmitting signals to large number of destinations.
One digit BCD adder - The system has nine inputs and five outputs - Performing a modulo16 addition and then a correction factor - First adder produces v = ( x+y+cin ) mod 16 u = 1 if ( x+y+cin) > = 16 = 0 otherwise
T = 1 if u = 1 or v > = 10 = 0 otherwise
Design Verification : which uses in circuit testing, simulation and timing analysis.
Behavioral Description Netlist Map to FPGA blocks Bit Stream Download to FPGAs
FPGA Programming