Previous Section Next Section

5.8 Do-Not-Generate Fields

All fields within the sys hierarchy are generated by Specman Elite. However, if certain fields are going to be generated or collected procedurally later in the simulation, they should not be generated. One can inhibit the generation of such fields by prefixing these fields with a ! symbol. Example 5-10 shows an example of do-not-generate fields.

Example 5-10 Do-Not-Generate Fields
Example shows the specification of do-not-generate fields.
<'
struct cell {
    len: uint(bits:8); //Field len will be generated if
                       //cell instance is generated.
};

struct port {
     !cell_inst: cell; //Instantiate the cell but do not generate
     !count: uint; //Define field count, but do not generate value
};
'>
Previous Section Next Section