
A weight-stationary multiply-accumulate (MAC) engine that does one 8x8 unsigned MAC per clock.
weight_reg[0], and the ring rotates after every MAC. The ring length follows the window size: 1 (1x1), 4 (2x2) or 9 (3x3).activation * weight every valid cycle.latch_and_clear copies the accumulator into a 24-bit shadow register and restarts accumulation in the same cycle, so the next window can be computed while the last result is being read (no stall cycles).read_select chooses which byte of the shadow register appears on uo_out.Every input pin is registered once before use, so each command takes effect one clock after it is driven. This keeps the critical path (multiplier + adder) entirely inside the chip, where it meets timing at 50 MHz even at the slow process corner.
All signals are sampled on the rising edge of clk. Change inputs between edges.
rst_n low for at least 4 clocks.uio[0] (MODE) = 1 and uio[4:3] (WINDOW_SIZE) = 10 (3x3), 01 (2x2) or 00 (1x1). Put 9 bytes on ui_in, one per clock. The first byte loaded is the first weight used; for 2x2 and 1x1 only the first 4 or 1 bytes matter.uio[1] (VALID_IN) = 1, then put one activation per clock on ui_in.uio[2] (LATCH_AND_CLEAR) = 1. The next window's first activation can go on that same clock with VALID_IN = 1.uio[6:5] (READ_SEL) to 0, 1, 2 on consecutive clocks to read bytes [7:0], [15:8], [23:16] of the result from uo_out.Example: weights 1..9 and nine activations of 1 give 45 (0x00002D).
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. 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 | DATA[0] (weight / activation) | RESULT[0] (shadow byte sel. by READ_SEL) | MODE (1=load weights, 0=compute) |
| 1 | DATA[1] (weight / activation) | RESULT[1] (shadow byte sel. by READ_SEL) | VALID_IN |
| 2 | DATA[2] (weight / activation) | RESULT[2] (shadow byte sel. by READ_SEL) | LATCH_AND_CLEAR |
| 3 | DATA[3] (weight / activation) | RESULT[3] (shadow byte sel. by READ_SEL) | WINDOW_SIZE[0] |
| 4 | DATA[4] (weight / activation) | RESULT[4] (shadow byte sel. by READ_SEL) | WINDOW_SIZE[1] |
| 5 | DATA[5] (weight / activation) | RESULT[5] (shadow byte sel. by READ_SEL) | READ_SEL[0] |
| 6 | DATA[6] (weight / activation) | RESULT[6] (shadow byte sel. by READ_SEL) | READ_SEL[1] |
| 7 | DATA[7] (weight / activation) | RESULT[7] (shadow byte sel. by READ_SEL) |