ASIC_CFG_SCRATCH
#define ASIC_CFG_SCRATCH_1 (ASIC_CFG_SCRATCH + 0x08)
#define ASIC_CFG_SCRATCH_2 (ASIC_CFG_SCRATCH + 0x10)
#define ASIC_CFG_SCRATCH_3 (ASIC_CFG_SCRATCH + 0x18)
scratch0 = read_csr(dd, ASIC_CFG_SCRATCH);
scratch0 = read_csr(dd, ASIC_CFG_SCRATCH);
write_csr(dd, ASIC_CFG_SCRATCH, scratch0);
(void)read_csr(dd, ASIC_CFG_SCRATCH);
scratch0 = read_csr(dd, ASIC_CFG_SCRATCH);
write_csr(dd, ASIC_CFG_SCRATCH, scratch0 | my_bit);
(void)read_csr(dd, ASIC_CFG_SCRATCH);
scratch0 = read_csr(dd, ASIC_CFG_SCRATCH);
write_csr(dd, ASIC_CFG_SCRATCH, scratch0);
(void)read_csr(dd, ASIC_CFG_SCRATCH);
scratch0 = read_csr(dd, ASIC_CFG_SCRATCH);
scratch0 = read_csr(dd, ASIC_CFG_SCRATCH);
write_csr(dd, ASIC_CFG_SCRATCH, scratch0);
(void)read_csr(dd, ASIC_CFG_SCRATCH);
temp_scratch = read_csr(dd, ASIC_CFG_SCRATCH);
temp_scratch = read_csr(dd, ASIC_CFG_SCRATCH + (8 * i));
temp_scratch = read_csr(dd, ASIC_CFG_SCRATCH);