Class Vpi::Handle
In: lib/ruby-vpi/vpi.rb
Parent: Object

An object inside a Verilog simulation (see vpiHandle in IEEE Std. 1364-2005).

  • VPI types and properties listed in ext/vpi_user.h can be specified by their names (strings or symbols) or integer constants.
    • example names:
      • "intVal"
      • :intVal
      • "vpiIntVal"
      • :vpiIntVal
      • "VpiIntVal"
      • :VpiIntVal
    • example constants:
      • VpiIntVal
      • VpiModule
      • VpiReg

Methods

[]   get_value   get_value_wrapper   inspect   method_missing   negedge?   posedge?   put_value   to_s   x!   x?   z!   z?  

Included Modules

Vpi

Constants

Property = Struct.new :type, :name, :operation, :accessor, :assignment

Public Instance methods

Returns an array of child handles of the given types (name or integer constant).

Reads the value using the given format (name or integer constant) and returns it. If a format is not given, then the Verilog simulator will attempt to determine the correct format.

Reads the value using the given format (integer constant) and returns a S_vpi_value object.

Inspects the given VPI property names, in addition to those common to all handles.

Provides access to this handle’s

  1. child handles
  2. VPI properties

through method calls. In the case that a child handle has the same name as a VPI property, the child handle will be accessed instead of the VPI property. However, you can still access the VPI property via get_value and put_value.

Tests if the logic value of this handle is currently at a negative edge.

Tests if the logic value of this handle is currently at a positive edge.

Writes the given value using the given format (name or integer constant), time, and delay, and then returns the given value. If a format is not given, then the Verilog simulator will attempt to determine the correct format.

to_s(*aPropNames)

Alias for inspect

Sets the logic value of this handle to unknown (x).

Tests if the logic value of this handle is unknown (x).

Sets the logic value of this handle to high impedance (z).

Tests if the logic value of this handle is high impedance (z).

[Validate]