예제 #1
0
 def run_phase(self):
     for _ in range(cfg.num_of_tests):
         cfg.randomize()
         gen_config_table()
         asm = riscv_asm_program_gen()
         riscv_instr.create_instr_list(cfg)
         if cfg.asm_test_suffix != "":
             self.asm_file_name = "{}.{}".format(self.asm_file_name,
                                                 cfg.asm_test_suffix)
         test_name = "{}_{}.S".format(self.asm_file_name,
                                      _ + self.start_idx)
         asm.get_directed_instr_stream()
         asm.gen_program()
         asm.gen_test_file(test_name)
예제 #2
0
 def randomize_cfg(self):
     cfg.randomize()
     logging.info("riscv_instr_gen_config is randomized")
     gen_config_table()
예제 #3
0
 def randomize_cfg(self):
     cfg.instr_cnt = 10000
     cfg.num_of_sub_program = 5
     cfg.randomize()
     logging.info("riscv_instr_gen_config is randomized")
     gen_config_table()