SystemRDL:Component:Register

Register Example

// Definition of a register
// configReg is a 32-bit wide register
// It has three fields, a, b and c, of widths 16, 12 and 4
// respectively.
reg configReg { regwidth = 32;
    field {} a[15:0]=0;
    field {} b[11:0]=0;
    field {} c[3:0]=0;   
};

// Instantiation of a register
configReg cfgreg;