Chap. 2 Hierarchical Modeling Concepts
2 Hierarchical Modeling Concepts Design Methodologies 4-bit Ripple Carry Counter Modules Instances Components of a Simulation Example Summary
3 Design Methodology Top-down design methodology Define the final (top) module Analyze the components which are composed of top module step by step Bottom-up design methodology Design the basic components Assemble basic components to larger design until the top design is completed
4 Top-down Design Methodology
5 Bottom-up Design Methodology
6 Hierarchical Modeling Concepts Design Methodologies 4-bit Ripple Carry Counter Modules Instances Components of a Simulation Example Summary
7 4-bit Ripple Carry Counter
8 Hierarchy of 4-bit Ripple Carry Counter Top-down Bottom-up
9 Basic Component: T Flip-Flop
10 Hierarchical Modeling Concepts Design Methodologies 4-bit Ripple Carry Counter Modules Instances Components of a Simulation Example Summary
11 Modules Basic component in Verilog for describing/defining a hardware module ( ); … … endmodule
12 A module for T F.F. module T_FF (q, clock, reset); … … endmodule
13 Levels of functionality Behavioral (algorithmic) level Dataflow level Gate level Switch level
14 Hierarchical Modeling Concepts Design Methodologies 4-bit Ripple Carry Counter Modules Instances Components of a Simulation Example Summary
15 Instances Individual object of module Module is similar to “function declaration” in C, and instance likes the concept of “function call” Instantiation A procedure of constructing an instance using module
16 Instances and Instantiation - I Instantiation Instances tff0, tff1, tff2, tff3
17 Instances and Instantiation - II
18 Illegal Module Declaration (Nested module)
19 Hierarchical Modeling Concepts Design Methodologies 4-bit Ripple Carry Counter Modules Instances Components of a Simulation Example Summary
20 Components of a Simulation Design Under Test (DUT) - Design Block Test bench - Stimulus Block Stimulus generation Output checking
21 Instantiate a design under test (dut). Stimulus Block - I
22 Additional top module instantiating stimulus and design block. Stimulus Block - II
23 Hierarchical Modeling Concepts Design Methodologies 4-bit Ripple Carry Counter Modules Instances Components of a Simulation Example Summary
24 A Complete Example of 4-bit Ripple Carry Counter
25 T Flip-Flop
26 D Flip-Flop
27 Stimulus and Output Waves
28 Stimulus Block (Testbench)
29 Simulation results
30 Hierarchical Modeling Concepts Design Methodologies 4-bit Ripple Carry Counter Modules Instances Components of a Simulation Example Summary
31 Summary Top-down v.s bottom-up design methodologies Module is basic construction block in Verilog Instance is individual object created by module A simulation consists of two components: Design Block and Stimulus Block