Docsity

Design Memory for computer Engineering, Study notes of Microcomputers

Toggle sidebar
bg1
Design of Memory
Name: __________________________________ Section: _____________
Professor: _______________________________ Date: ________________
Duration: 3 hours
Objectives :
To design memory units and understand how it operates during read and write operation.
1. understanding behavior of memory from working module and the module designed by the student
as part of the experiment
2. designing an memory for given parameter
Background:
A memory unit is a collection of storage cells together with associated circuits needed to transform
insformation in and out of the device. Memory cells which can be accessed for information transfer to or
from any desired random location is called random access memory(RAM). The block diagram of a
memory unit-
Internal Construction: The internal construction of a random-access memory of m words with n bits per
word consists of m*n binary storage cells and associated decoding circuits for selecting individual words.
The binary cell is the basic building block of a memory unit.
RAM Design:
Design of a RAM Cell
The binary cell has three inputs and one output. The select input enables the cell for reading or writing
and the reda/write input determines the cell operation when it is selected. A 1 in the read/write input
provides the read operation by forming a path from the flip-flop to the output terminal. A 0 in the read/
write input provides the write operation by forming a path from the input terminal to the flip-flop. the
logic diagram is-
pf3
pf4
pf5
pf8

Partial preview of the text

Download Design Memory for computer Engineering and more Study notes Microcomputers in PDF only on Docsity!

Design of Memory

Name: __________________________________ Section: _____________

Professor: _______________________________ Date: ________________

Duration: 3 hours

Objectives :

To design memory units and understand how it operates during read and write operation.

  1. understanding behavior of memory from working module and the module designed by the student as part of the experiment
  2. designing an memory for given parameter

Background:

A memory unit is a collection of storage cells together with associated circuits needed to transform insformation in and out of the device. Memory cells which can be accessed for information transfer to or from any desired random location is called random access memory(RAM). The block diagram of a memory unit-

Internal Construction: The internal construction of a random-access memory of m words with n bits per word consists of m*n binary storage cells and associated decoding circuits for selecting individual words. The binary cell is the basic building block of a memory unit.

RAM Design:

Design of a RAM Cell

The binary cell has three inputs and one output. The select input enables the cell for reading or writing and the reda/write input determines the cell operation when it is selected. A 1 in the read/write input provides the read operation by forming a path from the flip-flop to the output terminal. A 0 in the read/ write input provides the write operation by forming a path from the input terminal to the flip-flop. the logic diagram is-

Design of a 4X4 RAM

The logical construction of a small RAM 4X3 is shown below. It consists of 4 words of 3 bits each and has a total of 12 binary cells. Each block labeled BC represents the binary cell with its 3 inputs and 1 output. The block diagram of a binary cell-

A memory with 4 words needs two address lines. The two address inputs go through a 2*4 decoder to select one of the four words. The decoder is enabled with the memory enable input. When the memory enable is 0, all outputs of the decoder are 0 and none of the memory words are selected. With the memory enable at 1, one of the four words is selected, dictated by the value in the two address lines. Once a word has been selected, the read/write input determines the operation. the logic diagram is-

  • select=
  • R/W'=
  • check output:
  • output(o/p)=
  • it will give the value which was previously written

Color configuration of wire for 5 valued logic supported by the simulator:

  • if value is UNKNOWN, wire color= maroon
  • if value is TRUE, wire color= blue
  • if value is FALSE, wire color= black
  • if value is HI IMPEDENCE, wire color= green
  • if value is INVALID, wire color= orange

The single bit RAM cell can be used to design large memory

  • refer to the theory and circuit diagram for designing 4X3 RAM
  • the behavior can be checked as above mentioned procedure

Test plan:

  1. Do some read operation by properly setting the R/W', memory enable then give input and check the output.
  2. Do some write operation by properly setting the R/W', memory enable then give input and check the output.
  3. Do some read operation without setting the memory enable but properly setting the R/W' then give input and check the output.

Use Display units for checking output. Try to use minimum number of components to build. The pin configuration of the canned components are shown when mouse hovered over a component.

Assignment Statements :

  1. Design a binary RAM cell using an S-R flip-flop, AND gates, NOT gates having select, read/ write, input, output and test it by giving proper input.
  2. Design a 4X3 RAM memory which will have 4 words each of 3 bits using binary RAM cells, decoder with enable, OR gates and test it by giving proper input.

Procedure to perform the experiment:Design of 4X3 RAM memory:

  1. Start the simulator as directed.This simulator supports 5-valued logic.
  2. To design the circuit we need 12 binary RAM cell, 9 OR gate, 7 bit switch(to give input,which will toggle its value with a double click), 3 Bit display(to see the output), wires.
  1. The pin configuration of a component is shown whenever the mouse is hovered on any canned component of the palette or press the 'show pinconfig' button. Pin numbering starts from 1 and from the bottom left corner(indicating with the circle) and increases anticlockwise.
  2. For a binary RAM cell input is in pin-5, output is in pin-4 and select is pin-8, Read/Write is in pin-6, for read operation give 1 input to Read/Write pin. For write operation give 0 input to Read/ Write pin.
  3. For a 'decoder with enable', input A is in pin-6, B is in pin-5, output D0 is in pin-4, D1 is in pin-3, D2 is in pin-2, D3 is in pin-1 and Enable is in pin-
  4. Click on the 'decoder with enable' component(in the Other Components drawer in the pallet) and then click on the position of the editor window where you want to add the component(no drag and drop, simple click will serve the purpose), likewise add 12 binary RAM cell(from the Other Components drawer in the pallet), 9 OR gates(from Logic Gates drawer in the pallete), 7 bit switches(which will toggle its value with a double click), 3 bit displays(from Display and Input drawer of the pallet,if it is not seen scroll down in the drawer)
  5. To connect any two components select the Connection menu of Palette, and then click on the Source terminal and click on the target terminal. According to the circuit diagram connect all the components, connect 2 bit switches to the inputs of the 'decoder with enable'(which will act as address input), 1 bit switch to the enable pin of the 'decoder with enable'(which will act as memory enable input), connect a bit switch to the Read/Write(R/W') line, 3 bit switches to the data inputs line, 3 bit displays to the data output line and OR gates according to the diagram shown in the circuit diagram. after athe connection is over click the selection tool in the pallete.
  6. To see the circuit working, Do some read or write operation by properly setting the R/W', memory enable then give input and check the output. suppose you give, R/W'=1, memory enable=1, address input=01, data input=101, then it will be a read operation and you will not see 101 as output, it will store 101 in the word-1. now again set, R/W'=0, memory enable=1, address input=01, then it will be a write operation and you will see 101 as the content of word-1 on the output display.

Circuit Diagram

Circuit diagram of 4X3 RAM memory:

To build a 4X3 RAM, we need :

  1. OR Gate(2 input)-
  2. RAM Cell-
  3. 2X4 Decoder with Enable-

Pre-experiment

Multiple choice questions:

  • What is the cycle time of a memory? Is greater than access time Is less than access time Same as access time None of these
  • Which of the following is electrically programmable and ultraviolet ray irasable? PROM ROM RAM EPROM
  • Dynamic RAM with respect to static RAM has Lower power consumption and higher bit density Higher power consumption and lower bit density lower power consumption and lower bit density Higher power consumption and Higher bit density
  • Read Only Memory (ROM) is programmables and contains the bootstrap loader True False
  • Which of the following is not a form of memory? Instruction cache Instruction register Instruction opcode None of these
  • Which memory is difficult to interface with processor? ROM Static memory Dynamic memory None of these
  • 1M Byte memory consists of ____ RAM chips with size 256K X 1 bit 10 12 24 32

Subjective questions:

  • How many address bits are needed to select all memory locations in the 2118 16K ร— 1 RAM? `
  • What is the storage element for a static RAM?