addrmap PicoRV_SPI {

addrmap {
    desc = "Generated by RenodeModelsAnalyzer";
    reg {
        name="Config1";
        desc = "This register has the following custom Renode callbacks: Write";
        regwidth=0x20;
            field {
                sw = w;
            } data0[0:0];
            field {
                sw = w;
            } data1[1:1];
            field {
                sw = w;
            } data2[2:2];
            field {
                sw = w;
            } data3[3:3];
            field {
                sw = w;
            } clk[4:4];
            field {
                sw = w;
            } cs_n[5:5];
    } Config1 @ 0x0;
    reg {
        name="Config2";
        regwidth=0x20;
            field {
                sw = rw;
            } data0_output_en[0:0];
            field {
                sw = rw;
            } data1_output_en[1:1];
            field {
                sw = rw;
            } data2_output_en[2:2];
            field {
                sw = rw;
            } data3_output_en[3:3];
            field {
                sw = rw;
            } clk_output_en[4:4];
            field {
                sw = rw;
            } cs_output_en[5:5];
    } Config2 @ 0x4;
    reg {
        name="Config3";
        regwidth=0x20;
            field {
                desc = "The field is a Tag.";
                sw = rw;
            } read_latency_dummy_cycles[3:0];
            field {
                desc = "The field is a Tag.";
                sw = rw;
            } CRM_enable[4:4];
            field {
                sw = w;
            } qspi_en[5:5];
            field {
                desc = "The field is a Tag.";
                sw = rw;
            } DDR_enable[6:6];
    } Config3 @ 0x8;
    reg {
        name="Config4";
        regwidth=0x20;
            field {
                sw = rw;
            } memio_en[7:7];
    } Config4 @ 0xc;
    reg {
        name="Stat1";
        regwidth=0x20;
            field {
                desc = "This field has the following custom Renode callbacks: Provider.";
                sw = r;
            } MISO[1:1];
    } Stat1 @ 0x10;
    reg {
        name="Stat2";
        desc = "Could not determine register's width, guessed 8 bits.";
        regwidth=0x8;
            field {
                desc = "This is a dummy r/w field, generated just to show the register in specs";
                sw = rw;
            } DUMMY[7:0];
    } Stat2 @ 0x14;
    reg {
        name="Stat3";
        desc = "Could not determine register's width, guessed 8 bits.";
        regwidth=0x8;
            field {
                desc = "This is a dummy r/w field, generated just to show the register in specs";
                sw = rw;
            } DUMMY[7:0];
    } Stat3 @ 0x18;
    reg {
        name="Stat4";
        desc = "Could not determine register's width, guessed 8 bits.";
        regwidth=0x8;
            field {
                desc = "This is a dummy r/w field, generated just to show the register in specs";
                sw = rw;
            } DUMMY[7:0];
    } Stat4 @ 0x1c;
} Registers_addrmap;


};