pub struct VdcAccess { /* private fields */ }Expand description
The VDC accesses of one decode, for the board’s wait (issue 0004).
In the reference a VDC access that has to wait calls the board (Board._serve_vram), which
runs every device event by event, the line clock and the pixel path included, until the
access is served, and the access then goes on; a device that touches two VDCs in one access
(the lockstep pixel path writes both on ST0-ST2) touches the second after the first’s
wait. A Rust device cannot be called again by the board while it is in the middle of an
access, so the access stops there instead (vdc/chip.rs, Vdc::serve_wanted): every later
VDC access of the decode is skipped (it answers $FF to a device whose access is thrown
away), the board serves the chip, and the board makes the whole decode again. In the new
pass the accesses made before the stop are not made twice: their results are handed back
from the log, in order; the stopped access is made at the time the wait ended; the later
ones are made as the reference makes them after its wait, with the device’s own mclk.
This asks of a device that an access whose VDC access stops changes nothing of its own
(the VPC’s and the lockstep devices’ do not); a device’s decode is deterministic.