-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[InferRW] Remove dependence of write-mode on enable for memory (#6818)
The read-write port of a memory has an input enable `en` signal and a write-mode `wmode` signal. The `en` signal enables the port for either read/write mode. The `wmode` is enabled to set the memory in the write mode and disabled to read from the memory. This PR removes the dependency of `wmode` on the `en` signal of a read-write port of a memory. The `wmode` signal matters only if the `en` is enabled, hence traverse the expression tree for the `wmode` and replace `en` with a constant `1`.
- Loading branch information
Showing
2 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters