|
| 1 | +tinyRocket on asap7 |
| 2 | +------------------- |
| 3 | + |
| 4 | +Rocket Chip's `TinyConfig` tile (`RocketTile`): a 32-bit Rocket core |
| 5 | +with its instruction and data caches. It is the one ORFS design that |
| 6 | +takes `AUTO_MEMORIES` end to end, and the quickest way to see what it |
| 7 | +does with a real core: synthesis to global route in minutes. |
| 8 | + |
| 9 | +What makes it unique among the designs: |
| 10 | + |
| 11 | +- **Its memories are found, not hand-mapped.** The Rocket Chip generator |
| 12 | + leaves the cache arrays as black boxes (`*_ext`); `memories.v` gives |
| 13 | + them behavioral models in firtool's read-write port convention, and |
| 14 | + `AUTO_MEMORIES` infers them, checks them against its macro floors and |
| 15 | + generates FakeRAM `.lib`/`.lef` views for those that pass. Nothing is |
| 16 | + mapped by hand, unlike nangate45's tinyRocket (a platform file mapping |
| 17 | + each `*_ext` onto a fakeram macro) or the designs that instantiate |
| 18 | + their macros explicitly. |
| 19 | +- **SRAMs and a register file in one design, both identified by yosys.** |
| 20 | + `results/.../memories.json`, the inventory, lists every memory yosys |
| 21 | + infers and what became of it: |
| 22 | + |
| 23 | + | memory | shape | becomes | |
| 24 | + |---|---|---| |
| 25 | + | `data_arrays_0_ext` (dcache data) | 64 x 32, one read-write port, 4 byte lanes | FakeRAM macro | |
| 26 | + | `data_arrays_0_0_ext` (icache data) | 64 x 32, one read-write port | FakeRAM macro | |
| 27 | + | `tag_array_ext` (icache tags) | 4 x 25 | flip-flops: below the macro floors | |
| 28 | + | `Rocket._T_288`, the integer register file | 31 x 32, two combinational reads, one write | flip-flops: an array inline in the core, the shape no SRAM model describes | |
| 29 | + | TileLink queue entries | 2 words each | flip-flops | |
| 30 | + |
| 31 | + So the design exercises the SRAM path and shows the register file a |
| 32 | + CPU core really has, side by side, which no other design does. |
| 33 | +- **Fast turnaround.** A real core with macros, yet small enough to |
| 34 | + iterate on: synthesis is about half a minute, floorplan to global route |
| 35 | + a few minutes. |
| 36 | + |
| 37 | +To see the inventory and the generated views after synthesis: |
| 38 | + |
| 39 | + make DESIGN_CONFIG=designs/asap7/tinyRocket/config.mk synth |
| 40 | + cat results/asap7/tinyRocket/base/memories.json |
| 41 | + ls results/asap7/tinyRocket/base/memories/ |
| 42 | + |
| 43 | +`docs/user/AutoMemories.md` describes `AUTO_MEMORIES`. |
0 commit comments