280 likes | 392 Views
Presentation #5: Rijndael Encryption. Team W1 Design Manager: Rebecca Miller 1. Bobby Colyer (W11) 2. Jeffrey Kuo (W12) 3. Myron Kwai (W13) 4. Shirlene Lim (W14). Stage IV : February 18 h 2004 COMPONENT LAYOUT. Overall Project Objective: Implement the new AES Rijndael algorithm on chip.
E N D
Presentation #5: Rijndael Encryption Team W1Design Manager: Rebecca Miller1. Bobby Colyer (W11)2. Jeffrey Kuo (W12)3. Myron Kwai (W13)4. Shirlene Lim (W14) Stage IV: February 18h 2004 COMPONENT LAYOUT Overall Project Objective: Implement the new AES Rijndael algorithm on chip 18-525 Integrated Circuit Design Project
Status • Design Proposal • Architecture Proposal • Size Estimates/Floorplan • Gate Level Design • Schematic Design (Fixed) • Input/Output Logic to SBOX Changed and Tested • Top Level Schematic Verified • Component Layout (90% Done) • To be Done • Simulations/Optimizations • Everything else… 18-525 Integrated Circuit Design Project
Design Decisions & Problems • DECISIONS • Change Verilog to match newer input control logic to SBOX • Control Logic will be made of PMOS, can’t be done in Verilog • Implemented clock divider using counters • Added 3rd SBOX • Removed 5 Rounds of Encryption • PROBLEMS • New SBOX logic and reduced pipeline implementation into Verilog • Accidentally left SBOX lookup in FinalTextOut, looked into ROM twice • Logic In into the SBOX • Tree Structure – Not so nice in layout • Schematic Simulation yields correct output, but timing issues are causing problems in the pipeline 18-525 Integrated Circuit Design Project
OLD FLOORPLAN 18-525 Integrated Circuit Design Project
ADDED SBOX #3 • Previous design inefficient for small text • Makes Sense to Give Round Key Generation its own SBOX • But increased transistor count drastically to ~45k • The logic and muxes are HUGE 18-525 Integrated Circuit Design Project
ELIMINATION • Eliminate 5 rounds • Eliminate 1 SBOX & control logic • Reduce transistor count to 27k 18-525 Integrated Circuit Design Project
New Schematic (5 Rounds) Mux used in both In and Out logic, moved outside and shared Mux used in both In and Out logic, moved outside and shared
FUNCTIONAL MODEL OF ROM module logicandsbox (Out, In); output [7:0] Out; input [7:0] In; reg [7:0] Out; always @(In) case(In) // synopsys full_case parallel_case 8'h00: Out=8'h63; 8'h01: Out=8'h7c; 8'h02: Out=8'h77; 8'h03: Out=8'h7b; 8'h04: Out=8'hf2; 8'h05: Out=8'h6b; 8'h06: Out=8'h6f; 8'h07: Out=8'hc5; 8'h08: Out=8'h30; 8'h09: Out=8'h01; 8'h0a: Out=8'h67; 8'h0b: Out=8'h2b; 8'h0c: Out=8'hfe; 8'h0d: Out=8'hd7; 8'h0e: Out=8'hab; Case Statements 18-525 Integrated Circuit Design Project
Floorplan 345 um x 325 um Key Expand no pipe ROM and Control In Logic & Out Logic Key Expand Text & Key Output Round Permutations In Logic & Out Logic ROM and Control 18-525 Integrated Circuit Design Project
ROM Schematic 18-525 Integrated Circuit Design Project
ROM Control with PMOS 18-525 Integrated Circuit Design Project
ROM and Control Logic Control Logic ROM Control Logic 18-525 Integrated Circuit Design Project
Round Permutation 18-525 Integrated Circuit Design Project
Key Expand 18-525 Integrated Circuit Design Project
Key Expand Layout 18-525 Integrated Circuit Design Project
Previous Logic 8 x Mux5 SBox Mux Tree In-Logic 18-525 Integrated Circuit Design Project
Current Logic SBox Mux Tree In-Logic 18-525 Integrated Circuit Design Project
Current Logic SBox Mux Tree In-Logic • Tree Structure Difficult to Implement in Layout • Need to finalize wiring from other modules in order to be more efficient in arranging in-logic 18-525 Integrated Circuit Design Project
SBox Mux Tree Out-Logic 18-525 Integrated Circuit Design Project
Schematic Simulation Results e0 34 e7 8b 18-525 Integrated Circuit Design Project
Schematic Simulation Results 18-525 Integrated Circuit Design Project
PREVIOUS AREA ESTIMATE 18-525 Integrated Circuit Design Project
CURRENT AREA DIMENSIONS Total: 345 um x 325 um (taken from current floorplan) 18-525 Integrated Circuit Design Project
Previous PROBLEMATIC Transistor Count(Assuming 32-bit Implementation) • Clock Divider 165 • Add Round Key 256 • Valid Out DFFs (10) 266 • SBoxMuxTreeIn (3) 7008 • SBoxMuxTreeOut(3) 11976 • ROM (3) 7644 • Key Expansion (10) 3840 • Round Permutation (9) 11952 • Final Text Out 256 Total: 47523 Total with Buffer Estimate (10%) 52275 Changing the ROM Control to PMOS 47211 18-525 Integrated Circuit Design Project
Current Transistor Count with 5 Rounds of Encryption (Assuming 32-bit Implementation) • Clock Divider 165 • Add Round Key 256 • Valid Out DFFs (5) 136 • SBoxMuxTreeIn (Text) 2336 • SBoxMuxTreeIn (Key) 1056 • SBoxMuxTreeOut (Text) 3992 • SBoxMuxTreeOut (Key) 2038 • ROM with New Control Logic (3) 7332 • Key Expansion (5) 1920 • Round Permutation (4) 5312 • Final Text Out 256 Total: 24799 Total with Buffer Estimate (10%) 27278 18-525 Integrated Circuit Design Project
Alternative ImplementationsTransistor Count(Assuming 32-bit Implementation) • Current ~52,275 • Minus 1 SBOX & Logic ~37,985 • Minus 5 rounds & 1 SBOX and logic ~27,278 18-525 Integrated Circuit Design Project
Questions?Answers??? 18-525 Integrated Circuit Design Project