
ASIC-1A is a digital signal-processing accelerator that calculates the squared magnitude of an IQ sample pair:
P = I² + Q²
I and Q are signed, two's-complement 8-bit values.
The result is stored in a 16-bit register. The largest possible result is 32768 (0x8000).
The eight dedicated input pins carry the sample data.
Four bidirectional pins are configured as inputs:
The remaining bidirectional input pins are unused. All bidirectional output enables are zero.
Commands operate on the rising edge of the clock.
Exactly one of Load I, Load Q, or Compute must be asserted for a command to execute.
The output is selected combinationally:
The active-low reset is synchronous and clears both sample registers and the power register.
The ena input is not used by this RTL implementation.
Release reset by setting rst_n high.
Test example: I = 3 and Q = -4.
Expected result:
3² + (-4)² = 25 = 0x0019.
Additional boundary test:
I = -128, Q = -128.
Expected result:
32768 = 0x8000.
The lower output byte must be 0x00. The upper output byte must be 0x80.
Verify that invalid simultaneous command combinations do not update the registers.
Verify that synchronous reset clears the result.
No additional hardware is required for RTL simulation.
Physical operation requires a suitable TinyTapeout test setup capable of driving the clock, reset, data inputs, and command pins.
The proposed operating clock is 50 MHz, subject to final submission approval.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | Signed sample bit 0 | Selected power byte bit 0 | Load I command |
| 1 | Signed sample bit 1 | Selected power byte bit 1 | Load Q command |
| 2 | Signed sample bit 2 | Selected power byte bit 2 | Compute command |
| 3 | Signed sample bit 3 | Selected power byte bit 3 | Output byte select |
| 4 | Signed sample bit 4 | Selected power byte bit 4 | |
| 5 | Signed sample bit 5 | Selected power byte bit 5 | |
| 6 | Signed sample bit 6 | Selected power byte bit 6 | |
| 7 | Signed sample bit 7 | Selected power byte bit 7 |