50 likes | 169 Views
ECE243. MEMORY/SRAM SIMULATOR LAB. Simulator of a small SRAM Chip. Byte addressable! each address represents one bytes IMPORTANT PINS: !CE: chip enable !OE: output enable !WE: write enable !BE3, !BE2, !BE1, !BE0 Byte enables a3-a0: address lines 4 addr bits => 2^4 locations
E N D
ECE243 MEMORY/SRAM SIMULATOR LAB
Simulator of a small SRAM Chip • Byte addressable! • each address represents one bytes • IMPORTANT PINS: • !CE: chip enable • !OE: output enable • !WE: write enable • !BE3, !BE2, !BE1, !BE0 • Byte enables • a3-a0: address lines • 4 addr bits => 2^4 locations = 16 locations = 16*1B = 16B total
write 0xabcd1234 to addr 0x4 • !CE:0; !OE:1; • !BE3:0; !BE2:0; !BE1:0; !BE0:0; • a3-a0: 0x4; data:0xabcd1234 • !WE:0
write byte 0x25 at addr 0x5 • !CE:0; !OE:1; • !BE3:1; !BE2:1; !BE1:1; !BE0:0; • a3-a0: 0x5; data = 0xXXXXXX25 • !WE:0
read halfword at addr 0x6 • !CE:0; !WE:1; • !BE3:1; !BE2:1; !BE1:0; !BE0:0; • a3-a0: 0x6; data:0xXXXXXXXX • !OE: 0