Beruflich Dokumente
Kultur Dokumente
Todays Agenda
Basic Storage Elements
R-S Latch D Latch Register Memory
R=S=1
S = 0, R 1 R=1
Set value to 1
R = 0, S = 1(Set) (Se )
Set value to 0 (Reset)
R=S=0
Both outputs equal one Final state determined by electrical properties of gates t Dont do it!
Gated D Latch
It consists of the R S latch and two additional R-S gates that allows the latch to be set to value of D but only when the switch WE is on. WE stands for write enable enable. If WE is off, then value saved in the latch remains unchanged unchanged..
Gated D-Latch
Two inputs: D (data) and WE (write enable)
when WE = 1, latch is set to value of D
S = NOT(D), R = D
Register
Usually we have to deal with values consisting of more the one bit. Important to be able to store these larger number of bits as self-contained units. Register is a structure that stores a number of bits, taken together as a unit A four-bit register is made up of four gated D latches. l t h
Thursday, February 11, 2010 Biju K Raveendran@BITS Pilani. 7
Register
15
A[2:0] = 101
9
Memory
Is made up of a large number of locations. Each location is uniquely identifiable. Each location has ability to store a value. The unique identifier associated with each memory l location i called as it address. ti is ll d its dd
10
Address
Address Space
Total number of uniquely identifiable locations (usually a power of 2) With N bits; we can uniquely identify 2N locations
Addressability
Number of bits stored in each memory address location (e.g., byte-addressable or word-addressable)
Addressability = ???
(1 Byte)
Thursday, February 11, 2010 Biju K Raveendran@BITS Pilani. 11
Memory
We can build a memory
a logical k m array of stored bits.
k = 2n locations
Addressability:
number of bits per location m bits
Thursday, February 11, 2010 Biju K Raveendran@BITS Pilani. 12