Back to Eliza

E1 Demo Debug/MMIO Interface

packages/chip/docs/arch/debug.md

2.0.11.4 KB
Original Source

E1 Demo Debug/MMIO Interface

e1_chip_top exposes a 4-bit package-facing debug interface and translates it into the internal 32-bit MMIO bus.

Pins

SignalDirectionDescription
DBG_VALIDinputPulses one debug operation.
DBG_LAUNCHinputLaunches the loaded MMIO transaction when asserted with DBG_VALID.
DBG_WRITEinput1 for load/write operations, 0 for read/select operations.
DBG_ADDR[3:0]inputNibble index or command.
DBG_WDATA[3:0]inputNibble payload for load operations.
DBG_RDATA[3:0]outputSelected readback nibble.
DBG_READYoutputHigh when the bridge accepted the command.

Protocol

Address load:

text
DBG_VALID=1, DBG_WRITE=1, DBG_ADDR=0x0..0x7, DBG_WDATA=address nibble

Write-data load:

text
DBG_VALID=1, DBG_WRITE=1, DBG_ADDR=0x8..0xF, DBG_WDATA=write-data nibble

Transaction launch:

text
DBG_VALID=1, DBG_LAUNCH=1
DBG_WRITE=1 launches an MMIO write.
DBG_WRITE=0 launches an MMIO read and captures the response.

Readback nibble select:

text
DBG_VALID=1, DBG_WRITE=0, DBG_ADDR=0x0..0x7
DBG_RDATA returns the selected captured read-data nibble.

The MVP bridge is single-clock and single-transaction. It has no queueing, timeout, error response, or CDC. Those are required before this interface becomes a production debug transport.