
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 SKY26D submission.
This project implements a configurable signed INT8 Multiply-Accumulate (MAC) architecture with runtime-selectable exact and approximate multiplication modes.
The objective is to quantify the trade-off between numerical accuracy and hardware cost. The project includes exhaustive functional verification and SKY130 standard-cell synthesis.
| Mode | Operation |
|---|---|
00 |
Exact signed INT8 × INT8 multiplication |
01 |
Medium architectural approximation |
10 |
Strong architectural approximation |
11 |
Exact default |
The full signed INT8 × INT8 multiplication is performed without approximation.
Each signed operand is arithmetically right-shifted by 1 bit. The resulting 7-bit operands are multiplied, and the product is left-shifted by 2 bits to restore the binary weight.
A' = A >>> 1
B' = B >>> 1
P = (A' × B') <<< 2
This implements an effective signed 7-bit × 7-bit multiplication.
Each signed operand is arithmetically right-shifted by 2 bits. The resulting 6-bit operands are multiplied, and the product is left-shifted by 4 bits to restore the binary weight.
A' = A >>> 2
B' = B >>> 2
P = (A' × B') <<< 4
This implements an effective signed 6-bit × 6-bit multiplication.
All 65,536 possible signed INT8 input combinations were evaluated.
| Mode | Error Rate | MAE | MSE | Maximum Error |
|---|---|---|---|---|
| Exact | 0.000000% | 0.000000 | 0.000000 | 0 |
| Medium | 74.609375% | 53.333984 | 5461.750000 | 255 |
| Strong | 93.164062% | 149.784302 | 38236.250000 | 759 |
| Design | Cells | Chip Area |
|---|---|---|
| Exact Multiplier | 295 | 2310.966400 |
| Medium Approximate Multiplier | 211 | 1776.704000 |
| Strong Approximate Multiplier | 149 | 1259.958400 |
| Configurable Multiplier | 636 | 5342.624000 |
| Configurable MAC | 885 | 7213.168000 |
The configurable MAC result includes sequential-cell mapping for the accumulator.
| Approximation | Cell Reduction | Area Reduction |
|---|---|---|
| Medium | 28.475% | 23.118% |
| Strong | 49.492% | 45.479% |
All 65,536 signed INT8 input combinations were tested.
Result: PASS — 0 errors
All 65,536 signed INT8 input combinations were evaluated for every operating mode.
The self-checking testbench verifies:
Final result:
PASS: CONFIGURABLE MAC SELF-CHECK PASSED.
approximate_mac/
├── src/ # TinyTapeout top-level wrapper and source RTL
├── test/ # TinyTapeout cocotb test infrastructure
├── rtl/ # Original SystemVerilog RTL
├── tb/ # Original self-checking testbenches
├── scripts/ # Synthesis scripts
├── results/ # Synthesis logs and netlists
├── docs/ # Documentation and figures
├── info.yaml # TinyTapeout project metadata
└── README.md
iverilog -g2012 -s configurable_mac_check_tb \
-o configurable_mac_check_sim \
rtl/configurable_mac.sv \
rtl/configurable_multiplier.sv \
tb/configurable_mac_check_tb.sv
vvp configurable_mac_check_sim
Expected result:
PASS: CONFIGURABLE MAC SELF-CHECK PASSED.
This project demonstrates a configurable approximate computing architecture that dynamically trades numerical accuracy for hardware cost.
The architectural approximations show a clear accuracy-versus-hardware trade-off:
The configurable MAC supports runtime selection between exact and approximate computation with signed INT32 accumulation.
The design was exhaustively characterized at the multiplier level, verified with a self-checking MAC testbench, and synthesized using the SKY130 HD standard-cell library.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | Operand A bit 0 | Accumulator bit 0 | Operand B bit 0 |
| 1 | Operand A bit 1 | Accumulator bit 1 | Operand B bit 1 |
| 2 | Operand A bit 2 | Accumulator bit 2 | Operand B bit 2 |
| 3 | Operand A bit 3 | Accumulator bit 3 | Operand B bit 3 |
| 4 | Operand A bit 4 | Accumulator bit 4 | Operand B bit 4 |
| 5 | Operand A bit 5 | Accumulator bit 5 | Operand B bit 5 |
| 6 | Operand A bit 6 | Accumulator bit 6 | Operand B bit 6 |
| 7 | Operand A bit 7 | Accumulator bit 7 | Operand B bit 7 |