
This chip is an 8x8 -> 16-bit multiplier with two selectable compute cores sharing the same silicon:
cin is wired to a
real 5th same-weight partial-product bit (absorbing it instead of wasting a separate half-adder on it),
rather than being tied to a constant 0 -- an earlier revision did the latter, which let synthesis
constant-fold the compressor into something cheaper than a real 4:2 compressor, understating what "exact"
should cost.sum = (x1^x2) | (x3^x4), carry = (x1&x2) | (x3&x4) -- dropping the third output (cout) entirely, which changes the
reduction tree's shape (not just the per-cell cost), the main source of the area/speed savings below.Because tt_um only exposes 8 dedicated input pins but an 8x8 multiply needs 16 input bits (plus a
mode-select bit to choose exact vs. approximate), the design uses a free-running 4-phase load/compute/output
protocol driven purely by clk (no extra strobe pin needed):
ui_in is latched as operand A. uio_in[0] is latched as the mode-select bit
(0 = exact, 1 = approximate) -- this bit rides in "for free" here because operand B isn't being loaded
yet, so uio_in isn't needed for data during this phase.ui_in is latched as operand B.uo_out[7:0], low byte on
uio_out[7:0] (uio_oe is only driven high during this phase; it's an input during phases 0-2).The phase counter then wraps back to phase 0. One multiplication completes every 4 clock cycles.
Drive ui_in = operand A and uio_in[0] = mode select on one clock edge, ui_in = operand B on the next
edge, wait one more cycle for the internal compute register, then read the 16-bit product off
{uo_out, uio_out} on the 4th cycle (uio_oe reads back as 0xFF during this phase, confirming the chip is
driving the bidirectional pins). Repeat for the next multiplication. The test/test.py cocotb testbench
implements exactly this sequencing: it checks the exact-mode result is bit-exact against a*b for directed
corner cases plus ~200 random vectors, and reports the measured mean relative error for the approximate mode
over ~500 random vectors (expected around 5%, matching the exhaustive 65,536-vector sweep result).
The phase counter is free-running from reset, so the host keeps track of the phase by counting clocks after
releasing rst_n (the first rising edge after reset is phase 0). Important: uio[0] is an input only
during phase 0. In phase 3 the chip drives all eight uio pins, so the host must stop driving uio[0]
(tri-state it) after phase 0 to avoid bus contention.
None -- this project only needs the standard TinyTapeout PMOD/QSPI test harness to drive ui_in/uio_in
and observe uo_out/uio_out.
We gratefully acknowledge the Center of Excellence (CoE) in Integrated Circuits and Systems (ICAS) and the Department of Electronics and Communication Engineering (ECE) for providing the necessary resources and guidance.
Special thanks to Dr. H V Ravish Aradhya (HoD - ECE), Dr. K R Usha Rani (Associate Dean - PG), Dr. K. S. Geetha (Vice Principal) and Dr. K. N. Subramanya (Principal) for their constant encouragement and support in facilitating this Tiny Tapeout SKY26E submission.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | operand byte bit 0 (A on load phase 0, B on load phase 1) | product[8] | mode select (0=exact,1=approx) during load phase 0; product[0] during output phase |
| 1 | operand byte bit 1 (A on load phase 0, B on load phase 1) | product[9] | product[1] during output phase (input, unused, during load phases) |
| 2 | operand byte bit 2 (A on load phase 0, B on load phase 1) | product[10] | product[2] during output phase (input, unused, during load phases) |
| 3 | operand byte bit 3 (A on load phase 0, B on load phase 1) | product[11] | product[3] during output phase (input, unused, during load phases) |
| 4 | operand byte bit 4 (A on load phase 0, B on load phase 1) | product[12] | product[4] during output phase (input, unused, during load phases) |
| 5 | operand byte bit 5 (A on load phase 0, B on load phase 1) | product[13] | product[5] during output phase (input, unused, during load phases) |
| 6 | operand byte bit 6 (A on load phase 0, B on load phase 1) | product[14] | product[6] during output phase (input, unused, during load phases) |
| 7 | operand byte bit 7 (A on load phase 0, B on load phase 1) | product[15] | product[7] during output phase (input, unused, during load phases) |