mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	Use analysis mode if set in file
This commit is contained in:
		
							parent
							
								
									e47cfe277e
								
							
						
					
					
						commit
						a6ec5754c6
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -2717,7 +2717,7 @@ struct VerificPass : public Pass { | ||||||
| 
 | 
 | ||||||
| 		if (GetSize(args) > argidx && (args[argidx] == "-f" || args[argidx] == "-F")) | 		if (GetSize(args) > argidx && (args[argidx] == "-f" || args[argidx] == "-F")) | ||||||
| 		{ | 		{ | ||||||
| 			unsigned verilog_mode = veri_file::VERILOG_95; // default recommended by Verific
 | 			unsigned verilog_mode = veri_file::UNDEFINED; | ||||||
| 			bool is_formal = false; | 			bool is_formal = false; | ||||||
| 			const char* filename = nullptr; | 			const char* filename = nullptr; | ||||||
| 
 | 
 | ||||||
|  | @ -2764,7 +2764,7 @@ struct VerificPass : public Pass { | ||||||
| 			veri_file::DefineMacro("VERIFIC"); | 			veri_file::DefineMacro("VERIFIC"); | ||||||
| 			veri_file::DefineMacro(is_formal ? "FORMAL" : "SYNTHESIS"); | 			veri_file::DefineMacro(is_formal ? "FORMAL" : "SYNTHESIS"); | ||||||
| 
 | 
 | ||||||
| 			if (!veri_file::AnalyzeMultipleFiles(file_names, verilog_mode, work.c_str(), veri_file::MFCU)) { | 			if (!veri_file::AnalyzeMultipleFiles(file_names, analysis_mode, work.c_str(), veri_file::MFCU)) { | ||||||
| 				verific_error_msg.clear(); | 				verific_error_msg.clear(); | ||||||
| 				log_cmd_error("Reading Verilog/SystemVerilog sources failed.\n"); | 				log_cmd_error("Reading Verilog/SystemVerilog sources failed.\n"); | ||||||
| 			} | 			} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue