1addrmap Peripheral { 2 regfile { 3 default regwidth = 32; 4 5 reg { 6 name = "BitFields"; 7 field { 8 name = "FIRST"; 9 sw = r; 10 hw = w; 11 } first [0:0]; 12 field { 13 name = "SECOND"; 14 sw = rw; 15 hw = rw; 16 onwrite = wzc; 17 } second [1:1]; 18 } bit_fields @ 0x0; 19 } registers @ 0x100; 20}; 21