Cmake rework - #35
Open
Rvidye wants to merge 9 commits into
Open
Conversation
LatencyFIFO::clock() both advances the latency counter and reopens the issue slot, so clocking twice per cycle to get two issues also halved the modeled latency. Use one pipeline per issue slot, each clocked once, matching the existing UnitSFU pattern. Throughput stays at 2 issues/cycle; latency and in-flight capacity are restored. Also widens the DRAM return path, which drained only one 32B sector per cycle and would have bottlenecked the request side. Reported by Haocong Luo (SAFARI, ETH Zurich).
Haydelj
reviewed
Aug 6, 2026
| // number of parallel intersection pipelines. | ||
| // each pipeline is a separate unit that is clocked once per cycle, so windening this changes throughput without changing the modeled latency. | ||
| const static uint NUM_ISECT_PIPLINES = 2; | ||
|
|
Collaborator
There was a problem hiding this comment.
Let's make this a config parameter: one for tri pipes, one for node pipes
| //each pipline is a seperate path that is clocked once per cycle, so the width sets throughput without scaling the modeled L2 to controller latency. | ||
|
|
||
| const static uint NUM_REQ_PIPLINES = 2; | ||
|
|
Collaborator
There was a problem hiding this comment.
Same thing; this should be a config parameter.
|
|
||
| UnitDRAMRamulator::UnitDRAMRamulator(Configuration config) : UnitMainMemoryBase(config.size), | ||
| _request_network(config.num_ports, config.num_controllers * 2, 1 << 13), _return_network(config.num_controllers * 2, config.num_ports), _partition_mask(config.partition_stride) | ||
| _request_network(config.num_ports, config.num_controllers * MemoryController::NUM_REQ_PIPLINES, 1 << 13), |
Collaborator
There was a problem hiding this comment.
We should double-check that 2^13 actually matches the channel stride in the DRAM controller
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR aims to refactor the old cmake workflow which was functional but still confusing at times.