How williamzhang20/protocol-emulator works
This is a Tiny Tapeout RTL design for a deterministic, SRAM-programmed, bit-level protocol emulator. The principal workflow is that a host loads bytecode and exchanges payload bytes, then starts the engine; the VM and real-time action lanes execute protocol-neutral timing, shifting, GPIO, waits, and branches, with UART behavior supplied by the SRAM image. The README also documents register/ALU, CRC/timer, FIFO, GPIO mapping, and pin-claim capabilities. Relationships below follow those README statements; RTL source was not sampled, so internal call-level wiring is not asserted.
Main entry points: vm_sequencer.v VM Sequencer · action_dispatcher.v Action Dispatcher · action_lane.v Action Lane · program_memory.v Program Memory
Components 21
Host and Memory
- Host Interface
src/host_interface.v - Program Memory
src/program_memory.v - Foundry SRAM
src/RM_IHPSG13_1P_1024x8_c2_bm_bist.v
Program Execution
- VM Sequencer
src/vm_sequencer.v - Instruction Decoder
src/instruction_decoder.v - Register File and ALU
src/register_file.v - Event Engine
src/event_engine.v
Real-Time Actions
- Action Dispatcher
src/action_dispatcher.v - Action Engine
src/action_engine.v - Action Lane
src/action_lane.v
Pins and Serial
- Serial Shifter
src/serial_shifter.v - GPIO Arbiter
src/gpio_arbiter.v - GPIO Datapath
src/gpio_datapath.v - UART TX
src/protocol_emulator_core.v - UART RX
src/protocol_emulator_core.v
Shared Resources
- TX FIFO
src/byte_fifo.v - RX FIFO
src/byte_fifo.v - CRC Engine
src/crc_engine.v - Timer Counter
src/timer_counter.v
Other components
- Host
- Protocol Pins
Connections 20
- Host → Host Interface: loads and starts
README.md - Host Interface → Program Memory: loads bytecode
README.md - Program Memory → Foundry SRAM: stores image
README.md - VM Sequencer → Program Memory: executes bytecode
README.md - VM Sequencer → Instruction Decoder: decodes instructions
README.md - VM Sequencer → Register File and ALU: uses ALU and registers
README.md - VM Sequencer → Event Engine: uses timing events
README.md - Action Dispatcher → Action Engine: dispatches actions
README.md - Action Engine → Action Lane: runs action lanes
README.md - Action Lane → Serial Shifter: shifts and samples
README.md - Action Lane → TX FIFO: pulls TX bytes
README.md - Action Lane → RX FIFO: pushes RX bytes
README.md - Action Dispatcher → TX FIFO: arbitrates FIFO ports
README.md - Action Dispatcher → RX FIFO: arbitrates FIFO ports
README.md - Action Dispatcher → GPIO Arbiter: admits pin claims
README.md - GPIO Arbiter → GPIO Datapath: controls pin mapping
README.md - UART TX → Protocol Pins: drives UART output
README.md - Protocol Pins → UART RX: provides UART input
README.md - VM Sequencer → CRC Engine: uses generic CRC
README.md - VM Sequencer → Timer Counter: uses generic timer
README.md