ilo@chen_
← Projects
Computer-Aided VLSI System Design · Project 4

IoT data filter

The IoT data filter receives an eight-bit stream and dispatches each block to a function selected at its interface. DES encryption and decryption share the cipher datapath, with a 64-bit key and a 64-bit data word packed into each input block. Two alternating buffers support block assembly while an earlier block is processed. Checksum and sorting modes share the stream interface and publish their results through the same valid output.

Drag to rotate · Scroll to zoom
INPUT AND BANK REGISTERSFUNCTION UNITSOUTPUT SELECTVALID AND BANK CONTROL Input byte8 bits · in_en Bank 0128-bit shift reg Bank 1128-bit shift reg Key + plaintext2 × 64-bit registers DES roundFeistel · subkey CRC window11 bits → 3 bits Insertion chain16 ordered bytes Functionresult Output data128 bits Read-bank muxopposite write bank Byte counterLow four bits Write-bank selecttoggle on byte 16 Valid decodefn_sel + counter Output valid1 bit SUBKEY GENERATIONkey[63:0]PC-1round = 1rotate C, DPC-2Key registerKᵣ · 48 bitsFEISTEL ROUND / ENCRYPT AND DECRYPTIP / state RExpand E⊕S1S2S3S4S5S6S7S88 × (6 bits → 4 bits)P⊕L[31:0]Round stateR feedback to next roundRound 1 uses IP(plaintext). Round 0 swaps halves and feeds the final permutation.INSERTION SORT / SIXTEEN COMPARE–INSERT CELLSSorted byte 0min / maxSorted byte 1min / maxSorted byte 2min / max⋯Sorted byte 15min / maxmin continues right · max feeds the lane register · round 15 captures the packed result and clears the lanesCRC / COMBINATIONAL POLYNOMIAL DIVISION⊕ 1101step 1⊕ 1101step 2⊕ 1101step 3⊕ 1101step 4⊕ 1101step 5⊕ 1101step 6⊕ 1101step 7⊕ 1101step 8Read bank: upper 11 bits → 8 conditional XOR steps → 3-bit remainder feedback
Select the operation

The byte counter advances on enabled input. Sixteen input bytes fill one 128-bit block. In DES and checksum modes, the load selector alternates the two block registers. Sorting consumes bytes directly from the stream.

Encrypt or decrypt

The top level separates each completed block into its key and payload. Permutations, round-key selection, Feistel logic and S-boxes implement DES. The mode input selects encryption or decryption; output combines the key with the transformed 64-bit data.

Carry the polynomial remainder

Checksum mode advances an eleven-bit window containing the running remainder and the next eight bits. The generator polynomial is x³ + x² + 1. Its three-bit remainder is returned on the shared output.

Order a block of bytes

A chain of compare-and-insert elements maintains sorted byte values as inputs arrive. After sixteen bytes, the packed 128-bit result contains the ordered block.

Qualify the result

The operation selector chooses the cipher, checksum or sorted data. The byte counter qualifies valid according to the selected datapath’s schedule.