diff options
Diffstat (limited to 'gentestvec')
-rw-r--r-- | gentestvec/gentestvec_register_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gentestvec/gentestvec_register_file.c b/gentestvec/gentestvec_register_file.c index 2533772..a9ff1c5 100644 --- a/gentestvec/gentestvec_register_file.c +++ b/gentestvec/gentestvec_register_file.c @@ -14,9 +14,9 @@ void write_reg(uint32_t addr, uint32_t data, bool we) { void test(uint32_t addr_rs0, uint32_t addr_rs1, uint32_t addr_rd2, uint32_t data_rd2, bool we) { - write_reg(addr_rd2, data_rd2, we); uint32_t data_rs0 = read_reg(addr_rs0); uint32_t data_rs1 = read_reg(addr_rs1); + write_reg(addr_rd2, data_rd2, we); printf("%08X_%08X__%08X_%08X__%08X_%08X_%01X\n", addr_rs0, data_rs0, addr_rs1, data_rs1, addr_rd2, data_rd2, we); } @@ -43,6 +43,6 @@ int main(int argc, const char *argv[]) { for (int i = 0; i < 32; ++i) test(i, i, i, 0xffffffff, true); - tests(1000); + tests(10000); return 0; } |