Skip to content
Jupiter documentation
Menu

Build and check

The tools to install and the commands that check the spec, the gateware, the firmware, the whole chain in simulation, the DUT supply and the enclosure.

Tools#

Check the spec#

Simulate the gateware#

Each scenario prints one line. The run takes several minutes.

A scenario that fails prints a line that starts with FAIL, and the script exits with status 1.

Build the bitstream#

The script tries placement seeds until one meets timing and prints seed N meets timing. It fails if no seed reaches 162.5 MHz. The last build reached 163.2 MHz.

Prove the gateware#

The script proves 43 properties of the timing engine and 4 of the SPI register bus for every input, by induction. The run takes about four minutes.

The four mutant lines inject a fault into the engine and check that a proof catches it. The proofs assume the cycle length is not rewritten in the middle of a cycle. They do not cover the order of the RAS and CAS edges, which depends on register values.

Simulate the synthesised gateware#

The script synthesises the top level for the ECP5 and runs the scenarios on that netlist. All 14 pass, with no difference from the source-level run. Yosys has no simulation models for the PLL, the DDR cells or the input delay, so sim/ecp5_prims_sim.v stands in for them. Pad latency and PLL behaviour stay unverified until a board runs.

Test the firmware logic#

update-design.sh downloads the design system release and generates the display's palette and fonts into rt-hal/src/generated/. It needs gh and uv. Run it once, and again to take a new release.

The three groups are the test algorithms, the JSON console and the front-panel screens. They run rt-core against a software model of the engine and a DRAM. The next section runs the same logic against the real gateware. rt-fw, the RP2350 binary, compiles but has not run.

Simulate the whole chain#

rt-cosim runs the firmware's own tests through the real board driver (rt-hal) against the real gateware. Verilator compiles spi_regs.v and tester_core.v, and the crate clocks them at the real tick of 3.077 ns. The run takes about two minutes.

The scenarios cover a 4-bit chip, a 1-bit chip with separate data in and out, a 30-pin SIMM with parity and a 36-bit EDO 72-pin SIMM. The fault scenarios are a stuck cell, shorted data lines, a dead address line, and shorted and stuck control lines. The rest are an empty socket, a part that is too slow, an overcurrent, the supply margin test and the retention test.

The simulation does not model signal quality, the PLL, the ECP5 pad primitives or supply ramps. rt-fw is not part of it.

Simulate the DUT supply#

The script prints one PASS, FAIL or INFO line per check and exits with status 1 if a check fails. The regulator is a behavioural model and the transistors are generic models. The lines marked ASSUMED in hardware/spice/rail.inc list every value that does not come from the board.

All checks pass. Limits of revision A lists the figures to measure on the first board.

An earlier circuit failed four of these checks: 24 A of inrush, 17.8 ms to open the switch, no limit between 5.5 V and 5.86 V, and a discharge that depended on the transistor. The switch, its two transistors and the feedback divider were changed until the checks passed.

Study the supplies and the bus#

Five more scripts go beyond nominal values. Each prints PASS, FAIL and INFO lines and exits with status 1 if a check fails. All five fail today: Open design faults lists what they found.

The regulator model is this project's own, built from the datasheets, because the manufacturer publishes no SPICE model. Its loop compensation is assumed, so the stability results are indicative. The bus script downloads Texas Instruments' IBIS models for the two buffer types on the first run. The FPGA pad and the DRAM are generic models. The copper length of every bus line is in hardware/spice/si/lengths.json, taken from the routed boards.

Preview the display#

The files use the same fonts and colours as the display.

Web interface#

web/build.py downloads the Jupiter stylesheet, fonts and logo with gh. web/dev.py answers the same requests as the Wi-Fi module and runs the firmware's console against its software model. Post good, edo, empty, cell or short to /api/memory to change the simulated memory.

Wi-Fi module firmware#

This firmware has not been compiled yet. The ESP32 toolchain needs about 4 GB of disk.

RP2350 firmware#

The binary compiles and links. It has not run on a board.

Build the enclosure#

The command writes the STEP and STL files to enclosure/out/.

Documentation#

The pages are Markdown in docs-src. jupiter-docs from belikh/docs generates docs/*.md and the site from them. Edit docs-src only.

Commit docs-src and the regenerated docs together. .jupiter-docs and dist are in .gitignore.

Workflows#

Source: belikh/RAMalyser HEAD