You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ram/README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,9 +33,10 @@ Standard cell libraries must be loaded before running this command.
33
33
The module will create a new design, therefore a design should not be loaded before running the command.
34
34
35
35
```tcl
36
-
generate_ram -mask_size bits
36
+
generate_ram [-mask_size bits]
37
37
-word_size bits
38
38
-num_words words
39
+
[-column_mux_ratio ratio]
39
40
[-read_ports count]
40
41
[-storage_cell name]
41
42
[-tristate_cell name]
@@ -55,9 +56,10 @@ generate_ram -mask_size bits
55
56
56
57
| Switch Name | Description |
57
58
| ----- | ----- |
58
-
|`-mask_size`| Determines the number of bits which are grouped together for masking during writes. For example, a mask size of `8` will enable each 8 bits of the word to be masked when writing (commonly known as byte masking). A mask size of `1` will enable each bit to be individually masked. The write enable signal for each port will be `(word_size / mask_size)` bits wide. The word size must be a multiple of the mask size. |
59
+
|`-mask_size`| Determines the number of bits which are grouped together for masking during writes. For example, a mask size of `8` will enable each 8 bits of the word to be masked when writing (commonly known as byte masking). A mask size of `1` will enable each bit to be individually masked. The write enable signal for each port will be `(word_size / mask_size)` bits wide. The word size must be a multiple of the mask size. Default: equal to `-word_size`. |
59
60
|`-word_size`| Size of each word in bits. |
60
61
|`-num_words`| Number of words in the array. |
62
+
|`-column_mux_ratio`| Number of words sharing a physical column. Must be `1`, `2`, or `4`. The number of words must be divisible by the column mux ratio. Default: `1` (no column muxing). |
61
63
|`-read_ports`| Number of read ports for the array. Default: 1. |
62
64
|`-storage_cell`| Name of the master to use for the storage device (i.e. a flip-flop). Must be positive-edge triggered. Default: auto-select from the loaded cell library. |
63
65
|`-tristate_cell`| Name of the master to use for the tristate device (i.e. a tristate inverter). It is currently assumed that the device is inverting. Default: auto-select from the loaded cell library. |
0 commit comments