50 likes | 175 Vues
This lab simulates a small SRAM chip designed for educational purposes, demonstrating byte-addressable memory operations. Each address corresponds to one byte, allowing for various manipulations, including read and write operations. Key pins include !CE (chip enable), !OE (output enable), !WE (write enable), and byte enables (BE0-BE3). The simulator supports up to 16 locations with 4 address bits, enabling basic memory functions like writing a byte to a specific address and reading data stored at another. Ideal for understanding SRAM functionality and memory management.
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