Fix: dynamique test bench else cond
This commit is contained in:
		| @@ -98,7 +98,6 @@ module tb_risc_v_cpu (); | |||||||
|                 test[instruction_addr][5:0] = reg_number; |                 test[instruction_addr][5:0] = reg_number; | ||||||
|                 test[instruction_addr][37:6] = reg_test_value; |                 test[instruction_addr][37:6] = reg_test_value; | ||||||
|             end else if (test[instruction_addr][43:38] == 6'b111111) begin |             end else if (test[instruction_addr][43:38] == 6'b111111) begin | ||||||
|                 $display ("1"); |  | ||||||
|                 test[instruction_addr][43:38] = reg_number; |                 test[instruction_addr][43:38] = reg_number; | ||||||
|                 test[instruction_addr][75:44] = reg_test_value; |                 test[instruction_addr][75:44] = reg_test_value; | ||||||
|             end else if (test[instruction_addr][81:76] == 6'b111111) begin |             end else if (test[instruction_addr][81:76] == 6'b111111) begin | ||||||
| @@ -142,10 +141,10 @@ module tb_risc_v_cpu (); | |||||||
|                         `assert_no_wait_mem("RUNTIME", curent_addr, test[curent_addr][81:76], test[curent_addr][81:76], risc_v_cpu.memory.memory[test[curent_addr][81:76]]) |                         `assert_no_wait_mem("RUNTIME", curent_addr, test[curent_addr][81:76], test[curent_addr][81:76], risc_v_cpu.memory.memory[test[curent_addr][81:76]]) | ||||||
|                     end |                     end | ||||||
|                 end |                 end | ||||||
|             end |             end else begin | ||||||
|             else |  | ||||||
|                 `next_cycle |                 `next_cycle | ||||||
|             end |             end | ||||||
|  |         end | ||||||
|  |  | ||||||
|         /* Test State After Execution */ |         /* Test State After Execution */ | ||||||
|         code_file_inputs = $fopen("./final_test.tmp", "r"); |         code_file_inputs = $fopen("./final_test.tmp", "r"); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user