Repository navigation
emulator stores frames and raw data like a real Archon - #56
Merged
Merged
Conversation
added 3 commits
October 16, 2026 10:18
the ceiling added a block count to a byte address, refusing any fetch more than 477 KiB into a buffer, which would include every raw read from a real Archon
frames are 16 or 32 bits per SAMPLEMODE, reported in BUFnSAMPLE with RAWENABLE=1 raw samples are stored after the image at the next whole block, reported in BUFnRAWBLOCKS, BUFnRAWLINES and BUFnRAWOFFSET FETCH is served from any address inside a buffer
READOUT_TIME applies to the LINECOUNT loaded at APPLYALL each FETCH block leaves the send queue before the next is written
astronomerdave
requested review from
mikelangmayr,
prkrtg and
scizen9
as code owners
October 16, 2026 17:40
prkrtg
approved these changes
Oct 16, 2026
(also centered RAW output on 32768 to better match the adc output)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
bug fix 1
camerad's
fetch()incorrectly limits max buffer addressbug fix 2
The emulator ignored the
RAW*keys and reportedBUFnRAWOFFSET=0, so a raw read fetched the image from the buffer base, and every frame was 16-bit whateverSAMPLEMODEsaid. A real Archon stores the frame at theSAMPLEMODEdepth and, withRAWENABLE=1, captures 16-bit raw samples of one channel during the same readout, into the same frame buffer, fetched atBUFnBASE + BUFnRAWOFFSET.Separately,
READOUT_TIMEnow applies to theLINECOUNTloaded atAPPLYALL, so a mode with fewer lines reads out faster, and eachFETCHblock leaves the send queue before the next is written, so a host waiting for whole blocks doesn't stall.(This was a result of recent KPF-related work, so all of this has already been tested)