addrmap RenesasDA14_XTAL32MRegisters {

addrmap {
    desc = "Generated by RenodeModelsAnalyzer";
    reg {
        name="Start";
        regwidth=0x20;
            field {
                sw = rw;
                reset=8'b1010000;
            } XTAL32M_TRIM[7:0];
            field {
                sw = rw;
                reset=4'b101;
            } XTAL32M_CUR_SET[11:8];
            field {
                sw = rw;
            } XTAL32M_AMPL_SET[14:12];
            field {
                sw = rw;
                reset=2'b10;
            } XTAL32M_CMP_LVL[16:15];
            field {
                sw = rw;
                reset=3'b11;
            } XTAL32M_CMP_BLANK[19:17];
            field {
                sw = rw;
            } XTAL32M_TIMEOUT[25:20];
    } Start @ 0x0;
    reg {
        name="Settle";
        regwidth=0x20;
            field {
                sw = rw;
                reset=8'b10100000;
            } XTAL32M_TRIM[7:0];
            field {
                sw = rw;
                reset=4'b101;
            } XTAL32M_CUR_SET[11:8];
            field {
                sw = rw;
            } XTAL32M_AMPL_SET[14:12];
            field {
                sw = rw;
                reset=2'b1;
            } XTAL32M_CMP_LVL[16:15];
            field {
                sw = rw;
                reset=3'b11;
            } XTAL32M_CMP_BLANK[19:17];
            field {
                sw = rw;
            } XTAL32M_TIMEOUT[25:20];
    } Settle @ 0x4;
    reg {
        name="Trim";
        regwidth=0x20;
            field {
                sw = rw;
                reset=8'b10100000;
            } XTAL32M_TRIM[7:0];
            field {
                sw = rw;
                reset=4'b100;
            } XTAL32M_CUR_SET[11:8];
            field {
                sw = rw;
            } XTAL32M_AMPL_SET[14:12];
            field {
                sw = rw;
                reset=2'b1;
            } XTAL32M_CMP_LVL[16:15];
    } Trim @ 0x8;
    reg {
        name="CapacitanceMeasurement";
        regwidth=0x20;
            field {
                sw = rw;
            } XTAL32M_CAP_SELECT[2:0];
            field {
                sw = rw;
                reset=2'b11;
            } XTAL32M_MEAS_CUR[4:3];
            field {
                sw = rw;
            } XTAL32M_MEAS_START[5:5];
            field {
                sw = rw;
                reset=2'b10;
            } XTAL32M_MEAS_TIME[7:6];
    } CapacitanceMeasurement @ 0xc;
    reg {
        name="StateMachine";
        regwidth=0x20;
            field {
                sw = rw;
            } XTAL32M_CUR_MODE[0:0];
            field {
                sw = rw;
            } XTAL32M_TRIM_MODE[1:1];
            field {
                sw = rw;
            } XTAL32M_CMP_MODE[2:2];
            field {
                sw = rw;
            } XTAL32M_FSM_FORCE_IDLE[3:3];
            field {
                sw = rw;
            } XTAL32M_FSM_APPLY_CONFIG[4:4];
    } StateMachine @ 0x10;
    reg {
        name="Control";
        regwidth=0x20;
            field {
                sw = rw;
                reset=2'b1;
            } XTAL32M_BIAS_SAH[1:0];
            field {
                sw = rw;
                reset=2'b1;
            } XTAL32M_AMPREG_SAH[3:2];
            field {
                sw = rw;
                reset=2'b1;
            } XTAL32M_LDO_SAH[5:4];
            field {
                sw = rw;
            } XTAL32M_BIASPROT[7:6];
            field {
                desc = "This field has the following custom Renode callbacks: Write.";
                sw = rw;
            } XTAL32M_ENABLE[8:8];
    } Control @ 0x14;
    reg {
        name="InterruptControl";
        regwidth=0x20;
            field {
                sw = rw;
                reset=8'b11111111;
            } XTAL32M_IRQ_CNT[7:0];
            field {
                sw = rw;
                reset=1'b1;
            } XTAL32M_IRQ_CLK[8:8];
            field {
                sw = rw;
            } XTAL32M_IRQ_ENABLE[9:9];
            field {
                sw = rw;
                reset=2'b10;
            } XTAL32M_IRQ_CAP_CTRL[11:10];
    } InterruptControl @ 0x18;
    reg {
        name="Status";
        regwidth=0x20;
            field {
                sw = rw;
            } XTAL32M_READY[0:0];
            field {
                desc = "This field has the following custom Renode callbacks: Provider.";
                sw = rw;
            } XTAL32M_STATE[3:1];
            field {
                sw = rw;
            } XTAL32M_CMP_OUT[4:4];
            field {
                sw = w;
                onwrite =  wot;
            } XTAL32M_LDO_OK[5:5];
            field {
                sw = rw;
            } XTAL32M_CUR_SET_STAT[10:6];
            field {
                sw = rw;
            } XTAL32M_TRIM_VAL[18:11];
    } Status @ 0x24;
    reg {
        name="InterruptStatus";
        regwidth=0x20;
            field {
                sw = rw;
            } XTAL32M_IRQ_COUNT_STAT[7:0];
            field {
                sw = rw;
            } XTAL32M_IRQ_COUNT_CAP[15:8];
    } InterruptStatus @ 0x28;
} Registers_addrmap;


};