
This project controls a simulated circular agent pushing a T-shaped block toward a fixed goal. It processes one 32 by 32 RGB image and the agent's two coordinates per action. The chip detects block pixels during a single raster scan, compares silhouette features with learned pose templates, and selects a surface contact and steers toward a push or approach point. Near the goal, three learned image projections refine position and angular error. If a push stalls, a small episode counter and a previous block position select a recovery waypoint. All weights are fixed in logic.
Select the project and hold the clock low while changing inputs. Drive reset low across two rising edges, then release it while the clock is low and at least 20 ns before the next rising edge. Repeat the reset at the start of each episode. Keep project enable high while operating. The supported clock is 10 MHz. Slower manual clocks work.
Drive the command on uio[5:4]. Command 2 starts or restarts a frame with the eight-bit X coordinate on ui. Command 3 immediately after X accepts Y on ui. Use command 1 for each pixel, starting at the top left and proceeding across each row. Place red on ui[7:4], green on ui[3:0] and blue on uio[3:0]. Each rising clock edge accepts one pixel. Command 0 inserts a gap. After 1,024 pixels, drive command 0 and clock until uio[7] rises. The output byte on uo is X with uio[6] low and Y with uio[6] high. Multiply each returned byte by two to obtain the simulator target. The result stays valid until reset or the next frame start.
Use a Tiny Tapeout demo board with RP-controlled project clock and a computer connected over USB. The RP drives only uio[6:0]. The project drives uio[7]. The project uses its digital supply.
Use the project clock as the timing reference for UI, host-driven UIO and project enable. Change data and commands while the clock is low, preferably on the falling edge. Keep them stable across the next rising edge. Release reset while the clock is low and stable before resuming transfers. The bit stream is a synchronous protocol. Crossing from an unrelated host clock requires a handshake outside this interface.
The revised input constraints use 20 ns maximum delay and 0 ns minimum delay relative to the rising edge. The former assumption of 20 ns minimum hid external hold and reset-removal requirements.
The integer policy scored 0.998409 mean episode reward (maximum reward within each episode) over the 64 development seeds 7000–7063.
With project enable high, send 0x2E and 0x35 on UI on the first two rising clock edges after reset release. Keep UIO[5:4] at command zero for arming and shifting. During a shift, drive UIO[6:0] low and leave UIO7 to the chip.
Stop the clock low at the state you want to inspect. Drive 0x16 on UI and sample UO7. Set UI0 to the incoming bit, then pulse the clock once. Repeat for all 360 bits. Feed each sampled bit back into UI0 to restore the captured state, or supply a saved bit stream to load it. Reset before starting a fresh application workload.
Across nine extracted RC and library corners, the smallest input hold or reset-removal slack is 0.2913 ns at the macro pins with a 0 ns minimum input delay. This margin applies at the macro boundary and does not include board or shuttle timing.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | Green bit 0 or position bit 0 / scan data in | Selected action coordinate bit 0 | Blue bit 0 |
| 1 | Green bit 1 or position bit 1 | Selected action coordinate bit 1 | Blue bit 1 |
| 2 | Green bit 2 or position bit 2 | Selected action coordinate bit 2 | Blue bit 2 |
| 3 | Green bit 3 or position bit 3 | Selected action coordinate bit 3 | Blue bit 3 |
| 4 | Red bit 0 or position bit 4 | Selected action coordinate bit 4 | Command bit 0 |
| 5 | Red bit 1 or position bit 5 | Selected action coordinate bit 5 | Command bit 1 |
| 6 | Red bit 2 or position bit 6 | Selected action coordinate bit 6 | Read Y select |
| 7 | Red bit 3 or position bit 7 | Selected action coordinate bit 7 / scan data out | Action valid output |