没有合适的资源?快使用搜索试试~ 我知道了~
首页Writing Testbenches using SystemVerilog
Writing Testbenches using SystemVerilog
需积分: 9 171 浏览量
更新于2023-05-30
评论 1
收藏 2.03MB PDF 举报
此外,你也可以使用System Verilog来替代testbench,这样效率会更高一些。如果你是做IC验证的,就必须掌握System Verilog和验证方法学(UVM)。
资源详情
资源评论
资源推荐

Writing Testbenches
using SystemVerilog

____________________________
Writing Testbenches
using SystemVerilog
by
Janick Bergeron
Synopsys, Inc.
1 3

Janick Bergeron
Verificationguild.com
Writing Testbenches Using SystemVerilog
Library of Congress Control Number: 2005938214
ISBN-10: 0-387-29221-7 ISBN-10: 0-387-31275-7 (e-book)
ISBN-13: 9780387292212 ISBN-13: 9780387312750 (e-book)
Printed on acid-free paper.
¤ 2006 Springer Science+Business Media, Inc.
All rights reserved. This work may not be translated or copied in whole or in part without
the written permission of the publisher (Springer Science+Business Media, Inc., 233 Spring
Street, New York, NY 10013, USA), except for brief excerpts in connection with reviews or
scholarly analysis. Use in connection with any form of information storage and retrieval,
electronic adaptation, computer software, or by similar or dissimilar methodology now
known or hereafter developed is forbidden.
The use in this publication of trade names, trademarks, service marks and similar terms,
even if they are not identified as such, is not to be taken as an expression of opinion as to
whether or not they are subject to proprietary rights.
Printed in the United States of America.
9 8 7 6 5 4 3 2 1
springer.com

Writing Testbenches using SystemVerilog v
TABLE OF CONTENTS
About the Cover xiii
Preface xv
Why This Book Is Important . . . . . . . . . . . . . . . . . . . xvi
What This Book Is About . . . . . . . . . . . . . . . . . . . . . xvi
What Prior Knowledge You Should Have . . . . . . . . xviii
Reading Paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xviii
Why SystemVerilog? . . . . . . . . . . . . . . . . . . . . . . . . . xix
VHDL and Verilog . . . . . . . . . . . . . . . . . . . . . . . . . . . .xix
Hardware Verification Languages . . . . . . . . . . . . . . . . xx
Code Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxi
For More Information . . . . . . . . . . . . . . . . . . . . . . . xxii
Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . . xxii
CHAPTER 1
What is Verification? 1
What is a Testbench? . . . . . . . . . . . . . . . . . . . . . . . . . . 1
The Importance of Verification . . . . . . . . . . . . . . . . . . 2
Reconvergence Model . . . . . . . . . . . . . . . . . . . . . . . . . 4
The Human Factor . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Automation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Poka-Yoke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

Table of Contents
vi Writing Testbenches using SystemVerilog
Redundancy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
What Is Being Verified? . . . . . . . . . . . . . . . . . . . . . . . 7
Equivalence Checking . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Property Checking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Functional Verification . . . . . . . . . . . . . . . . . . . . . . . . . 10
Functional Verification Approaches . . . . . . . . . . . . . .11
Black-Box Verification . . . . . . . . . . . . . . . . . . . . . . . . . 11
White-Box Verification . . . . . . . . . . . . . . . . . . . . . . . . . 13
Grey-Box Verification . . . . . . . . . . . . . . . . . . . . . . . . . 14
Testing Versus Verification . . . . . . . . . . . . . . . . . . . . 15
Scan-Based Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Design for Verification . . . . . . . . . . . . . . . . . . . . . . . . . 17
Design and Verification Reuse . . . . . . . . . . . . . . . . . 18
Reuse Is About Trust . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Verification for Reuse . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Verification Reuse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
The Cost of Verification . . . . . . . . . . . . . . . . . . . . . . 20
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
CHAPTER 2
Verification Technologies 23
Linting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
The Limitations of Linting Technology . . . . . . . . . . . . . 25
Linting SystemVerilog Source Code . . . . . . . . . . . . . . . 27
Code Reviews . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Stimulus and Response . . . . . . . . . . . . . . . . . . . . . . . . . 30
Event-Driven Simulation . . . . . . . . . . . . . . . . . . . . . . . 31
Cycle-Based Simulation . . . . . . . . . . . . . . . . . . . . . . . . 33
Co-Simulators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Verification Intellectual Property . . . . . . . . . . . . . . . . 38
Waveform Viewers . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Code Coverage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Statement Coverage . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Path Coverage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Expression Coverage . . . . . . . . . . . . . . . . . . . . . . . . . . 45
FSM Coverage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
What Does 100 Percent Code Coverage Mean? . . . . . 48
Functional Coverage . . . . . . . . . . . . . . . . . . . . . . . . . 49
剩余431页未读,继续阅读








安全验证
文档复制为VIP权益,开通VIP直接复制

评论0