next up previous contents
Next: The driver_info class Up: The sig_info Class Previous: sig_info Class Methods

sig_info Class Instantiation

A sig_info<SignalType> is instantiated via the new operator during structural elaboration.

Example:

ENTITY myentity IS
   PORT (clk : IN BIT := '1'; data : INOUT INTEGER := 0);
END myentity;
is transformed to
class L7testlib_E8myentity {
  public:
  signal<L3std_Q8standard_T3bit>     *S3clk;
  signal<L3std_Q8standard_T7integer> *S4data;
  ...
};

// Constructor of the entity class
L7testlib_E8myentity(string iname, map_list &mlist)
{
   S3clk = new sig_info<L3std_Q8standard_T3bit>(
                  iname.push(":clk"), mlist, 
                  L3std_Q8standard_T3bit_INFO, vIN, NULL);
   S3clk->init(bit(1));
   S4data = new sig_info<L3std_Q8standard_T7integer>(
                  iname.set(":data"), mlist,
                  L3std_Q8standard_T7integer_INFO, vINOUT, NULL);
   S4data->init(integer(0));
   ...
};




1998-11-17