mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +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
				
			
		
							
								
								
									
										5
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										5
									
								
								Makefile
									
										
									
									
									
								
							|  | @ -1052,9 +1052,10 @@ clean_coverage: | |||
| 	find . -name "*.gcda" -type f -delete | ||||
| 
 | ||||
| coverage_functional: | ||||
| 	rm -rf coverage.info coverage_html | ||||
| 	rm -rf coverage.info coverage2.info coverage_html | ||||
| 	lcov --capture -d backends/functional --no-external -o coverage.info | ||||
| 	genhtml coverage.info --output-directory coverage_html | ||||
| 	lcov --capture -d kernel --include kernel/functional.cc --include kernel/functional.h --include kernel/sexpr.cc --include kernel/sexpr.h --include kernel/compute_graph.h --no-external -o coverage2.info | ||||
| 	genhtml coverage.info coverage2.info --output-directory coverage_html | ||||
| 
 | ||||
| qtcreator: | ||||
| 	echo "$(CXXFLAGS)" | grep -o '\-D[^ ]*' | tr ' ' '\n' | sed 's/-D/#define /' | sed 's/=/ /'> qtcreator.config | ||||
|  |  | |||
|  | @ -71,3 +71,9 @@ def test_smt(cell, parameters, tmp_path, num_steps, rnd): | |||
|     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', '')) | ||||
| 
 | ||||
| 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