
MCPU8 DAC is a complete 8-bit CPU with a digital-to-analog converter (DAC) in a micro tile. The CPU is MCPU, the minimal CPU Tim Böscke designed to fit a 32-macrocell CPLD: four instructions, an 8-bit accumulator with a carry flag, a 6-bit program counter, and a 64-byte memory that holds both the program and its data. The CPU is on the chip. The memory is outside it, in whatever drives the pins: on the Tiny Tapeout demo board that is the board's microcontroller (an RP2350B on the current ETR demo board, v3, for TT09 and later shuttles; the boards of TT04 to TT08 had an RP2040), which keeps the 64 bytes in an array.
The DAC is a first-order sigma-delta modulator with its own output pin, uo[7]. A program sets its 8-bit value by storing to address 63. With a resistor and a capacitor on uo[7], the CPU drives an analog voltage.

Block diagram. Left: the demo board, which only serves the memory and drives the clock and reset. Middle: the CPU (decode, phase state machine, program counter, address register, ALU, accumulator and carry) and the output mux that puts the address, the accumulator or acc[7] on uo[6:0]. Right: the sigma-delta DAC, loaded by a store to address 63, on uo[7].
Instructions. Each instruction is one byte: the top two bits are the opcode, the low six bits a memory address a.
| Byte | Instruction | Effect |
|---|---|---|
00aaaaaa |
NOR a | acc = NOT (acc OR mem[a]) |
01aaaaaa |
ADD a | acc = acc + mem[a]; carry = the carry out of bit 7 |
10aaaaaa |
STA a | mem[a] = acc; for a = 63 the DAC's value is also set to acc |
11aaaaaa |
JCC a | if carry is 0, jump to a; otherwise clear carry and go on |
The other operations come from short sequences. With the constants 0x00, 0xFF and 0x01 kept in memory: NOR allones clears the accumulator, NOR zero inverts it, NOR allones; ADD x loads x, NOR zero; ADD one negates, and JCC right after a JCC that was not taken always jumps.
The DAC. On every clock the tile adds the DAC value to an 8-bit sum, and uo[7] is the carry out of that addition: {uo[7], sum} = sum + value. Any 256 consecutive clocks hold exactly value ones on uo[7], spread as evenly as the bits allow; at 128 the pin alternates on every clock. The DAC runs on every clock whatever the CPU is doing, and reset sets its value to 0. A store to 63 still goes to memory too, so the host's mem[63] always holds the DAC's value.
The bus. uo[7] is the DAC output in every phase; the bus uses uo[6:0]. A CPU step is two clock cycles, an address phase and a data phase, plus a third, the store phase, when the step stores. All outputs come from flip-flops: uo_out is selected by registers, never by the clock.
| Phase | uo[6:0] | What the host does |
|---|---|---|
| Address (first after reset) | {WR, A[5:0]} |
puts mem[A] on ui_in before the next rising clock edge |
| Data | acc[6:0] | reads them |
| Store (only when WR was 1) | acc[7] on uo[0], uo[6:1] = 0 | stores mem[A] = acc |
WR is 1 only in the address phase of a store (STA), where A is the store's target. The carry flag is not on a pin. After reset the CPU is in an address phase with A = 0, and the accumulator, the carry and the DAC are 0.
The three timing diagrams below show each kind of step clock by clock. They follow src/project.v; the waveforms further down show the same sequences from simulation.



Bus timing of each kind of step. The CPU changes its outputs at the rising clock edge; the host has the rest of the clock to read them and, in an address phase, to put mem[A] on ui_in. The CPU takes ui_in at the edge that ends the data phase.
Steps per instruction. NOR, ADD and STA take 2 steps: the fetch, then the operand. JCC takes 1 step when taken and 2 when not taken (the second shows the jump target on the bus and stores nothing). A step that stores takes 3 clocks, every other step 2.
Loading a program. The program is whatever the host holds in its 64 bytes. To load one, write the bytes into the host's array and pulse rst_n; the CPU starts at address 0. A program can also be changed while it runs, and the host sees every store, so any address it watches works as an output port and any byte it updates works as an input port.
These are drawn from the VCD files of the cocotb tests (test/test.py), by docs/figures/waves.py. The first three tests clock the tile at 10 MHz; the melody slice is from test_host_melody_short, where host/mcpu8dac_host.py paces the clock at 400 kHz. In the windows shown, uo_out sampled once a clock is the same in the RTL and the gate-level run (37 clocks after reset, 200 clocks of the ramp), and the 26 DAC loads of the melody have the same values, at times 1.0 ns apart at most (the netlist's gate delays).


The first steps after reset, RTL above and REDA's gate-level netlist below. The program is NOR 3E, ADD 20, STA 3F, JCC 04 with mem[0x20] = 0x80. phase is A (address), D (data) or S (store). After ADD 20 the accumulator is 0x80; STA 3F shows WR and A = 3F (uo 0x7F) in its address phase and acc[7] = 1 on uo[0] in its store phase, and the DAC takes 0x80 at the end of the store phase. Two clocks later uo[7] starts to alternate, as it does for a value of 128.

Top: at a value of 128 the DAC output alternates on every clock. Bottom: the ramp program of test 4 stores 0x20, 0x40, ... 0xE0 to address 63, one store every 24 clocks; the count of ones under each step is value / 256 of its clocks (3 of 24 at 0x20, 21 of 24 at 0xE0). Gate-level run.

Notes 2 and 3 (D3, then C3) of the short melody, two half periods a note, as the host program plays it at 400 kHz in the gate-level run. A high half period of D3 lasts 3.410 ms (1,364 clocks, the D3 row of the pitch table below); the low half period and the gap after it last 11.263 ms together; C3's half period lasts 3.815 ms (1,526 clocks). The host paces the clock at exactly 400 kHz on average, so these are the table's clocks x 2.5 us. At 0xFF the output is low for one clock in 256, which the filter (bottom, the 1 kOhm / 22 nF of the listening circuit) barely shows.
These three pictures come from runs in REDA, the tool that made this layout, with the same REDA build that hardened the submitted GDS. Hardened again for these runs, it gave the same GDS byte for byte. The layout itself is under Figures, as REDA drew it.

Simulation, in REDA: the Digital · logic run of the MCPU8 DAC project (Icarus Verilog inside REDA, the RTL, a 10 MHz clock), in REDA's waveform view. The bench docs/figures/tb_sta63.v plays the demo board: reset, then it serves NOR 3E, ADD 20, STA 3F, JCC 04 with mem[0x20] = 0x80, and the run ends with RESULT PASS. Bus values are decimal: ui_in 62, 255, 96, 128, 191 are 0x3E, 0xFF, 0x60, 0x80, 0xBF. In the store step wr is high with adreg = 63, hi marks the store phase, dac takes 128 at its end, and pdm (uo[7]) alternates from two clocks later. REDA's view also lists the DAC's sum register, drawn as a 5-bit bus; that row is left out here.

Static timing, in REDA: REDA's timing engine (reda-time) on the routed design, with extracted parasitics and crosstalk, the sky130_fd_sc_hd ss_100C_1v60 cells (REDA's Timing step reads the tt cells; for this run, as for the corner table, the engine was given the ss Liberty), a 10 ns clock and the inputs changing 2 ns after the edge: the case of the worst setup slack in the Results table. The worst setup path runs from ui_in[0] through the ADD's carry chain to accumulator[7] (flop g13), 11 cells, with a slack of +4.278 ns. The worst hold path is the DAC's output flop (g42) to uo_out[7], +0.531 ns. REDA states the result as one line and draws no path, so docs/figures/sta_path.py draws it from the engine's own report, docs/figures/reda-sta-ss-report.json.
![REDA's mixed-signal view: uo[7] through the filter](https://index.tinytapeout.com/ttsky26e/tt_um_robutler_mcpu8dac/docs/images/reda-rc-tran.png)
Simulation, in REDA: two runs joined at uo[7]. REDA's Digital · logic run of the ramp program of test 4 (docs/figures/tb_ramp.v, the RTL, a 400 kHz clock) printed every change of uo[7]. Its 97 edges became a 0 V / 3.3 V piecewise-linear source (docs/figures/uo7-pwl.txt) in a REDA schematic with the listening filter, 1 kOhm and 22 nF to ground. ngspice 45, which REDA runs in the browser, then ran a 600 us transient. Green: uo[7]; yellow: the filter output. Over the second half of each step the output averages 0.851 V at 0x40, 1.650 V at 0x80 and 2.485 V at 0xC0, against 3.3 V x value / 256 = 0.825, 1.650 and 2.475 V. After 0xE0 the program wraps the DAC to 0, and the output decays with the filter's 22 us time constant. 3.3 V stands for the demo board's output high level; the pad's real level and edge rate are not modelled.
On the Tiny Tapeout demo board, with the demo board's MicroPython SDK, the board's microcontroller is the memory and the clock. Select the project and stop the automatic clock. This loop runs the CPU:
def run(mem, steps):
for _ in range(steps):
v = int(tt.uo_out.value) # address phase: {DAC, WR, A}
a, wr = v & 0x3F, v & 0x40
tt.ui_in.value = mem[a]
tt.clock_project_once()
acc = int(tt.uo_out.value) & 0x7F # data phase: acc[6:0]
tt.clock_project_once()
if wr:
acc |= (int(tt.uo_out.value) & 1) << 7 # store phase: acc[7]
mem[a] = acc
tt.clock_project_once()
def reset():
tt.clock_project_stop()
tt.reset_project(True)
for _ in range(3):
tt.clock_project_once()
tt.reset_project(False)
This program loads the byte at 0x20 into the DAC and stops in a loop at address 4:
mem = [0] * 64
mem[:5] = [0x3E, 0x60, 0xBF, 0xC4, 0xC4] # NOR allones; ADD 0x20; STA 63; JCC 4; JCC 4
mem[0x20] = 128 # the DAC value
mem[0x3D], mem[0x3E], mem[0x3F] = 0x00, 0xFF, 0x01
reset()
run(mem, 10)
print(mem[63]) # 128: the DAC's value
tt.ui_in.value = 0xC4 # JCC 4, whatever address the CPU shows
tt.clock_project_PWM(10_000_000) # now the DAC runs at 10 MHz
Once the program has stopped, the CPU only fetches JCC 4 at address 4 and jumps there again; holding ui_in at 0xC4 serves it at full speed, so the clock can run free. Connect a 10 kOhm resistor from uo[7] to a 100 nF capacitor to ground and measure the capacitor voltage with a high-impedance meter (10 MOhm or more). It settles within a few milliseconds (the time constant is 1 ms) at about V_OH x value / 256, where V_OH is the pin's output high level, 3.3 V on the demo board:
| Value at 0x20 | Expected voltage (V_OH = 3.3 V) |
|---|---|
| 0 | 0 V |
| 16 | 0.206 V |
| 64 | 0.825 V |
| 128 | 1.650 V |
| 192 | 2.475 V |
| 255 | 3.287 V |
The steps between values are 12.9 mV. Measure V_OH itself with 255 and scale by it, since the pin's high level under the meter's load is not exactly 3.3 V. To try another value, stop the clock, reset(), change mem[0x20] and run again.
After run(mem, 10) above, count the ones on uo[7] over 256 clocks; the count equals the value:
ones = 0
for _ in range(128): # 128 steps of JCC 4, two clocks each
for _ in range(2):
tt.ui_in.value = 0xC4
tt.clock_project_once()
ones += int(tt.uo_out.value) >> 7
print(ones) # 128
The CPU can play the first line of "Mary Had a Little Lamb" (E D C D E E E, D D D, E G G) on the DAC. Program and song fill the 64 bytes exactly:
00: 64 BE 1F 65 A2 5F DE 1F 40 61 80 60 83 1F 3F BF
10: 1F 7E 60 D2 62 60 A2 CD BF 60 D9 60 DB C0 DE FF
20: 01 02 00 00 3C 9D 23 A8 08 B2 23 A8 3C 9D 3C 9D
30: 3C 3A 23 A8 23 A8 23 50 3C 9D 5C 8A 5C 15 00 00
| Address | Contents |
|---|---|
| 0x00-0x1E | the program |
| 0x1F-0x21 | the constants 0xFF, 0x01, 0x02 |
| 0x22 | the half-period counter |
| 0x24-0x3D | the song, two bytes a note: 256 minus the delay passes per half period, 256 minus the number of half periods |
| 0x3E | the delay of the note playing |
| 0x3F | the DAC |
The whole tune is worked out by the CPU on this chip: which note comes next, its pitch, how long it lasts and the pause after it. Nothing about the music is computed anywhere else. The demo board's microcontroller only acts as the CPU's 64-byte memory: each clock it reads the address on the CPU's pins and answers with the byte stored there, and when the CPU stores a byte, it writes that byte into its array. It runs the same loop for the melody as for GCD or Fibonacci.
The 64 bytes hold the program (31 bytes), three constants, two counters, the DAC byte and the song: 13 notes of two bytes each. Step by step, the CPU:
ADD with the song's address in their address field. After each note the program adds 2 to those two instruction bytes, so they point at the next note. The program rewrites its own instructions; MCPU has no other way to index memory.ADDs point at 0x3E and 0x3F, the delay byte and the DAC byte. The DAC byte is 0 after the gap, and a length of 0 ends the song: the CPU jumps to 0x1E and stays there.The sound is a square wave: at a DAC value of 0 the pin is low, and at 255 it is high but for one clock in 256. The program, address by address:
00 ADD song acc = 256 - k (the address field is the song pointer)
01 STA hv
02 NOR allones
03 ADD song+1 acc = 256 - n
04 STA nv
05 ADD allones carry = (n' != 0)
06 JCC 1E end of the song
07 NOR allones
08 ADD 00
09 ADD two
0A STA 00 the next note's first byte
0B ADD one
0C STA 03 and its second
0D NOR allones half period: acc = 0
0E NOR 3F acc = NOT dac
0F STA 3F dac = 0 or 255
10 NOR allones
11 ADD hv
12 ADD one delay: count up to 256
13 JCC 12
14 ADD nv (acc is 0 here)
15 ADD one
16 STA nv
17 JCC 0D more half periods
18 STA 3F dac = 0 (acc is 0): the gap
19 ADD one 256 passes
1A JCC 19
1B ADD one and 256 more
1C JCC 1B
1D JCC 00 next note
1E JCC 1E the end
| Note | Pitch at a 400 kHz clock | Half period | Half periods (quarter / half note) |
|---|---|---|---|
| C3 (130.81 Hz) | 131.06 Hz, +3.3 cents | 1,526 clocks | 78 |
| D3 (146.83 Hz) | 146.63 Hz, -2.4 cents | 1,364 clocks | 88 / 176 |
| E3 (164.81 Hz) | 164.74 Hz, -0.7 cents | 1,214 clocks | 99 / 198 |
| G3 (196.00 Hz) | 195.69 Hz, -2.7 cents | 1,022 clocks | 118 / 235 |
The clock. At a 400 kHz clock a quarter note lasts 0.3 s and the line lasts 4.9 s (1,961,965 clocks). Pitch and tempo both scale with the clock: at 200 kHz the same bytes play an octave lower and half as fast. The MicroPython loop above manages a few thousand steps a second, so it is far too slow for sound. The memory has to be served by a program that keeps up with a 400 kHz clock, about 160,000 steps a second: the fast host below.
host/mcpu8dac_host.py serves the memory at a 400 kHz tile clock on the current demo board (TTDB v3, with an RP2350B). It has not been run on a board. It has been run in simulation against the RTL and the gate-level netlist, and its machine code has been counted against the clock period, as described below.
It is MicroPython. Its loop, serve(), is a viper function, which MicroPython compiles to machine code. The loop reads and writes the RP2350's GPIO registers directly: uo_out is GPIO 33 to 40, ui_in GPIO 17 to 24 and the project clock GPIO 16 (from tt-micropython-firmware's gpio_map_dbv3.py). Each tile clock goes like this:
uo_out and do the phase's work: in an address phase, put mem[A] on ui_in; in a store phase, write the accumulator into mem[A].An edge that comes late, for example because of an interrupt, does not move the later deadlines, so the next clocks come sooner until the loop is on time again and pitch and tempo stay right on average. play() reports the latest edge. To play the melody, copy the file to the board (for example mpremote cp host/mcpu8dac_host.py :) and, at the board's REPL:
import mcpu8dac_host as h
# select the project first, as for any other project
song = [0x64, 0xBE, 0x1F, 0x65, 0xA2, 0x5F, 0xDE, 0x1F,
0x40, 0x61, 0x80, 0x60, 0x83, 0x1F, 0x3F, 0xBF,
0x1F, 0x7E, 0x60, 0xD2, 0x62, 0x60, 0xA2, 0xCD,
0xBF, 0x60, 0xD9, 0x60, 0xDB, 0xC0, 0xDE, 0xFF,
0x01, 0x02, 0x00, 0x00, 0x3C, 0x9D, 0x23, 0xA8,
0x08, 0xB2, 0x23, 0xA8, 0x3C, 0x9D, 0x3C, 0x9D,
0x3C, 0x3A, 0x23, 0xA8, 0x23, 0xA8, 0x23, 0x50,
0x3C, 0x9D, 0x5C, 0x8A, 0x5C, 0x15, 0x00, 0x00]
mem, clocks, late_us = h.play(song) # resets the tile, plays 4.9 s
print(clocks, late_us) # clocks run; latest edge in us
The cycle budget. One tile clock at 400 kHz is 375 cycles of the RP2350 at its default 150 MHz. host/budget/ holds the Thumb-2 code of serve() as mpy-cross -march=armv7emsp (MicroPython 1.29.0) compiles it, disassembled with capstone, and budget.py, which counts each path through one clock. The bound charges 2 cycles for every instruction, 2 more for each taken branch and 10 more for the timer read. It is an upper bound from the instruction count, not a measurement.
| Path through one tile clock | Instructions | Cycles, at most | Of 375 at 150 MHz |
|---|---|---|---|
| Address phase (the longest) | 124 | 268 | 71 % |
| Store phase | 109 | 238 | 63 % |
| Data phase | 103 | 228 | 61 % |
The clock stays high for 19 instructions, at least 127 ns at 150 MHz, and uo_out is read after that. If the firmware runs the RP2350 at another speed, the budget scales with it: at 125 MHz one clock is 312 cycles, still above 268.
In simulation. test/test.py runs host/mcpu8dac_host.py unchanged under CPython against the tile. It swaps in a model of the four RP2350 registers serve() uses (GPIO input, GPIO set, GPIO clear and the timer), wired to the tile's pins as on the board. Each register access takes 40 ns of simulated time, and the timer counts simulated microseconds. So these tests check the program's bus protocol and its pacing; speed on the real chip is the budget above.
| Test | RTL | Gate level |
|---|---|---|
test_host_gcd: GCD(48, 18) and GCD(126, 124), 171 and 2,081 clocks |
pass | pass |
test_host_melody_short: the melody with two half periods a note, 73,783 clocks |
pass | pass |
test_host_melody_full (MELODY=full): the whole melody, 1,961,965 clocks, 4.905 s of simulated time |
pass | not run |
In each melody run, uo[7] equals the clock-exact model of the program on every clock, and the memory after the run equals the model's. Each interval between DAC loads lasts its clocks x 2.5 us of simulated time, to within 1 us. Every rising edge comes after its deadline by less than 1 us plus one 40 ns register access, the mean clock period is 2,500.0 ns, and the latest edge play() reports is 0.5 us.
host/uf2/mcpu8dac-host.uf2 does the same job as firmware for the board's RP2350B, without MicroPython. It selects the project on the chip's mux the way the board's MicroPython does, resets the tile, and serves the memory at a 400 kHz tile clock that SysTick paces to the cycle (375 cycles of 150 MHz). The source is host/uf2/src/main.rs. It has not been run on a board.
It has run on REDA's RP2350 twin, configured as an RP2350B, with the twin's pins coupled to the tile in Icarus. There were two runs, one with the RTL and one with the gate-level netlist (host/twin/), and the results were the same in both:
uo[7] equal to the clock-exact model on every clock.uo[7] were E3 D3 C3 D3 E3 E3 E3 D3 D3 D3 E3 G3 G3, each within 3.4 cents.Flashing it replaces the board's MicroPython firmware; to go back, flash the Tiny Tapeout MicroPython UF2 again. The steps (host/uf2/README.md has the details):
Put the project's mux address into the UF2. Tiny Tapeout publishes it in the shuttle's project index:
curl -o ttsky26e.json "https://index.tinytapeout.com/ttsky26e.json?fields=address,subtile_addr,subtile_addr_bits"
python3 host/uf2/configure.py host/uf2/mcpu8dac-host.uf2 mcpu8dac-host-ttsky26e.uf2 --index ttsky26e.json
Set all ui_in DIP switches off and wire the listening circuit below to uo[7].
Hold the RP2350's BOOTSEL button while plugging in USB, then copy mcpu8dac-host-ttsky26e.uf2 to the RP2350 drive.
The LED is on while the melody plays, and it plays again after a second. If the LED blinks fast, the UF2 was not configured.
Listening. Put a 1 kOhm resistor from uo[7] to a 22 nF capacitor to ground (a 7.2 kHz low-pass), then a 10 uF capacitor in series from that node to the input of a small amplifier or powered speaker. Headphones straight on that node through the 10 uF capacitor should be quiet but audible, and a piezo buzzer from uo[7] to ground should also play it. None of this has been tried on hardware yet.
What was checked, in simulation. cocotb runs the whole song on the RTL and on REDA's gate-level netlist. Every DAC load matches a clock-exact model of the program, and uo[7] is compared with the DAC's register model on every clock. test/melody_wav.py turns the recorded uo[7] stream (1,961,965 clocks) into what the 1 kOhm / 22 nF filter gives, writes docs/audio/melody.wav at 48 kHz, and finds each note's pitch with an FFT. The notes read E3 D3 C3 D3 E3 E3 E3 D3 D3 D3 E3 G3 G3, each within 4 cents.

Spectrogram of the filtered uo[7] stream of the gate-level run at a 400 kHz clock: the 13 notes, their fundamentals and odd harmonics, and the gaps between them.
GCD of 48 and 18 with the MCPU instructions only; a at 0x20, b at 0x21, the result ends in b:
mem = [0] * 64
mem[:14] = [0x3E, 0x21, 0x7F, 0x60, 0xC9, 0xA0, 0x7E, 0xCD, 0xC0, 0x3D, 0x7F, 0xA1, 0xC0, 0xCD]
mem[0x20], mem[0x21] = 48, 18
mem[0x3D], mem[0x3E], mem[0x3F] = 0x00, 0xFF, 0x01
reset()
run(mem, 2000)
print(mem[0x21]) # 6
The program ends in a loop at address 13. GCD(48, 18) takes 84 steps and GCD(126, 124) 1,010, as on MCPU8. In MicroPython the loop should manage a few thousand steps per second (an estimate, not measured).
Tests to try, all checked in the cocotb tests on both the RTL and the gate-level netlist. In every test the DAC output is compared on every clock with a model of the DAC's registers.
rst_n low for three clocks and release it: uo_out reads 0x00 (DAC 0, WR 0, address 0). One clock later it reads 0x00.uo[7].uo[7] stays 0 for 300 clocks.3E 60 B0 61 C6 C5 A2 3E 61 A0 3E 62 A1 C0 with mem[0x20] = 0, mem[0x21] = 1 and the constants: the stores to 0x30 are 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, then the program stops at address 5.rst_n: the Fibonacci sequence comes out.MELODY=full (see above).host/mcpu8dac_host.py serves GCD(48, 18) and GCD(126, 124) at a paced 400 kHz clock: the results are 6 and 2, and it stops on the halt loop.uo[7] equals the model on every clock, and each half period lasts its clocks x 2.5 us of simulated time.The demo board's microcontroller serves the memory. For the DAC, a 10 kOhm resistor and a 100 nF capacitor on uo[7], and a meter. For the melody, a 1 kOhm resistor, a 22 nF and a 10 uF capacitor, and an amplifier, powered speaker or headphones; or a piezo buzzer.
Designed with REDA on Robutler (https://robutler.ai): synthesis, floorplan, power grid, placement, clock tree, routing, extraction, timing, DRC and LVS are REDA's own (sky130A, sky130_fd_sc_hd cells), and the GDS is submitted as it came out of REDA. Tiny Tapeout's precheck is Tiny Tapeout's own.
| Check | Result |
|---|---|
| cocotb tests, RTL | 11 of 11 pass: reset state, GCD of five pairs, program load (GCD, then Fibonacci after a reload and reset), each instruction alone, DAC ones per 256 clocks for seven values, DAC alternation at 128, a ramp program, reset clearing the DAC, the melody program (2 half periods a note); the DAC output checked against a register model on every clock of these 9; and the fast host program serving GCD and the short melody at a paced 400 kHz clock. 2 more run only with MELODY=full |
| cocotb tests, gate-level netlist of REDA's layout | 11 of 11 pass, the same tests (2 more with MELODY=full) |
The whole melody (MELODY=full, test_melody_full), RTL and gate level |
pass on both: 1,961,965 clocks, every DAC load as the model gives, the same uo[7] stream from RTL and gate level; pitches E3 D3 C3 D3 E3 E3 E3 D3 D3 D3 E3 G3 G3, each within 4 cents |
| cocotb tests, gate level with REDA's SDF delays at ss, tt and ff | the first 9 pass at each corner (the two fast-host tests and the whole melody are not run with SDF) |
RP2350 firmware (host/uf2) on REDA's RP2350 twin, coupled to the tile in Icarus |
the whole melody on the RTL and on the gate-level netlist: 1,961,965 clocks, uo[7] equal to the model on every clock, mean clock period 375.000 cycles of 150 MHz; not run on a board |
| Tiny Tapeout precheck (tt-support-tools 21568ef7, local run) | pass, 17 checks, 0 failures, 0 errors (Magic DRC among them) |
| DRC (REDA) | clean, 436 of 436 rule records evaluated |
| LVS (REDA) | match, certified, 2,496 devices |
| Routing | 329 of 329 nets, antenna clean |
| Timing (REDA), 10 ns clock, ss, tt and ff corners, extracted parasitics with crosstalk | met at all three: worst setup +4.278 ns (ss, inputs 2 ns late), worst hold +0.096 ns (ff) |
Timing was run with REDA's timing engine on the routed netlist and its extracted parasitics with crosstalk, at three corners of the sky130_fd_sc_hd cells, once with the inputs changing at the clock edge and once with them changing 2 ns after it. One extraction (the kit's nominal wire resistance and capacitance) serves all three corners; the corner sets the cells' process, supply and temperature. Setup and hold are met at every corner at 10 ns, without a hold-repair step.
| Corner | Setup slack | Hold slack | Setup, inputs 2 ns late | Hold, inputs 2 ns late |
|---|---|---|---|---|
| ss, 100 C, 1.60 V | +5.217 ns | +0.313 ns | +4.278 ns | +0.531 ns |
| tt, 25 C, 1.80 V | +7.642 ns | +0.151 ns | +6.195 ns | +0.269 ns |
| ff, -40 C, 1.95 V | +8.509 ns | +0.096 ns | +6.865 ns | +0.169 ns |
The gate-level tests were also run with the timed cell models and an SDF that REDA wrote for each corner (cell delays, setup and hold checks, and the wire delays from the extraction, without crosstalk). Icarus applied all of it except the wire delays between the pins and the first or last cell (0.9 ps at most) and the edge-specific delay arcs of the 14 xor2 and xnor2 cells, which the cell models declare without an edge.
The host gives the inputs a whole clock cycle: ui_in is set in the address phase and read at the end of the data phase.
| Area | Value |
|---|---|
| Die (micro tile) | 70.38 x 51.68 um (3,637 um2), core 64.86 x 46.24 um (2,999 um2), 17 rows |
| Standard cells | 302 after synthesis (2,177 um2); 520 placed instances with taps, decaps and fill; logic, flops and clock buffers 2,382 um2, 79.4 % of the core |
| Flip-flops | 43: the CPU's 26 (8 accumulator, 1 carry, 6 program counter, 6 address, 3 state, 1 phase, 1 store phase) and the DAC's 17 (8 value, 8 sum, 1 output) |
| Power grid | met2 VPWR and VGND pairs at each end of the core, four met3 stripes as the power pins |

Layout of the micro tile (70.38 x 51.68 um) as REDA made it, in REDA's layout view.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | D0: memory data in (mem[A] in the address phase) | A0 (address phase) / ACC0 (data phase) / ACC7 (store phase) | |
| 1 | D1: memory data in (mem[A] in the address phase) | A1 (address phase) / ACC1 (data phase) | |
| 2 | D2: memory data in (mem[A] in the address phase) | A2 (address phase) / ACC2 (data phase) | |
| 3 | D3: memory data in (mem[A] in the address phase) | A3 (address phase) / ACC3 (data phase) | |
| 4 | D4: memory data in (mem[A] in the address phase) | A4 (address phase) / ACC4 (data phase) | |
| 5 | D5: memory data in (mem[A] in the address phase) | A5 (address phase) / ACC5 (data phase) | |
| 6 | D6: memory data in (mem[A] in the address phase) | WR: store to A (address phase) / ACC6 (data phase) | |
| 7 | D7: memory data in (mem[A] in the address phase) | DAC: pulse-density output (every phase) |