A structural SystemVerilog implementation of a cryptographic processing pipeline deployed on an FPGA. This system features a hardware-accelerated Core Data Encryption Standard (DES) Engine optimized to drive a high-throughput Data Authentication Algorithm (DAA) for cryptographic message authentication.
This suite combines block-cipher hardware encryption with multi-block data integrity verification:
- DES_TOP Core: Processes standalone 64-bit blocks using a 64-bit key structure. It acts as the fundamental cryptographic primitive for our hardware accelerators.
- DAA Core: Automates authentication over wide payload fields by consuming a 256-bit wide data block, processing it under a 64-bit key, and reducing it down to a secure 64-bit Data Authentication Code (DAC) tag.
The layout bridges individual component testing with wide-payload integration:
- Inputs: 64-bit Plaintext block (
DESin), 64-bit Cipher Key (key), 1-bit execution trigger (start). - Outputs: 64-bit Ciphertext block (
DEScipher). - Mechanism: Triggered on a single-clock pulse edge. It drives internal control pipelines to process rounds until the sub-module captures execution completion and asserts
doneDES.
- Inputs: 256-bit wide unstructured data stream (
data), 64-bit Key array (key), 1-bit MasterstartDAAandrsttriggers. - Outputs: 64-bit Secure Message Digest / Authenticator Tag (
DAC). - Mechanism: Operates over a synchronous clock layout. It partitions the massive 256-bit wide frame internally into sequenced processing blocks, feeding intermediate encryption rounds back through the hardware FSM loop until
doneDAAtriggers the valid output packet.
Both blocks include dedicated SystemVerilog testbenches to verify hardware processing before pushing the code to physical FPGA synthesis:
| Module | Signal | Tested Width | Hardcoded Test Vector Value |
| DES Engine | key | 64-bit | 64'h0f1571c947d9e859 |
| | DESin | 64-bit | 64'hda02ce3a89ecac3b |
| DAA Core | key | 64-bit | 64'h0f1571c947d9e859 |
| | data | 256-bit | 256'hfedcba987654321002468aceeca86420 |
When executing the simulation runs within Vivado Simulator or ModelSim, the modules write the following execution transcripts to the console:
DES Top Primitive Log: key[0f1571c947d9e859] DESin[da02ce3a89ecac3b]
DES out: [Calculated 64-bit Ciphertext Value]