Hardware Modelling Coding Styles - Institute of Computer Engineering
Transcrição
Hardware Modelling Coding Styles - Institute of Computer Engineering
Hardware Modelling: Hardware Description An Overview Martin Delvai Content of this course ¾ Hardware Specification ¾ Functional specification ¾ High level requirements document ¾ Detailed design description ¾ Realisation ¾ Hardware description ¾ Hardware implementation ¾ Verification ¾ Review ¾ Formal verification ¾ Functional verification ECS Group Delvai Hardware Modelling - Folie 2 Hardware Description: Outline Design entry Level of abstraction Schematic entry vs text-based entry One possible method to describe hardware VHDL ECS Group History Motivation Range of application Delvai Y-Diagram (1) Behavior of the chip Components inside the chip Geometry of the chip ECS Group Delvai Y-Diagram (2) System Level Behavior system specification CPU,memory ¾ B: Functionality and constraints ¾ S: Partitioning into subsystems/processes ¾ G: (Motherboard-) Layout ECS Group Structure chips/board Geometry Delvai Y-Diagram (3) Algoritmic Level Behavior processor cores, bus systems algorithms ¾ B: Operations and caclulations ICs/bocks ¾ S: Scheduling and allocation ¾ G: Chip-Layout ECS Group Geometry Delvai Structure Y-Diagram (4) Behavior Register Transfer Level ALU, Reg, MUX register transfer macrocells ¾ B: Finite State Machines ¾ S: Data and control paths ¾ G: Refined chip layout Geometry ECS Group Delvai Structure Y-Diagram (5) Behavior Structure Logic Level boolean equations and, or, flipflop standard-cells ¾ B: Boolean functions ¾ S: Netlist ¾ G: Position of standard cells ECS Group Geometry Delvai Y-Diagram (6) Behavior Structure Circuit Level Differential equations Transistors Mask ¾ B: Differential Equations ¾ S: Transistor network Geometry ¾ G: ASIC Mask ECS Group Delvai Y-Diagram (7) Behavior Structure Chip • The three views describes the same system/chip • The same system/chip can be defined on all levels of abstraction ⇒ Level of detail, information content ECS Group Delvai Geometry Y-Table Behavior Algorithmic Level Logic Level Circuit Level ECS Group while input Read „Schilling“ Calulate Euro Display „Euro“ if A=`1` then B:= B+1 else B:= B end if D = NOT E Speicher I dU dI d2I =R + + L 2 C dt dt dt Delvai IO IN Control Speicher µP 16 8 RAM IO-Ctrl B Translator OUT Register & >1 A PS/2 µP RS232 Interface PS/2 Interface IO-Ctrl A L U R E G Counter E C = (D OR B) AND A CPU C RS232 Counter Register Transfer Level (RTL) Inputs : Keyboard Output: Display Funktion: ..... Geometry ALU System Level Structure INV AND OR Hardware Description Languages System_C UML UDL/I Verilog VHDL Very High Speed Integrated Circuit HDL Graphical Tools/Lang. ABEL ECS Group Delvai History of VHDL VHSIC ... Very High Speed IC VHDL ... VHSIC HDL IEEE ... Institute of Electrical and Electronics Engineers ECS Group Delvai Motivation: Documentation Documentation for : • Complex systems • Maintenance • Reusability • Different levels of abstraction • Readable man-machine interface ECS Group Delvai Motivation: Data exchange Data exchange between: • Orderer and contractor • Developers • Tools • Computing systems ECS Group Delvai Motivation: Complexity (1) Design Productivity Gap 21%/Yr. Productivity growth rate ECS Group Delvai vs. 58%/Yr. Complexity growth rate Motivation: Complexity (2) ECS Group Intel 4004 (1971) Intel P4 (2001) • 2300 Transistors • 12 mm2 / 10µm • 108 kHz • 42 Millionen Transistors • 217 mm2 / 0,18µm • 2 Ghz Delvai Motivation: Complexity (3) Trans. count ratio: 1: 18261 ECS Group Delvai Range application of VHDL Behavior Algorithmic Level while input Testbench Read „Schilling“ Calulate Euro Display „Euro“ (VHDL) if A=`1` then B:= B+1 else B:= B end if D = NOT E Speicher µP 16 Circuit Level I dU dI d2I =R + + L 2 C dt dt dt 8 RAM IO IN IO-Ctrl B Register & >1 A PS/2 µP RS232 Interface PS/2 Interface IO-Ctrl R E G C RS232 Generated by Tools (Synplify, INV AND Synopsys) OR Generated by tools (Quartus, e.g.) Delvai Translator OUT Counter E C = (D OR B) AND A CPU Control VHDL Logic Level ECS Group Speicher A L U Counter Register Transfer Level (RTL) Inputs : Keyboard Output: Display Funktion: ..... Geometry ALU System Level Structure Summary • Hardware can be described from different views: Behavioral, Structural and Geometrical • Hardware can be described on different Levels of Abstraction • VHDL is one approach to describe hardware on RTL and Boolean Level ECS Group Delvai