mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	Merge pull request #1139 from YosysHQ/dave/check-sim-iverilog
tests: Check that Icarus can parse arch sim models
This commit is contained in:
		
						commit
						c4c39e9814
					
				
					 2 changed files with 19 additions and 0 deletions
				
			
		
							
								
								
									
										1
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								Makefile
									
										
									
									
									
								
							|  | @ -681,6 +681,7 @@ test: $(TARGETS) $(EXTRA_TARGETS) | ||||||
| 	+cd tests/svinterfaces && bash run-test.sh $(SEEDOPT) | 	+cd tests/svinterfaces && bash run-test.sh $(SEEDOPT) | ||||||
| 	+cd tests/opt && bash run-test.sh | 	+cd tests/opt && bash run-test.sh | ||||||
| 	+cd tests/aiger && bash run-test.sh | 	+cd tests/aiger && bash run-test.sh | ||||||
|  | 	+cd tests/arch && bash run-test.sh | ||||||
| 	@echo "" | 	@echo "" | ||||||
| 	@echo "  Passed \"make test\"." | 	@echo "  Passed \"make test\"." | ||||||
| 	@echo "" | 	@echo "" | ||||||
|  |  | ||||||
							
								
								
									
										18
									
								
								tests/arch/run-test.sh
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										18
									
								
								tests/arch/run-test.sh
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,18 @@ | ||||||
|  | #!/bin/bash | ||||||
|  | 
 | ||||||
|  | set -e | ||||||
|  | 
 | ||||||
|  | echo "Running syntax check on arch sim models" | ||||||
|  | for arch in ../../techlibs/*; do | ||||||
|  | 	find $arch -name cells_sim.v | while read path; do | ||||||
|  | 		echo -n "Test $path ->" | ||||||
|  | 		iverilog -t null -I$arch $path | ||||||
|  | 		echo " ok" | ||||||
|  | 	done | ||||||
|  | done | ||||||
|  | 
 | ||||||
|  | for path in "../../techlibs/common/simcells.v"  "../../techlibs/common/simlib.v"; do | ||||||
|  | 	echo -n "Test $path ->" | ||||||
|  | 	iverilog -t null $path | ||||||
|  | 	echo " ok" | ||||||
|  | done | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue