| Login | | Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name. | |
| Who's Online | There are currently, 54 guest(s) and 0 member(s) that are online.
You are Anonymous user. You can register for free by clicking here | |
 | |
Category: Main/Utilities/SystemVerilog
Sort Downloads by: Title (A\D) Date (A\D) Rating (A\D) Popularity (A\D) Resources currently sorted by: Popularity (Most to Least Hits)
Region class for SystemVerilog Description: Region class for use with SystemVerilog
INTRODUCTION:
The OpenVera region is not supported in SystemVerilog, so this class
is provided as a substitute. Compile this class along with the rest
of the testbench.
INITIALIZATION:
The following code creates a single region:
int regionID;
regionID = alloc(REGION, 0, 1);
The equivalent code in SystemVerilog is:
Region regionID;
regionID = new(); // No name given
A name can be passed to new() for use in the display task.
USAGE:
Use a region to reserve a value, blocking if in use:
region_enter(WAIT, regionID, value); // Vera
and
regionID.region_enter(Region::WAIT, value); // SystemVerilog
Use a region to reserve a value, checking status:
status = region_enter(NO_WAIT, regionID, value); // Vera
and
regionID.region_enter(Region::NO_WAIT, value); // SystemVerilog
Leave a region:
region_exit(regionID, value); // Vera
and
regionID.region_exit(value); // SystemVerilog
Display the currently reserved value:
regionID.display(); // Only in SystemVerilog
Version: Filesize: 0 bytes Added on: 27-Feb-2006 Downloads: 2345 HomePage | Rate Resource | Details
RegWorks(TM) Spec2Reg Description: The RegWorks(TM) is a set of tools intended to automate the process of register class creation directly from the design specification. It can also be used with other third party tools such as Synopsys RAL or equivalent. Version: 1.0 Filesize: 32 bytes Added on: 16-Nov-2009 Downloads: 984 HomePage | Rate Resource | Details
|
|
|
| | |