mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	Add .sv support to "hierarchy -libdir"
This commit is contained in:
		
							parent
							
								
									315d5e32bf
								
							
						
					
					
						commit
						491c352da7
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -179,6 +179,12 @@ bool expand_module(RTLIL::Design *design, RTLIL::Module *module, bool flag_check
 | 
			
		|||
					goto loaded_module;
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				filename = dir + "/" + RTLIL::unescape_id(cell->type) + ".sv";
 | 
			
		||||
				if (check_file_exists(filename)) {
 | 
			
		||||
					Frontend::frontend_call(design, NULL, filename, "verilog -sv");
 | 
			
		||||
					goto loaded_module;
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				filename = dir + "/" + RTLIL::unescape_id(cell->type) + ".il";
 | 
			
		||||
				if (check_file_exists(filename)) {
 | 
			
		||||
					Frontend::frontend_call(design, NULL, filename, "ilang");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue