Repository navigation
docs: add Pipe+FIFO+Dram architecture composition example - #2
Merged
Merged
Conversation
chenshih1
marked this pull request as ready for review
August 27, 2026 11:37
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit fc504b3. Configure here.
5 tasks done
The public primitives existed but no example or test wired Pipe and FIFO to Dram. Add a copy-engine example, composition tests, and fix stale docs (quickstart Python 3.8, README snippet, PGO bench path). Co-authored-by: chenshih <chenshih1@users.noreply.github.com>
A completed load still occupies a compute slot after _reads_inflight drops, so max_outstanding does not keep compute_pipe.put from failing. Call put outside assert (python -O would skip it and drop stores), reserve a slot at issue time, and hold completions that find the pipe full. Co-authored-by: chenshih <chenshih1@users.noreply.github.com>
Pipe._deliver still counts the current item in in_flight until the consumer returns True, so _fill_issue from _on_issue saw can_put() false on a full pipe (including 1-slot). Schedule a zero-delay refill after occupancy drops so the copy cannot stall with _produced < n_lines. Co-authored-by: chenshih <chenshih1@users.noreply.github.com>
cursor
Bot
force-pushed
the
cursor/compose-pipe-fifo-dram-e0b1
branch
from
August 27, 2026 12:31
1cc51af to
6576ba2
Compare
6 tasks done
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.

Summary
Architecture DES modeling already had
Clock/Component/FIFO/Pipeand a cycle-accurateDram, but nothing showed how they wire together. The existing examples driveDramfrom aComponentand a rawdeque; the README constructedFIFO/Pipeand never connected them.This PR adds the missing composition template only — not a cache/NoC/CPU model.
Changes
examples/pipe_fifo_dram.py: 1 GHz copy engine on two clocks (host+ DRAM tCK). IssuePipebackpressures into a bounded issueFIFO; the FIFO pumpsDram.read; a computePipestalls onDram.writebackpressure. Drained withrun_until_idle()from outside the pipeline (no nestedflush()).tests/test_des.py: the same wiring — Pipe→FIFO→Dram reads, and a store Pipe that retries untilDram.writeaccepts.Dram;docs/quickstart.rstPython floor is 3.10 (was still 3.8);scripts/build_pgo.pytrains onbenchmarks/bench.py(the 0.5.0 rename) and includes the new example.Testing
ruff check pyramulator/ tests/ benchmarks/ examples/passesruff format --check pyramulator/ tests/ benchmarks/ examples/passesmypy pyramulator/passespytestpasses (193 tests, 97% coverage)python examples/pipe_fifo_dram.pyruns (256-line copy, DRAM pending 0)sphinx-build -WsucceedsChangelog
Yes —
[Unreleased]inCHANGELOG.md.