[Seq] Update HWMemSimImpl's replSeqMem to support higher latency. #9383
+14
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Historically, we have only replaced FIRRTL memories with readLatency and writeLatency of 1 with external modules for macro replacement. The latency is an intrinsic behavior of the memory, but doesn't affect its interface when we are doing external module replacement.
Since some users are trying to enable higher latency memory models, and replace them with external modules that either model this in simulation or with a macro for synthesis. This lifts the restriction, allowing such higher latency memories to also be replaced by external modules similar to memories with latency of 1.