RTL export
After connecting and simulating your design, run make export and submit the output to the team's backend tools. Export first prepares RTL, checks the interface, runs Verilator lint, and executes every boundary test. TEST=... does not reduce export validation.
make export
# Increase the per-process compilation/runtime timeout for larger designs.
make export TIMEOUT=600Outputs are dist/<uid>-<first16-content-digest>/ and a matching .tar. Use the directory directly or transfer the archive.
| File | Purpose |
|---|---|
rtl/design.sv | Canonical RTL containing the MacroTop boundary and user design, with includes/macros expanded and original names preserved |
rtl.f | RTL file list; read with -F to resolve paths relative to the list |
artifact.json | Top cell, UID, interface version, RTL fingerprint, dependencies, and file checksums |
tests/<name>.sv | Boundary tests retaining source names |
source/ | Editable snapshots of user RTL, tests, and included files |
Use artifact.json.cell as the top in the team's backend tools. It equals macro.json.top, defaulting to MacroTop. Before backend work, agree on a unique top name with the team and update the RTL, testbench references, and top together; the tool does not rename them. Optional describe text is carried into the export metadata. Editing it preserves the cell name and RTL fingerprint but changes the complete export content digest.
Modules, interfaces, and packages keep their original names without UID or hash suffixes. The UID identifies the macro, rtl_sha256 identifies canonical RTL, and content_sha256 identifies the complete revision. New exports use format 3 with kind rtl-export and omit renames. Already hardened older deliveries must keep their original cell names and matching views; do not mix them with a fresh export.
Declare external functional cell models in dependencies. They keep their library names; exports record normalized model checksums, and models are supplied separately. rtl.f lists only user design RTL; configure external libraries in the consuming tools.
For cell models containing specify timing blocks, set "functional": true on the dependency to generate a functional simulation view with those blocks removed. Original files remain unchanged. This option defaults to false; verification here is functional, and model checksums depend on the selected view.
Identical contents produce the same directory and tar on repeated exports. After changing a design, rerun tests and export while retaining its UID. build/prepared/ is a regenerable working directory; submit a fixed revision from dist/.
Netlist testing is an optional separate step described in the simulation guide. RTL export does not require a netlist and excludes any configured netlist from its outputs.
Before export, the tool checks that RTL, tests, and dependencies still match the prepared/simulated contents. Edits during simulation cause export to fail; rerun make export. Empty marker files preserve otherwise unused include directories in the editable source snapshot so the extracted directory structure remains usable.
After copying, the tool regenerates RTL and tests from the packaged source snapshot and compares them with the validated contents, catching edits during the copy. A failed check of an existing release directory preserves its matching tar and reports an error. Duplicate module definitions between design and dependency models, or between dependency libraries, are also errors.
Run one build, export, or cleanup command at a time in each workspace. A concurrent command reports an error and preserves the active files; retry once the first finishes. Ctrl-C stops the active tool process before releasing the workspace. The generated .mpc-workspace.lock is ignored by Git; leave it in place without editing or deleting it.