How morphingmachines/rockettile works
Main Components
• Core Generator & Top-Level Module: Represent the central RocketTile design (see files like src/main/scala/Top.scala, CE.scala, Config.scala, and Uncore.scala). This is the heart of your FPGA/ASIC design.
• Accelerator Modules: Include RoCC components such as the LazyRoCC (src/main/scala/LazyRoCC.scala) and the simpleRoCC submodules (along with examples like Accumulator.scala and DMA.scala) that extend or accelerate functions in the core.
• Simulation Infrastructure: Illustrate the simulation testbench (src/main/scala/sim/SimDUT.scala) plus the connection to the Front-End Server (FESVR) used during simulation when running “make verilate”. This section should also note the integration with Spike and the dependency on the FESVR library.
• Bare-Metal Environment: Show the support files located under src/main/resources/baremetal. Include bootrom code (with its Makefile, bootrom.S, and image files) and the various example programs (e.g., vecAdd, rocc-example, assembly-example) which validate the design in a bare-metal context.
• External Dependencies: Highlight the external “playground” library that must reside alongside RocketTile and any linking with riscv-tests for executing the bare-metal examples.
Interactions and Relationships
• Simulator (SimDUT) to the generated Verilog components, showing how testbenches drive and verify the hardware design.
• Data flow from the bootrom and bare-metal initialization code into the core (startup sequences, assembly initialization, interrupt/exit system calls).
Architectural Patterns and Design Principles
• Modular Design: Emphasize that the design is split into distinct modules (core, accelerators, simulation/testbench, bootrom/baremetal examples) which interact via well-defined interfaces.
• Reuse of Frameworks: Note that Chisel is used to generate the Verilog, and the diplomacy graph (see the graphml file generated with “make rtl”) represents the inter-module communication and hierarchy.
• Layering: Clearly mark the separation between hardware description (Scala/Chisel modules), simulation environment (test benches and FESVR integration), and baremetal runtime examples.