
Rule-based selector (selection_logic) scores AES vs SIMON from packet/system attributes.
If SIMON is chosen (or FORCE_SIMON=1) the on-chip SIMON-32/64 core encrypts PT with KEY (36 cycles).
If AES is chosen the chip sets AES_REQ and the host runs AES-Lite in software.
The design is a byte-wide register file driven by ui_in (write data), uo_out (read data) and
uio[3:0] (address). uio[4] is WE, uio[5] is START, uio[6] is FORCE_SIMON and uio[7] is the DONE output.
| Addr | Write | Read |
|---|---|---|
| 0-3 | PT bytes (LSB first) | CT bytes (LSB first) |
| 4-11 | KEY bytes (LSB first) | 0x00 (key is write-only) |
| 12 | CFG0 | STATUS {2'b0, err, aes_req, done, busy, crypt_sel[1:0]} |
| 13 | CFG1 (5 bits) | CFG1 readback |
CFG0 = {latency_req, src_trust, pac_rate[1:0], length[1:0], dst_port_502, protocol}
CFG1 = {3'b0, power_mode[1:0], anamoly_score[1:0], hw_sup}
crypt_sel: 00 = AES, 01 = SIMON, 10/11 = not applicable / tie (sets ERR).
Write KEY (addr 4-11), PT (addr 0-3), CFG0/CFG1 (addr 12/13) via ui_in + WE. Pulse START. Wait for DONE (uio[7]); read CT from addr 0-3 and STATUS from addr 12. KAT: key 0x1918111009080100, pt 0x65656877 -> ct 0xc69be9bb.
To write a byte: put the data on ui_in, set uio[3:0] to the address and uio[4] (WE) high for one clock.
To read a byte: set uio[3:0] to the address and sample uo_out.
For a run: pulse uio[5] (START) high for at least one clock; DONE (uio[7]) goes high when finished and stays
high until the next START. Set uio[6] (FORCE_SIMON) high to bypass the selector and always run SIMON.
None. A microcontroller (e.g. the RP2040 on the Tiny Tapeout demo board) can drive the register interface; when AES_REQ is set it is expected to run AES-Lite in software.
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 | DIN0 (write data bit 0) | DOUT0 (read data bit 0) | ADDR0 (in) |
| 1 | DIN1 | DOUT1 | ADDR1 (in) |
| 2 | DIN2 | DOUT2 | ADDR2 (in) |
| 3 | DIN3 | DOUT3 | ADDR3 (in) |
| 4 | DIN4 | DOUT4 | WE (in) |
| 5 | DIN5 | DOUT5 | START (in) |
| 6 | DIN6 | DOUT6 | FORCE_SIMON (in) |
| 7 | DIN7 (write data bit 7) | DOUT7 (read data bit 7) | DONE (out) |