Commit b5648a5
committed
fix: mark memory module as effectful
This commit fixes a corner-case, where a memory module itself is not
effectful, but it is connected to an effectful *ext* memory module. If
we simply mark all memory modules as pure, this would optimize out the
ext memory module, causing inconsistencies in the sifive -repl-seq-mem
flow. The previous firrtl transforms and hierarchies would be generated
correct, yet the final _ext sram would be omitted completely.
Signed-off-by: Tianrui Wei <tianruiwei@eecs.berkeley.edu>1 parent bbe2444 commit b5648a5
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
142 | | - | |
143 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
0 commit comments