mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	passes: show: Label signed_suffix flag
To make it easier to follow what's going on. Signed-off-by: Martin Povišer <povik@cutebit.org>
This commit is contained in:
		
							parent
							
								
									13700e12e5
								
							
						
					
					
						commit
						5848790835
					
				
					 1 changed files with 6 additions and 3 deletions
				
			
		|  | @ -431,10 +431,13 @@ struct ShowWorker | |||
| 
 | ||||
| 			std::string label_string = "{{"; | ||||
| 
 | ||||
| 			for (auto &p : in_ports) | ||||
| 			for (auto &p : in_ports) { | ||||
| 				bool signed_suffix = genSignedLabels && cell->hasParam(p.str() + "_SIGNED") | ||||
| 									 && cell->getParam(p.str() + "_SIGNED").as_bool(); | ||||
| 
 | ||||
| 				label_string += stringf("<p%d> %s%s|", id2num(p), escape(p.str()), | ||||
| 						genSignedLabels && cell->hasParam(p.str() + "_SIGNED") && | ||||
| 						cell->getParam(p.str() + "_SIGNED").as_bool() ? "*" : ""); | ||||
| 										signed_suffix ? "*" : ""); | ||||
| 			} | ||||
| 			if (label_string[label_string.size()-1] == '|') | ||||
| 				label_string = label_string.substr(0, label_string.size()-1); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue