Two faults, both in the order the call was set up rather than in the audio.
The ring was a level, not a cadence. _service_line_frame asserted ringing for
as long as the seizure was a dialing one, which is the rest of the call, and
machine.py drives the ring detect bit on port 0x14 straight from it. The
answer machine at 0x70fb4 waits on an edge in every state, so a bit that goes
high and stays high parks it exactly as a floating one does - the comment
there already said so. LineExchange models the real sequence, so the socket
path now follows its timings: collect until interdigit_ms, spend routing_ms
setting the call up, then ring with RingSource's cadence, measured from the
last digit the line carried. The far end going off hook trips the ring.
And B answered a call nobody had made. --b-at ATA is queued at instruction
zero, so B seized the line and sent answer tone at 14.93 s while A was still
dialing until 15.35 s, and never sent another. --answer-on-ring holds the
answering end's AT input until the ring detector reads high, which is the
only order an answering modem ever sees: the switch rings it, the host
answers.
Measured on a 403 pair with --answer-on-ring: A dials 5551234 by 15.35 s, the
switch rings at 24.8 s, B answers within 9 frames of ring and the ring trips.
B's transmit goes from 23,841 nonzero samples to 38,914, and its answer tone
from one clipped 1.06 s burst to 1.10 s at 29.6 s and a full 2.98 s ANSam at
38.8 s. A receives all of it sample for sample at peak 22,042 and the bridge
hands it to the codec.
ATS0=1 does not stand in for this. B polls the ring detector 123,099 times
over a run and emits no RING to the DTE and never goes off hook, so the
firmware's own auto-answer is not reached by this path - worth its own look.
A still transmits nothing after its last digit, with v8_io_events 0. It hears
the answer tone and does not arm. That is the next question and it is not
about ordering.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
_service_line_frame's DAA block says an originating seizure "hears dial tone
until the firmware starts dialing", but nothing on that path noticed that it
had. The supervisor-PC hook at 0x5dbe7 and the exchange's `dialed` both stand
in for a central office, and neither fires on the socket: `link` attaches no
exchange. So operation stayed "originate", which the same block reads back as
line_state "dial-tone", for the whole call.
The firmware dialed anyway. Decoding a-tx gives 5551234 at 102 ms on and
112 ms off - the number from ATDT5551234, on the wire, while its own DAA kept
350+440 Hz on top of it and on top of the far end's answer tone.
DtmfDecoder already exists to learn the number the way a central office does,
by listening rather than by reading it out of the firmware. Feeding it the
outgoing frame applies the same rule to this path: first digit takes dial
tone off the line, and collection continues after it the way the exchange's
"dial-tone" then "collecting" states do.
A now reports dial_digits 5551234 against a single "5" before the collection
fix and nothing before that, reaches operation "dialing" with line_state
"quiet", and offers ringing to B, which now sees line_state "ringing".
This does not make the call. A still transmits nothing after its last digit:
B's 1.06 s of 2100 Hz lands at 14.93 s while A is still dialing until 15.35 s,
and is never repeated. The ordering of the answer against the dial is the
next question, not the dial tone.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
MailboxTap._next_sample was both the absolute count of samples drained and the
index it read m_line_tx from. Those are the same number only while the array
is, and it is not: the supervisor resets the DSP two or three times a call and
each reset clears the array.
So the tap read an empty slice after every reset until the new generation grew
past a stale index, dropping the start of each generation from its own report
with no error. Same fault as the bridge's output cursors in dfc1c6e; the tap
cannot see set_reset, so it detects the new array itself - line_tx_writes
shorter than where it was reading is a reset, not a continuation.
_array_cursor now indexes the current array and _next_sample stays the
absolute total, which is what the report and the sample_index field want.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
set_reset drives the shared C51/codec reset net and calls core.reset(), which
clears m_line_tx. _exchange_tx_index, _line_tx_index and _sip_tx_index index
that array and were left where they were. The rebuild path at the bootstrap
window already resets them for exactly this reason; the reset net did not.
A 403 pair asserts the net two or three times per call as the supervisor
reloads the datapump - counted in the core: two clears on A, three on B, the
last discarding 72,426 and 15,865 samples. After each one _take_line_audio
reads an empty slice until the new generation grows past the stale cursor, so
the start of every generation is skipped. A's audio sits at index 27,412 of
its last generation, far below a cursor already at 216,003, so none of it was
ever read; B's ran past the cursor and was read in part.
That is the disagreement the previous commit could not place. Nothing was
overwriting the array: a cell read as zero at size 27,413 in one generation
and 18,036 at the same size in the next. Measured, not inferred - the core
counts its own clears, and no rebuild (core_rebuilt_at 0) and no out-of-range
read was involved.
Both ends now ship what their datapump produces. tx_peak_codec matches the
array peak exactly on both sides, 22,748 on A against 0 before and 28,040 on
B against 17,188. a-tx carries 5,759 nonzero samples at peak 22,688 where it
was 240,000 zeros, b-tx 124,952 against 23,841, and each side's receive is
its peer's transmit sample for sample.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
_final_line_tx_scan reads the core's whole m_line_tx at the end of a run and
agrees with the core's own counters exactly: A has 5,176 nonzero samples,
peak 22,748, starting at index 27,412 (3.81 s). The bridge consumed indices
0..216,002 of that same array - which includes 27,412 - and saw a peak of
zero.
The same disagreement is on the audible end: B's array peaks at 28,040 while
the bridge only ever saw 17,188, which is also b-tx.wav's peak. The bridge's
view matches the wire in both cases; the array carries values it never read.
Ruled out by measurement: no core rebuild (core_rebuilt_at 0, bootstraps 1),
no trimming (one clear(), no erase/resize/pop_front), not the resampler (the
peak is zero before the conversion), not an out-of-range read, and neither of
the two causes settled earlier.
A vector does not change an index it has already written, so one of the two
measurements is not measuring what it appears to. Not a datasheet question.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
--line-frames N on run and link stops each side once it has exchanged N line
frames. Bridge.line_frame_budget trips Machine.request_stop from
_service_line_frame, so both ends leave at the same point in call time and
--instructions is only a ceiling.
300 frames on a 403 pair: both ends reach exactly 30.00 s of codec time
against 22.82 s and 15.89 s before, both still connected at exit, two
samples left in each buffer. The divergence and the dead-socket drop are
gone.
It changed nothing about the audio. Over 30 s with the peer alive
throughout, a-tx is 240,000 zeros and line_tx_nonzero is 5,176 - the same
count as the truncated run. So the previous commit's conclusion, that A's
silence followed from producing its audio after B had exited, is refuted.
The truncation was real and worth fixing and was not the cause.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Instrumented every branch of _service_line. originate_return is 0 on both
ends, so the guard proposed in the previous commit is exonerated - that
inference was wrong.
What the counters show instead: A calls _service_line_frame 228 times and
only 158 reach the peer, with line.connected False and "the far end closed
the line". The missing 70 frames are exactly 7.00 s, the shortfall measured
before and misexplained as an unshipped tail. A's buffer ends with 126
samples in it, so nothing was stuck.
Both ends stop at 85M x86 instructions, which is 22.82 s of codec time on A
and 15.89 s on B - a 44% divergence in instruction-to-sample ratio. B exits
first and A talks to a closed socket. The answer tone lands at 12.03-15.01 s,
so every nonzero sample A produces is generated after B has gone, which is
why a-tx is silent end to end rather than merely late.
Harness fault, not firmware. A linked pair budgeted on instructions gives the
two ends different clocks on a shared wire.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
b-tx and a-rx are identical - 23,841 nonzero samples, peak 17,188, running
96,273 to 120,113 (12.03 s to 15.01 s), which is the answer tone. The line
transport is not the problem in that direction.
a-tx is 127,200 frames of zero. The core says side A's DSP wrote 5,176
nonzero samples into m_line_tx, so the samples exist and none reached the
wire.
The shortfall is the shipping rate, not the conversion: A's codec produced
182,531 line-equivalent samples and shipped 126,400 of them, 69.2%, leaving
a 7.02 s tail unsent, where B shipped 99.4% and left 0.09 s. A's nonzero
output is 3% of its stream and arrives late, so the whole of it is in the
tail that never went out.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The core no longer hard-codes 2.1/2.2's c418: Bridge._v8_dispatch_addresses
finds every copy of the dispatcher by signature over the resident bank and
each declared overlay, and set_v8_dispatch_pcs hands them to the core, which
now also reports which one fired as v8_dispatch_pc.
_find_call_overlay requires the candidate to be pre-linked for the
destination - first branch target == 0xc418 + 0x0d. 2.1/2.2's stored copy
satisfies it; the self-linked resident copies on 302/403 do not, so nothing
is published there any more.
Measured on a 403 linked pair against the old behaviour as a control: every
V.8 number identical, only call_overlay_available moves, so the gate changed
nothing observable. The dispatcher does run, at 0xba0b, 22,471 times - but
@48, @4a and @4d are all zero, so every entry branches to program 0, and
v8_rx_peak and the audio rms are zero on both sides in the baseline too.
Artifacts in artifacts/v8-dispatcher-403-01/.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
_find_call_overlay accepts the resident dispatcher at 0xba2f (302) /
0xba0b (403) and copies 2,537 words of it to 0xc418. That block is not a
stored overlay: its branches are linked for its own address, so the copy
lands with every internal target pointing back into the original, and it
overwrites 0xc418-0xce00 of the resident bank.
The 2.1/2.2 layout it is modelled on is real - main211 does store the
overlay at b9c0 pre-linked for c418 - but 302 and 403 are flash ROMs with
the overlay table at 9d00/b000/dc00 and a different transfer protocol, as
the profile's own comment says.
Consequence for instrumentation: 0xc418 only becomes lacl @4a because the
misplacement put it there, so m_v8_dispatches counts the injected copy.
0xc7f7/0xc81a/0xc853 are 2.1/2.2 divide loops and are ordinary resident
routines here. The real dispatcher is at 0xba2f and 0xca41 on 302, 0xba0b
and 0xca1d on 403, plus a guarded copy in overlays 6 and 7.
This does not establish a cause for the V.8 stall - the counters are
write-only and never feed back - only that the instrument was aimed at the
wrong firmware.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Tag 0x17's two entries are not the same kind of address. 0x9cd4 sits below
every overlay entry and is a two-phase frame loop that never returns,
driving the resume primitive at 0x9cec. 0x9d17 is 23 words into overlay 6,
whose span is 0x9d00-0xc9f5 on 302.
Corrects the previous commit, which described 0x9d17 from the base image's
bytes. Overlay 6 shares only 52 of 11,510 words with the resident bank and
every word at 0x9d17 differs; with the overlay loaded it is V.34 setup.
Also records the xc polarity: bit 14 set selects 0x9cd4, clear leaves
0x9d17.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Read out of the DSP dispatch table on both images - 302 base 0x8401 gives
0x9bc5 and 0x9b9d, 403 base 0x83e9 gives 0x9ba1 and 0x9b79, and the same
read reproduces fsk-modulation.md's 9b34/9b38 for 0x10/0x11.
0x1e is six words: clear @6f bit 12, mask the data word to bit 12, or it
back. That is the bit 0x8613f computes from [0x4ed] & 4, and the supervisor
calls 0x8613f immediately before publishing the tag, so the MNP LR 0xC0
payload reaches DSP @6f unbroken.
0x17 writes @6f wholesale as (data & 0x3200) | 0x40 and selects between two
fixed entries, 0x9d17 and 0x9cd4, on bit 14 of the data word - not through
the nine-slot table. The shared 0x9b50 prologue reloads @27, the mode-flag
cell the slot selector tests.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Same LR parameter, same decode, same 0x1000 override, same dispatch idiom,
at [0xd0a3] on Ie030002.nac and [0x84fd] on the quad channel flash. The
override is byte-identical in all three images and so is the emitter.
The I-modem and quad dispatch sites also publish tags 0x17 and 0x1e
alongside 0x10/0x11, which the two 302 sites traced here do not.
Also corrects the attribution in the previous commit: main211.xmf is a
Courier 3453B v2.1.1, an analog image with no "ISDN" string anywhere, not
an iModem.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
[0x4ed] bit 2 gates the one bit of [0x0281] that is not built from local
configuration, and it is a received byte: the two-octet payload of the
proprietary parameter type 0xC0 in the far end's MNP Link Request, decoded
at 0x85932 and 0x8d370 out of the two receive rings.
The frame is identified by its own parameter set - type 3 valued 1..15,
type 4 length 2 with a dead compare against 260 beside it, type 9 rejected
at 3 or above - and by the transmitted template at 0x85bde, which is the
canonical LR header byte for byte. The modem emits its own word through
the same parameter at 0x85cd3, skipping it entirely when the local value
is zero.
403 is the same code at [0x3e5]/[0x3e6]: 30 test sites with matching masks
in matching order, the same two stores, four clears and two literal-1
writes, and no or/and/xor against the cell in either image.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
courier_firmware_analysis.md files a tag-0x7e DAA register read under
[0x281] while datapump-dispatch-gate.md publishes [0x281] as the datapump
command's data word. Neither is wrong: the first section was read from
main211.xmf, not the SV25.XMD its header names.
The iModem 2.1.1 supervisor loads at file + 0x40000, and every address in
that section decodes there exactly as written - 0x5c6b6 -> file 0x1c6b6
(c70602ff0080 / cf), 0x5e40c the [0x642] prescaler, 0x5db6c the period-3
state, 0x82b64 cmp word [si], 'SI', 0x6adb5 mov [0x281], ax after an
in al, 0x5c - and is zero in SV25.XMD.
Decisive both ways: IDSDL302.ROM has no store to [0x281] anywhere, and
main211.xmf has no mov bx, [0x281]. [0x027f] collides the same way.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The supervisor's event consumer, traced on the 403 board image.
[0x192] is reached by a near call at 0x8f4c9, so its segment is the caller's
CS 0x8f46, not a4e2. Both values the board capture recorded then decode as the
same four-instruction state stub - 0110 -> 8f570 idle, 5742 -> 94ba2 off-hook
- which retires the "read the linear column as a hypothesis per row" hedge and
makes that capture usable as a state trace.
Each state is a tag table plus a handler table dispatched by a shared scanner
at 0x8f77a; unmatched tags are dropped silently. The off-hook state takes 36
tags. Tag 0x2f lands on 0x94d83, the overlay-request consumer already
identified from the other side, which checks the mapping.
The two events the DSP actually emits are both discarded: tag 0x34's handler
is three instructions that drain the word and keep nothing, and 0x6b's keeps
one byte. Neither moves the state.
What the call is blocked on is tag 0x2c, whose handler installs the data-mode
interrupt vectors at 0x30 and 0x3c, stores a rate index as AL * 24, sets the
connected flag in [0x225] and advances [0x192]. Its DSP producers at 0xda19
and 0xda97 queue the tag-then-word pair the handler reads, and both sit in
resident cf00-dbff, which executes nothing but tag 0x50's parameter loader in
a whole call. The gate is the two bails at 0xda11/0xda13 on @70 and @44.
Also recorded: all 76 enqueue sites with the tags they emit; overlay 6's
enqueue cluster measured at zero executions while its four FIR filters run
every pass; and that tag numbers are per-direction, not a shared namespace -
0x2c means different things each way.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Two corrections and one finding, all measured on the 403 board image over a
leased-line pair.
The mailbox poll is not blocking. The DSP reads the status latch 342,624 times
in a 400M-instruction run, takes every message handed to it and acknowledges
each one; ar7 and arcr both read 0x0bc8, so the ARCR compare matches and the
gated block runs. The "messages overwrite each other while the DSP is not
looking" reading came from reading the DSP->CPU count as if it were the
CPU->DSP one. The NDX measurement stays; the conclusion built on it goes.
What is starved is the other direction. The sender at 0x83bf exits at 0x83c2
on every pass - ring read and write pointers equal - and the DSP emits one
message per call. Nothing queues into the ring at 0x0bd0.
Overlay 8 downloads, verifies and never executes: zero PCs in dc00:ffff for a
whole run, while overlay 6 runs a ~130-address block every pass. Its one
resident entry is b dc0c at 0x9097, gated by bit 8 of data 0x039f, set only by
mailbox tag 0x4f, sent only when [0x04e9] is 1 or above 5. [0x04e9] is &M and
reads 4 - the factory default, &M4 - so the gate wants the synchronous modes.
Tags 0x4d/0x4e/0x4f are the sync transmit clock source, selected by &X in
[0x04ed]. Overlay 8 is the synchronous datapump and an async call is correct
not to load it.
That correction was needed because the ampersand handler table was indexed
from 0xa669b, which is entry 11, not entry 0. The base is 0xa6685. Four
anchors fix it, including the four reject stubs landing on E, O, Q and V -
the set this file already recorded.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Pin 43 is copper-common with pin 13 on both boards, and Q8 (SOT-23, A12)
sits between that net and pin 21 with 560R and 10k around it - an LED
driver stage, which is the first support for 21 being a lamp node driven
through a transistor rather than from the gate array's own pin.
Everything else that session measured 0.6-1.4 V and conducted both ways,
which is two ESD clamps in series on an unpowered part. The control
reading settles it: ASIC 2 against ASIC 29, a DIP switch against a CPU
address input, reads 1.3/1.4. Those cannot be connected.
So four readings and the hypotheses on them are retired: a board-ID strap
link at 43, an internal bond making 13/21/43 one node, a ring-detect
signal on the bottom edge, and a four-pin DAA in which the ASIC held both
ends of each optocoupler. The DAA is pins 19 and 22 as before.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Records the reading and withdraws the claim that it would be decisive.
Both candidate readings predict an unconnected pin 48 on a board with no
EIA receiver, so the result discriminates neither.
Leaves two sound arguments pointing opposite ways - fixed silicon says
DTR-sense is on 18 because the 2805 puts it there, elimination on the
1489's four receivers says 4Y into 48 must be DTR - and concludes their
shared premise is the wrong one. They are probably two pins on one net,
1489 4Y feeding 48, 18 and the TR lamp, recorded as separate facts
because they were probed from different ends. Same shape as AA on pins 13
and 21, already open in this file.
Correct probe named, and it is on the 2806: meter 18 against 48.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
panel.py has 0x12 bit 0x40 in the INPUT map as dte-dtr, sampled at
0x5e375 and re-polled twice, a low reading posting supervisor events 6
and 7. The supervisor reads DTR and never drives it, so an ASIC pin
carrying DTR is an input on any board - which is what the 2805 shows and
what the panel table already said in other words ("follows the DTE's DTR,
read at 0x12 bit 0x40"), describing a sense input as a lamp.
So the TR lamp sits on the DTR net rather than being driven, the same
shape as CS turning out to be CTS. Weakens ASIC 48's "most likely DTR"
further: the 2805 has no EIA receiver, so nothing stopped USR routing the
550's DTR to 48, and they routed it to 18.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
ASIC 11 to UART 61 and ASIC 12 to UART 62 name the last two of the 2806's
six driver-fed signals: RI and DSR. Both were already recorded as 75188
inputs, so neither needs correcting - all six now have signal names.
Retracts the shared-EEPROM inference from 53cd878. The 2805 carries TWO
93C66s, one for the PnP controller and one for the supervisor, so the
arbitration pin the datasheet provides buys nothing here and nvram.py
still describes a part the supervisor owns alone. Notes how to tell the
two parts apart before anyone dumps the wrong one.
ASIC 18 does not fit and the file says so rather than smoothing it. UART
pin 50 is DTR, an output, so ASIC 18 is an input on the 2805; on the 2806
it drives the TR lamp, an output. Three readings are possible and the one
that fits the ASIC 9/10 pattern - TR lamp hanging on the DTR net, ASIC 18
the DTR input on both boards - collides with ASIC 48, recorded as "most
likely DTR" from DS1489 4Y and never confirmed. Both cannot be the input.
Probe named: meter ASIC 48 on the 2805.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Datasheet added as docs/TL16PNP550A-SLLS190B.pdf (SLLS190B, 1995/96), so
the 2805's UART pins are identified rather than positional. The JEDEC
68-PLCC decode was right on all four: 6 SIN, 49 RTS, 51 SOUT, 59 DCD,
60 CTS, with 50 DTR, 61 RI and 62 DSR still to meter.
Every net lands on the signal the 2806 says it should - RD to SIN, the CD
driver's source to DCD, the host's RTS to CTS0, SOUT to RXD0. The DTE
architecture transfers whole and EbSerial on channel 0 describes this
board as it stands.
Corrects yesterday's reading of ASIC 10. It is not a bottom-edge pin
repurposed on a board with no panel: UART 60 is CTS and CS is the Clear
to Send lamp, so it is one signal with two consumers. The correction runs
back into the 2806's table, where two entries named a destination where
they could name a signal - ASIC 9 is DCD, ASIC 10 is CTS. Same method
rule the file already carries for the 75188s, applied to a lamp.
Also flags that the 93C66 is probably shared: the 550 wants an ST93C56/66
for its resource data and carries an arbitration pin for a controller
sharing it, and the 2806's 93C66 is the CPU's NVRAM in the same x16
configuration. Unverified; the probe is named.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
A third unit, and the first internal one: same 1-016-905 ASIC (9726) and
same PA28F400, no ISA slot, so continuity only.
Memory side transfers pin for pin. All four upper address inputs (63, 62,
59, 58 to CPU 29-32) and all three flash address outputs (73, 74, 76) are
now measured on two boards independently, so four-in/three-out is not one
board's transcription. Pin 75 to flash 13 is the exception, and it is the
2806 that was wrong.
Panel side does not transfer, and that is the new information. There are
no 75188s and no DS1489; a TL16PNP550AFN faces the host instead, so the
DTE is the ISA bus and everything inboard of it looks unchanged. ASIC 46
and 9 keep their 2806 roles into the UART, but ASIC 10 - the CS lamp on
the external - drives a UART line here. The bottom edge is re-used rather
than idle, so the 2805 is the only source for what those 30 pins do on a
board without a panel.
UART pin numbers are recorded as positions under JEDEC 68-PLCC numbering
and explicitly not as identified signals: no TL16PNP550A pinout has been
obtained, and the nearest family parts are not the PnP variant.
Three oscillators: the ASIC's 40.320, the UART's 22.1184 (12 x 1.8432, so
it makes its own baud rate and is a real host-driven UART), and the CPU's,
which must be 50 MHz for the 25 MHz CLKOUT the 186EB halves it to. That is
arithmetic - X1 carries a house number, not a frequency.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
UCS decodes 0x80000-0xfffff, 512 KiB, and the PA28F400 is 512 KiB. Paging
means reaching a large device through a smaller window - the retracted
text said so in those words - and the window is not smaller. The CPU
addresses the whole part directly, so there is nothing for a paging
register to do. Stronger than fb8574f's "the reason for believing in it
is gone".
Leaves one loose end, now stated as one: A19 reaches the ASIC on both
boards and, with UCS holding CE#, is not needed to gate anything.
Tri-stating the ASIC's address outputs outside the flash region is the
ordinary answer and needs no register, but that is a guess.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
ASIC pin 75 goes to flash pin 13, GND - not to flash pin 12, CE#. The
flash's chip select is on CPU pin 61, UCS.
Three lines agree:
* A 2805 ISA board, same 1-016-905 ASIC and same PA28F400, meters 75 to
flash 13, flash 13 to ground, and flash 12 to CPU 61. The rest of that
edge transfers exactly - 70 to flash 11 and RAM 10, 73 to flash 3, 74
to flash 34, 76 to flash 35. Four agreeing and one not is a slip.
* The reset stub programs UCS_START (0xffa4) to 0x8000, a window of
0x80000-0xffc00: 512 KiB, the flash exactly. Both images do it. That is
pointless unless UCS selects the flash.
* asic-pinout.md contradicted itself, recording both LCS and UCS on the
SRAM pair's common CE# net. UCS on the flash closes that open probe and
leaves LCS on the SRAM, where its 0x0-0x20000 window says it belongs.
Second off-by-one in this region; the "74 is pin 3 or pin 34" conflict
was the first.
The paging inference goes with it. Four address lines in and three out is
what a flat map needs: UCS decodes A19, so inside the window A19 is
constant and the flash never needs it, while the ASIC emits system
A16-A18 as the part's A15-A17. That is a pass-through with A19 consumed
by the decode, not a fold. Paging is not disproven - the reason for
believing in it is gone, and the harness's flat 512 KiB image already
matched both boards.
What survives: the ASIC is the board's address latch, low byte for both
memories and the flash's top three lines. The select is not its.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
I claimed a bit the firmware drives as an output cannot be the ring
input. That is wrong on a latch with independent read and write paths,
and port 0x00 in this very firmware is the worked example - 0x33 reads
as strapped inputs while 0xc4 are outputs. machine.py already models
0x14's read side from the panel and strap inputs rather than from the
written latch.
So the cadence machine's `in al, 0x14 / test al, 2` at 0x1501d and the
receive path's `or al, 0x02 / out 0x14, al` are not in conflict: bit 1
out is CS/CTS, bit 1 in is ring sense.
That restores the optocouplers, which is where this should have landed.
board-parts.md reached for U14/U16 as ring detect plus loop-current
sense and then hedged, on the grounds that "ring sense already has a
port" - it does, on the read side, and the opto is what drives it. Both
have the ASIC on their transistor side, so the ASIC receives them, which
is the right direction for an input the CPU reads back out of a latch.
Corrected in all three places rather than left as a contradiction.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Answering what the handler does after it kicks. The two halves sit next
to each other in the ROM: the serial receive interrupt at 0xfc38b fills
a ring, and the periodic handler drains its flow control.
38b ax = [0xff68] ; the 186's serial receive register
395 di = cs:[0x100] ; head
39a stosb es:[di]
39b cmp di, 0x5975 / mov di, 0x1975 ; wrap
3a9 di -= cs:[0x102] ; occupancy
3b4 cmp di, 0x3e00 ; 15,872 of 16,384 - 97% full
3ba al = cs:[0x11c] / or al, 0x02 / out 0x14, al
16 KB ring at 0x1975-0x5975, head cs:[0x100], tail cs:[0x102], and
cs:[0x11c] shadows port 0x14. High water at 0x3e00 sets port 0x14 bit
0x02; low water at 0x2000, in the periodic handler right after the
watchdog kick, clears it. CTS flow control with hysteresis.
That identifies the bit. panel.py already has Led("CS", 0x14, 0x02,
"measured: drops when the port is released"), and 0x14 is active low, so
setting it drops CS and stops the DTE. Lamp and line are one bit, which
is what a CS lamp is for.
It also contradicts "port 0x14 bit 1 is ring sense", carried by
asic-pinout.md, board-parts.md and board.md. That claim was hedged where
it was made - no capture shows the bit moving while a line rings - and a
bit the firmware drives as an output cannot be the ring input. Noted at
both ends. Ring detect needs another bit; the optocouplers on ASIC 19
and 22 remain the better candidate.
The handler's remaining work is three 16-bit countdowns at cs:[0xf8],
[0xfa] and [0xfc], then the 186 EOI and iret.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
I wrote the cadence up without chasing the call path, on the strength of
one caller search that came back empty. It came back empty because I
searched for near calls into one address range; the routine is not
called, it is an interrupt handler, and there are three copies of it.
The ROM holds the twelve-byte sequence e4 00 24 33 0c 40 e6 00 24 33
e6 00 at 0x816d3, 0xa7955 and 0xfc314. The last two are the same handler
assembled for two placements - one cs:-relative, one absolute - and it is
copied into low RAM, where it runs at 0x0314:
30c sti
30d pushaw / push es
30f mov ax, 0 / mov es, ax
314 in al,0 / and 33 / or 40 / out 0 / and 33 / out 0
320 mov di, cs:[0x100] ; ring head
325 sub di, cs:[0x102] ; minus tail
32a jae .+4 / add di, 0x4000 ; 16K ring, wrap
330 cmp di, 0x2000 ; half full?
It saves registers and kicks before it looks at its own work, which is
what you do with a watchdog and nothing else.
The two sites hand over cleanly and cover the run with no gap: the
handler kicks 224 times from instruction 22,527 to 5,046,271, and the
foreground routine at 0x816d1 takes over for 85 kicks from 5,342,208 to
149,887,999. 224 + 85 = the 309 pulses the cadence table counts.
Also worth knowing: the copy lands at 0x0300 because the firmware uses
only vectors 0x00-0x15, leaving the rest of the vector table as free
space to store code in. So a run's `interrupt_vectors` dump is junk
above 0x15 - those entries are this routine read as pointers.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
A section in board-verified-403.md, next to the measurement that ruled
this bit out as the speaker, and a pointer from board-parts.md's ADM707
row - which is where the ~1.5 s bound was left without a trigger.
States what is known and the one command that settles it. Flagged as
inference from cadence and wiring, not a board measurement.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The cadence is the evidence, and it is the shape of a watchdog and
nothing else. It starts at instruction 22,527 - immediately after reset
- and is still going at the last moment of a 44 s run: 224 pulses at a
flat 151 Hz for the first 1.48 s, then steady service with a worst case
of 536 ms. A service that never stops and whose interval is bounded is a
watchdog; a status poll would wander, a lamp driver would go quiet when
idle. Interrupts are masked around a two-instruction pulse, so the width
matters - an edge into a retriggerable monostable.
The ASIC is what resets the CPU, through R1 from ASIC pin 52 into RESIN,
and the ADM707's watchdog is unused with pin 6 not connected. So the
ASIC is the only part with the means. And the board resets a halted
monitor after about 1.5 s, a bound board-parts.md left unattributed when
it retired the ADM707 explanation. 536 ms against ~1.5 s is the margin
you would design for.
The one thing that suppresses the pulse closes it: [0x5a2] bit 7, set by
exactly one site - an AT parser matching '!' at 0xa629d. Stopping the
kick is how you reset a modem from the command line.
Inference, not measurement. To settle it: type AT! on the board and see
whether it resets about 1.5 s later, or scope ASIC pin 52.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
docs/asic-pinout.md asked whether &T1 is a hardware mode or arithmetic
in the DSP, and named the test: look for a register-5 write with
DS01-DS00 = 00. It is a hardware mode.
The resident writes register 5 with 0508 at 90c3 and 90e1 - both real
code, under the cell 0x6f state word, through the register writer at
8770. DS01-DS00 = 00 is analog loopback, and per docs/ac01.txt 2.15.2
"In loopback, OUT+ and OUT- are internally connected to IN+ and IN-".
So the loop is inside the AC01. Nothing external switches it, the ASIC
is not involved, and the DSP throws it over DIN. The bring-up's 0505 at
80bd is the normal setting, as the entry said.
The question stayed open because it guessed the wrong encoding: it
looked for 0504, with DS02 set, and the firmware writes 0508, with DS03
set. Same field. A literal grep for 0504 finds only a coincidence in a
byte-pair table at c269 - enumerate every `bf80 05xx` and mask
DS01-DS00 instead.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
I argued that DSP 0x50 - a scaled copy of the received codec sample,
sent to the ASIC once per frame - was evidence against the speaker being
on the codec's MON OUT, on the grounds that a codec-internal monitor
would need no sample copy. That is a false dichotomy.
The AC01 datasheet (docs/ac01.txt): "The monitor output allows
monitoring of analog input and is a high-impedance output." It is a
purely analog path from IN+/IN- to the pin, with gains squelch, 0, -8
and -18 dB in register 4 DS05-DS04, defaulting to squelch. It never
touches the DSP's sample stream, so 0x50 is independent of it and says
nothing about the speaker either way.
And the functional fit is good, not coincidental: four gain states
against an AT set with exactly four (M0 off, L1/L2/L3); squelch as the
reset default matching M0; and an analog tap on the line input is what a
call-progress speaker wants - dial tone, ringback, busy and the far
end's answer heard directly, whatever the datapump is doing, plus one's
own dialling through the hybrid.
Still unmeasured, and the repo disagrees with itself: docs/board-parts.md
states the MON OUT wiring as fact, docs/board.md withdraws it as never
put on a meter. Register 4 reads 0x09 - monitor squelched - under every M
and L setting in the harness, which matches the 2806, where RAM 0x0693
gated both programmable paths off. So neither run exercises it.
What consumes DSP 0x50 is therefore unknown again. The name it carries
is the one the M/L chase left on it and is probably wrong.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The register written 539,452 times in a 150M-instruction call, which the
census left unexplained, is the call-progress monitor path - and it has
no CPU port at all.
The resident's frame ISR takes the received codec sample from DRR and
scales it by a gain:
8193 lamm @20 ; DRR, the received sample
8196 lacl @1d ; the gain
8197 bcnd 819e, eq ; zero gain - skip the copy
819a mpy @1d / pac
819c bsar 14
819d samm @50
docs/board.md reaches the same reading from the 2806's M/L trace: "tag
0x0f sets a gain for a scaled ADC sample copy to ASIC I/O 0x50". @1d is
that gain, and this run's supervisor sends 000f:0200 and 000f:0e00.
So the speaker audio does come from the DSP, but the route is DSP ->
ASIC 0x50, not the codec's MON OUT - that reading was never measured and
is withdrawn in full, along with the optocoupler reading before it. What
the circuit physically is remains unidentified. This is why no CPU port
sweep could find it: the audio never crosses to the 80186.
It is not a download lane on the ROM path either. `_commit_rom_group`
publishes the window at 0x58 and up; `_publish_window` writes 0x50 and
up, but that is the XMF profile and it stops once the call overlay is
active. My earlier reading of this register as a window lane was wrong.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
`PORT0_SPEAKER` and `speaker_pulses` asserted an attribution this repo
had already measured and withdrawn. docs/board-verified-403.md drove
this bit directly on the board, slowly enough to hear individual clicks,
on hook and off: it produces no sound. Neither does bit 0x04. "Only the
relay is audible." The speaker is not a CPU port at all - the audio path
is on the DSP side and the physical circuit is still unidentified.
It is not the line relay either. That is port 0x10 bit 0, attributed by
driving single bits on a unit and watching the front of the modem
(docs/dsp-rom-probe.md). Nor could it be: on a leased-line run this bit
is pulsed 223 times at a steady 22,528 instructions - 6.63 ms, 151 Hz -
and no relay switches at that rate. A slower group follows at about
530 ms.
So the bit is renamed to what is known about it and no more:
PORT0_STROBE, counted as `port0_strobes`. The cadence is the evidence
about what it drives, so keep counting it; just stop naming it.
Counts unchanged - 309 on both ends of the leased pair, same as
speaker_pulses reported.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The two sides are exact mirrors, and both disassemble cleanly.
80186, 0x8e4c1 C5x mask ROM, 0x0638
in al, 0x18 bit 0, @56 ; bank A ready?
test al, 1 bcnd 0638, ntc ; spin
je spin
out 0x40..0x4e (8 bytes) rpt #03
out 0x18, 1 bldp *+ ; FOUR WORDS
lacl #01 / samm @56
test byte [0xe36], al bit 1, @56 ; bank B ready?
out 0x50 window (8 bytes) rpt #03 / bldp *+
out 0x18, [0xe36] lacl #02 / samm @56
lacl #04 / samm @56 ; = ROM_CHECKSUM_STROBE
Eight bytes in, four words out: this is where the 16-to-8 conversion
happens, and the per-bank handshake is what makes the two widths agree
on a boundary. `BIT dma, code` tests bit (15 - code), so the DSP polls
bits 15, 14 and 13 - the ASIC's ready flags - and acknowledges in bits
0, 1 and 2. High half inbound, low half outbound, one register.
The mask ROM is a board dump, not a harness stand-in, so this is the
part's own protocol rather than something the model invented.
Correcting the previous commit's message: 0x18 is NOT unmodelled. It is
`ROM_COMMAND_PORT`, already the ROM profile's `command_port`, and
`read()` returns all-ones there deliberately - the C51 acknowledgements
are consumed synchronously, so the CPU sees both banks free. My port
classifier checked asic.py, panel.py and the window range and missed
`transfer.command_port`, which is also why it called 0x1e unattributed.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
`io_events` keeps only the first 128 accesses, which on any real run is
boot traffic, so a port that moves later cannot be seen in it at all.
`--io-watch PORTS` logs every access to the named 80186 ports with the
pc that made it, 8192 entries.
Pointed at 0x18 - the busiest port with no owner, 6,944 reads and 6,943
writes on a leased ROM pair - it is the DSP download handshake, not a
data lane:
8e4c1 in al, 0x18
8e4c3 test al, 1 ; bank 0 free?
8e4c5 je 8e4b9 ; spin
8e4d5 lodsw / out 40 / out 42 ; eight bytes into the window
... out 44 46 48 4a 4c 4e
8e4f7 out 0x18, 1 ; commit bank 0
8e504 in al, 0x18
8e506 test byte ptr [0xe36], al ; bank 1 free?
8e50a je 8e4f9 ; spin
8e51b ... out dx, dx+2 ... ; eight more
8e52e out 0x18, [0xe36] ; commit bank 1
A double-buffered eight-byte window with a ready/commit bit per bank,
which is what pairs the census's ~8,190 writes to each of 0x40-0x4e with
0x18's 6,943. `test word ptr [0xff46], 0x20` is its timeout: set, and
the transfer abandons to 8e595.
Nothing models 0x18, so every read returns the harness's 0xff default -
both banks always ready, and the firmware never waits where the board
would block until the ASIC had drained a bank into the DSP.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The port census answers for the ASIC's DSP-side window only, because
that is all the core routes there: `cpuregs_r`/`cpuregs_w` answer
0x00-0x35 from the part's own registers, fall through to IO_READ16 /
IO_WRITE16 for 0x50-0x5f, and answer everything between from
`m_data[offset]`. So sixteen addresses, 0x36-0x4f, were being served out
of ordinary storage with nothing recording that anyone had asked, and
0x50 is a constant in the core rather than a boundary recovered from the
part.
Report writes across the whole 0x00-0x5f range so the gap is measured
instead of assumed. On the leased ROM pair it is a clean negative -
0x36-0x4f is untouched, every write below 0x50 lands on a real C5x
register, and the only ASIC-window writes are 0x50, 0x56 and 0x57.
Per frame the datapump writes three sinks at once, all within a few
hundred of each other: DXR (0x21) 539,662, TDXR (0x31) 539,446 and ASIC
0x50 539,452. The bridge takes the line from DXR. Which of the three the
board sinks is the question `m_line_dac_slot` already raises.
Behaviour unchanged; mailbox log, messages taken, rx peak, runtime
messages, overlay downloads and the port census are identical on both
ends.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
`io_port_stats` defaults to 0x50-0x5f, and `dsp_host_ports` took the
default, so the harness reported the mailbox and the download window and
nothing else. Anything the resident does outside that range has been
invisible for the whole life of the report.
Sweep the board's decoded space instead - it stops at 0x7f
(docs/asic-port-map.md) - and report the ports with traffic. On a leased
ROM pair the originating side touches fifteen, five of them outside the
old window:
50 539,452 w @819d 51 40,329 r @8211
56 5 w /1 r 57 1,691,717 r / 4,754 w
58-5b ~4,716 r each 5e 33 r / 1 w 5f 33 r / 2 w
68 4 w @8159 69 4 w @815b
6a 3 w @804f 6b 4 w @8161
6c 4 w @8163
Behaviour is unchanged - this only widens what the status reports.
Mailbox log, messages taken, rx peak, runtime messages and overlay
downloads are identical on both ends.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The gate array is the only thing on the 80186's I/O bus and is also the
DSP's entire external interface, so it has a decoder on each side and
they number independently. Only eight CPU data lines reach the package,
so one 16-bit DSP register is two 8-bit CPU ports. The two spaces
collide on 0x5e, where the CPU means the high byte of the word and the
DSP means the tag.
Nothing in the harness said so. `panel.py` models its corner of the chip
properly - pin, port, bit, and the firmware address each meaning came
from - but the mailbox was four constants and a hand-written mirror in
bridge.py, with the DSP half living in the C5x core's own port array. No
single place recorded that a CPU port and a DSP register are the same
piece of silicon, which is how `set_io(0x5E, 0x229E)` came to publish a
CPU-side latch into the part's tag register.
`asic.py` is that place. `bridge.py` derives DSP_TAG_PORT,
DSP_WORD_PORT, DSP_STREAM_PORT, HOST_STATUS_CELL, HOST_TAG_CELL,
HOST_WORD_CELL, DSP_RUNTIME_PORTS and MIRROR from it instead of
restating them, and `dsp_register()` raises for a register the DSP has
no path to rather than handing back an address to write into the part.
MIRROR is `asic.mirror("tag", "word")`, which is the four entries it
always had: the whole table also carries the status and stream, and
taking it wholesale would have started mirroring both. The panel rows
are recorded for completeness but `panel.py` is not driven from here.
Byte-identical on the leased ROM pair - mailbox log, messages taken, rx
peak, runtime messages and overlay downloads all unchanged on both ends.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The CPU and the DSP number these differently and the same literal means
different things in each: CPU port 0x5e is the high byte of the *word*,
DSP register 0x5e is the *tag*. CPU 0x58/0x5a are the tag and resolve to
DSP 0x5e; CPU 0x5c/0x5e are the word and resolve to DSP 0x5f. That is
what the resident writes at 0x83eb and 0x83ee, and reads back through
the 0x23f0 helper with `#ff5f`; CPU 0x1c is DSP 0x57, which the sender
reaches with `#ff57`.
`_publish_connected_event` published its 16-bit status latch with
`set_io(0x5E, 0x229E)` - the DSP's tag register, one below the word it
meant - and the read branch for CPU 0x5c/0x5e read 0x5e back, so the two
wrongs agreed and the value came out right. The side effect did not:
writing there overwrites a tag the C50 may have placed and be waiting
for the CPU to read. The latch is an ASIC one the harness stands in for,
not a C50 register, so hold it on the bridge.
No behaviour change on the leased ROM pair - that run never publishes a
connected event, so the write never fired. Mailbox log, messages taken
and rx peak are identical on both ends.
Also correct two comments: the MIRROR table said the resident reads the
data from PA14/PA15, which would be registers 0x0e/0x0f and is not what
the image does; and my note in the 0x1c status read called 0x83d6 a wait
the sender spun on, when it is the ring-empty test and returns at once.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
`dsp_originated_tags` polls `io_port_stats` once a batch and then reads
whatever `io_output` holds, which samples an asynchronous stream: it
counts polls that saw a change, not messages, and can pair one
message's tag with another's word. The general I/O event log cannot
stand in for it either - it is unfiltered and capped at 8192, and the
datapump's transmit writes to port 0x50 run to half a million per call,
so it holds nothing but PCM by the time anyone reads it.
Keep a separate log of the writes to 0x5e..0x60 in the core, and decode
it in the bridge on the resident sender's own boundary: the tag goes to
0x5e and the words follow on 0x5f (0x83eb, 0x83ee, 0x83f6), so a write
to 0x5e opens a message. `status().dsp_mailbox_log` is the ordered
result, with the pc and instruction count of each send.
On a leased pair it confirms what the poll had reported, so the poll was
not in fact tearing here: the answerer sends exactly two messages in
150M instructions and the originator one.
a 92,860,533 tag 006b words 0000 4321
a 112,636,450 tag 0034 words 0000 0005
b 99,940,384 tag 006b words 0000 4321
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Port 0x1c bit 1 means "a word is waiting", and on the ROM path the
bridge reported it only from its own `_runtime_inbound` queue. The
C50's sender was invisible: the CPU never saw the bit, so it never read
0x58/0x5c and never wrote the acknowledgement, so PA7 bit 1 never came
back up and the resident's sender sat in its four-instruction wait at
0x83d6 for ever. A trace range of 83d0:83df filled its 512-entry ring
with nothing but 83d6..83d9, and `dsp_messages_taken` was 0 on both
ends of a leased pair after 150M instructions - no DSP-originated word
has ever reached the supervisor on this path.
Or the C50's completion into the status read, and treat an
acknowledgement with an empty queue as an acknowledgement of the C50's
word: the bridge's queue owns the data lanes while it stands, so an
empty queue is what distinguishes the two. `_set_dsp_status` already
returns PA7 bit 1, which is what releases the wait.
The same pair now takes 4 and 3 messages, and the answering end reports
0034:0005 as well as the 006b:4321 both ends send.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
`_maybe_start_answer_engine` sets `_asic_call_engine_started`, which
suppresses the 0x82 acknowledgement path in `_observe_asic_command`,
and the ROM path does not enter `_resume_armed_call`, which is where
the answer side otherwise publishes 0x02 and 0x03. So the answering end
reported neither latch and waited for one that never arrived: on a
leased pair its `runtime_inbound_delivered` was `{'007b:0004': 1}`
against the originating end's three, and it restarted its setup block
after `0059:715d`.
The latches are the ASIC's acknowledgement of the start strobe and do
not depend on which end placed the call;
`_maybe_start_originate_engine` already publishes the same pair. Both
ends now take all three, and the answering end no longer retries.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The AC01 clocks the line continuously and has no buffer to fall behind
with. `_service_line` shipped one 800-sample frame per
LINE_FRAME_INSTRUCTIONS while the C50 wrote DXR faster than that, and
the socket line service only starts once the ROM has launched - by
which time the core has already recorded tens of seconds of samples
from index zero. Draining that backlog a frame at a time meant each end
transmitted audio from the start of the run for ever: on a leased pair
both ends measured rx_peak 0 and codec_handed_ever 0 after 150M
instructions, having heard nothing but pre-carrier silence, while their
own transmitters had written 539,014 samples with 399,854 nonzero.
Pace on `line_tx_writes` instead, the way the audio-only path already
documents, and ship every whole frame the codec has produced. The
instruction clock stays as the fallback for when the C50 is not writing
DXR, so a peer whose transmitter is not running yet still gets a frame
clock. The per-frame body is now `_service_line_frame`.
The same pair now exchanges 468,000 samples with rx_peak 1338/1364 on
the two ends, and both hand the received audio to their codecs.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The international I-modem firmware uses A-law G.711 bearer (0x90 0x90 0xA3),
not mu-law or unrestricted digital. Add INFORMATION message handling so the
network peer can acknowledge SPID initialization from North American firmware
variants, and add the message type constant and IE for endpoint identification.
With A-law bearer the modem accepts incoming calls (ALERTING) and originates
calls that reach active state with the Am79C30 MUX routing B1 through
peripheral slot 6 to the DSP.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
m_io_events was an unbounded std::vector that grew by one entry per
DSP I/O operation — millions per second of simulated time. Over a
long interactive session this alone consumed tens of gigabytes and
triggered the macOS OOM killer. Switch to a std::deque with a rolling
window; the per-port aggregate stats in PortStat are unaffected.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
`--with-dsp` on the I-modem has raised `C51 ROM loader did not acknowledge
strobe 1` since 0c43c56 put the real mask-ROM loader in the boot path. The
loader was never waiting for the strobe: the core's reset fills every ASIC
register with `0xffff`, and its first poll at `0638` is `bit 2, @56` - the
finish strobe - so it read "download complete" before the CPU had strobed a
group, took the `0651` exit, and was in the resident's poll at `06dc` by the
time the first group arrived. Measured: entry PC `06dc`, 4,096 steps with no
motion, `@56` last read `ffff` at `0638` and last written `4` at `0652`.
No strobe latch comes out of reset asserted, so `@56` starts clear. Seeding
it before the NMI leaves the loader in its download loop, which is where the
CPU then finds it: 4,672 bootstrap words, four groups committed and consumed,
and the resident at IDLE.
This was blocking every ISDN experiment that needs the B channel, V.120
included - the bearer is HDLC-framed in the C51, so without the DSP there is
nothing on the B channel at all.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>