1 / 18

Digital Logic Structures: Chapter 3

1. Digital Logic Structures: Chapter 3. COMP 2610. Dr. James Money COMP 2610. 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 when WE = 0 , latch holds previous value S = R = 1. Register.

vangie
Télécharger la présentation

Digital Logic Structures: Chapter 3

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 1 Digital Logic Structures: Chapter 3 COMP 2610 Dr. James Money COMP 2610

  2. 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 • when WE = 0, latch holds previous value • S = R = 1

  3. Register • As we have seen before, it is usually convenient to work in quantities of more than one bit at a time • Many times, we use 16 bits such as on the LC-3 computer • We want to store and read these as self contained units

  4. Register • Let us consider an example, for simplicity, of a 4 bit register • The four bit value stored in the register is Q3, Q2, Q1, Q0 • The value D3, D2, D1, and D0 can be written if WE is asserted

  5. Register

  6. Register • A common shorthand notation is to describe a sequence of bits that are numbered as above as Q[3:0] • Each bit is assigned it’s own number • The rightmost bit is bit [0] and the leftmost is bit [n-1] for n bits

  7. Register • Consider the 16 bit pattern 0011101100011110 • Bit [15] is 0, bit [14] is 0, bit [13] is 1, and so on • Bit [0] is 0, bit [1] is 1, and bit [2] is 1

  8. Register • We can also designate a subunit of the pattern by Q[l:r], where l is the leftmost bit and r is the rightmost bit • We call such a unit a field

  9. Register • If A[15:0] is our example before of 0011101100011110 Then, • A[15:12] is 0011 • A[13:7] is 1110110 • A[2:0] is 110 • A[1:1] is 1

  10. Register • Note that the numbering scheme from right to left is arbitrary • We could of course number left to right • In many cases, we use right to left in practice

  11. Concept of Memory • We now have all the tools to describe memory on a computer • Memory is made up of a large number of locations, each uniquely identifiable • Each location can store a value

  12. Concept of Memory • The unique identifier of each memory location is called an address • We refer to the number of bits stored at each address as its addressability • You might have 16MB of memory • This means there is 16 million addresses(in base 2 at least) and each address is 8 bits

  13. Address Space • We refer to the total number of address as the memory’s address space • With n bits for an address, we can have up to 2n locations • 16MB = 16 * (1024)*1024 = 224 bytes

  14. Addressability • The addressability is the number of bits stored at each address • In our example before, the addressability was 8 bits or 1 byte • Most computers are byte addressable for historic reasons

  15. A 22-by-3-bit Memory • In the example, the memory has an address space of 4 locations and addressability of 3 bits • Accessing memory requires decoding the address bits • The address decoder takes A[1:0] and asserts one line

  16. A 22-by-3-bit Memory • We say the word line is being addresses in this example • Each row is a word line • Memory can be read by using the correct value for A[1:0]

More Related