Memory array: Difference between revisions
(Created page with "A '''memory array''' is an element for storing values. It takes in an N-bit address input and spits out an M-bit value output. = Specification = A memory array can store <math>2^N</math> values, each value having M bits. A memory array is usually specified by the number of elements times the width of each value. For example, if N = 10 and M = 12, we have a 1024x12 memory array. = Construction = Memory arrays are usually ''active lows'' since not gates are convenientl...") |
No edit summary |
||
Line 1: | Line 1: | ||
A '''memory array''' is an element for storing values. It takes in an N-bit address input and spits out an M-bit value output. | A '''memory array''' is an element for storing values. It takes in an N-bit address input and spits out an M-bit value output. | ||
Depending on the use case ([[Read only memory|ROM]] or [[Random access memory|RAM]]), modifications are needed for the circuit, detailed on their respective page. | |||
= Specification = | = Specification = |
Revision as of 15:06, 17 May 2024
A memory array is an element for storing values. It takes in an N-bit address input and spits out an M-bit value output.
Depending on the use case (ROM or RAM), modifications are needed for the circuit, detailed on their respective page.
Specification
A memory array can store values, each value having M bits. A memory array is usually specified by the number of elements times the width of each value.
For example, if N = 10 and M = 12, we have a 1024x12 memory array.
Construction
Memory arrays are usually active lows since not gates are conveniently used for merging memory (see section below). Commercially, there may be an active high enabler.
Merging memory
You can make a bigger memory array with smaller memory arrays. Just enable the one you want according to the address.
A tri-state buffer can be used to control the output enabling/disabling.