TestBencher Pro and Reactive Test Bench Help

Chapter 6: Classes, Variables, and Files

Chapter 6: Classes, Variables, and Files

Previous topic Next topic  

Chapter 6: Classes, Variables, and Files

Previous topic Next topic  

Both TestBencher Pro and Reactive Test Bench support diagram-level variables, which allow data to be passed to different objects within the timing diagram, and diagram-level classes, which can be called from the transaction code to perform algorithmic functions that are not easy to define graphically. TestBencher Pro also supports project-level variables and classes so that data and algorithms can be shared by different transactions within the project.

tb_classes_variables_75

During simulation, random number generators can drive the values for variables. The Constraints dialog is used to define limits of the random number generation for random variables. A variable can also be used to read from or write to ASCII text files.

Test Bencher Pro also supports Class Libraries, which can be shared between different projects (see Section 9.1: Sub-Projects). These libraries are used to define various protocols or commonly used classes. This prevents the need to duplicate class definitions for use with multiple projects. Once a Class Library is included in a project, all of the classes that are defined in the library are considered local to the project.