Chapter 15:Introduction to Verilog Testbenches Objectives In this section,you will learn about designing a testbench: Creating clocks Including files Strategic use of tasks and concurrent statements Controlling and observing the design Reporting warnings and errors The Simulation Environment This is a simplified picture of the overall simulation environment. This section concentrates on testbench development strategies. Creating Clocks Example 1 You can define the clock in either the design or its testbench. You can define the clock either behaviorally or structurally. Here are examples of a symmetric clock: Creating Clocks Example 2 Here are examples of a symmetric clock with delayed startup: Creating Clocks Example 3 Here are examples of an asymmetric clock with delayed startup: Designing Your Testbench You can make your testbench as simple or as comolex as you want. A comolex testbench would perform response berifivation “on-the-fly”. Using Include Files Use `include files to ensure project-wide consistency of common source. Using Verilog Tasks Use Verilog tasks in your testbench to encapsulate repeated operations. Using Concurrent Statements Use fork-join blocks in your testbench to concurrently activate parallel tasks. Applying Stimulus Some common stimulus application techniques include: In-line stimulus,applied from an initial block Stimulus applied from a loop or always block Stimulus applied from an array of vectors or integers Stimulus that is recorded during one simulation and played back in another simulation In-Line Stimulus In-line stimulus has the following characteristics: You list the variables only when their values change You can easily define complex timing relationships between signals The testbench can become very long for tests of real designs Stimulus From Loops Stimulus applied from a loop has the following characteristics: For each iteration you assign a new stimulus vector The timing relationships between signals are regular in nature
您可能关注的文档
- HAZOP_危险与可操作性分析 高级培训班培训回执.doc
- 洁净室人员净化和物料净化.doc
- 食品检验报告常见问题及改进建议.doc
- 袖珍式激光可吸入粉尘连续测试仪.doc
- 防水卷材持粘性测试解决方案.docx
- 干熄焦气体分析仪在115th干熄焦工程中的运用.docx
- 分析化学 课件-第五章 酸碱滴定法3.ppt
- 生物安全实验室规范gx2.ppt
- 9V万用表叠层电池高效代换电路.pdf
- ACQUITY_PDA_TUV__CN Acquity_UPLC 光电二极管矩阵和可调紫外可见光检测仪 waters.pdf
- 伟明环保-市场前景及投资研究报告-境内业务稳健运行,印尼市场贡献边际增量.pdf
- 桂东县法院系统招聘考试真题2025.pdf
- 贵州省黔南布依族2026年中考三模物理试题及答案.pdf
- 贵州省黔南州2026年中考语文二模试卷附答案.pdf
- 贵州省铜仁市2026年中考语文二模试卷附答案.pdf
- 2026上半年安徽事业单位联考合肥市庐江县招聘36人备考题库及一套完整答案详解.docx
- 贵州省毕节市2026年中考语文一模试卷附答案.pdf
- 贵州省贵阳市南明区2026年中考语文一模试卷附答案.pdf
- 2026上半年安徽事业单位联考合肥市庐江县招聘36人备考题库及一套参考答案详解.docx
- 贵州省贵阳市白云区2026年中考二模物理试题附答案.pdf
原创力文档

文档评论(0)