mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-30 19:22:31 +00:00 
			
		
		
		
	functional backend: add test to verify test_generic
This commit is contained in:
		
							parent
							
								
									4eeb8d326a
								
							
						
					
					
						commit
						2b8db94aa0
					
				
					 2 changed files with 10 additions and 3 deletions
				
			
		|  | @ -70,4 +70,10 @@ def test_smt(cell, parameters, tmp_path, num_steps, rnd): | |||
|     yosys(f"read_rtlil {quote(rtlil_file)} ; clk2fflogic ; write_functional_smt2 {quote(smt_file)}") | ||||
|     run(['z3', smt_file]) # check if output is valid smtlib before continuing | ||||
|     smt_vcd.simulate_smt(smt_file, vcd_functional_file, num_steps, rnd(cell.name + "-smt")) | ||||
|     yosys_sim(rtlil_file, vcd_functional_file, vcd_yosys_sim_file, getattr(cell, 'sim_preprocessing', '')) | ||||
|     yosys_sim(rtlil_file, vcd_functional_file, vcd_yosys_sim_file, getattr(cell, 'sim_preprocessing', '')) | ||||
| 
 | ||||
| def test_print_graph(tmp_path): | ||||
|     tb_file = base_path / 'tests/functional/picorv32_tb.v' | ||||
|     cpu_file = base_path / 'tests/functional/picorv32.v' | ||||
|     # currently we only check that we can print the graph without getting an error, not that it prints anything sensibl | ||||
|     yosys(f"read_verilog {quote(tb_file)} {quote(cpu_file)}; prep -top gold; flatten; clk2fflogic; test_generic") | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue