mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Fix some synth_* help messages
Mostly memory_libmap arg checks; puts the checks into an else block on the `if (help_mode)` check to avoid cases like `synth_ice40` listing `-no-auto-huge [-no-auto-huge]`. Also fix `map_iopad` section being empty in `synth_fabulous`.
This commit is contained in:
		
							parent
							
								
									3eeefd23e3
								
							
						
					
					
						commit
						ff10aeebd6
					
				
					 8 changed files with 45 additions and 29 deletions
				
			
		|  | @ -353,12 +353,14 @@ struct SynthIce40Pass : public ScriptPass | |||
| 		if (check_label("map_ram")) | ||||
| 		{ | ||||
| 			std::string args = ""; | ||||
| 			if (!spram) | ||||
| 				args += " -no-auto-huge"; | ||||
| 			if (nobram) | ||||
| 				args += " -no-auto-block"; | ||||
| 			if (help_mode) | ||||
| 				args += " [-no-auto-huge] [-no-auto-block]"; | ||||
| 			else { | ||||
| 				if (!spram) | ||||
| 					args += " -no-auto-huge"; | ||||
| 				if (nobram) | ||||
| 					args += " -no-auto-block"; | ||||
| 			} | ||||
| 			run("memory_libmap -lib +/ice40/brams.txt -lib +/ice40/spram.txt" + args, "(-no-auto-huge unless -spram, -no-auto-block if -nobram)"); | ||||
| 			run("techmap -map +/ice40/brams_map.v -map +/ice40/spram_map.v"); | ||||
| 			run("ice40_braminit"); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue