mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 13:29:12 +00:00 
			
		
		
		
	Improve "read_verilog -dump_vlog[12]" handling of upto ranges
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
		
							parent
							
								
									9b0e7af6d7
								
							
						
					
					
						commit
						da42f10765
					
				
					 1 changed files with 6 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -431,9 +431,12 @@ void AstNode::dumpVlog(FILE *f, std::string indent) const
 | 
			
		|||
		break;
 | 
			
		||||
 | 
			
		||||
	case AST_RANGE:
 | 
			
		||||
		if (range_valid)
 | 
			
		||||
		if (range_valid) {
 | 
			
		||||
			if (range_swapped)
 | 
			
		||||
				fprintf(f, "[%d:%d]", range_right, range_left);
 | 
			
		||||
			else
 | 
			
		||||
				fprintf(f, "[%d:%d]", range_left, range_right);
 | 
			
		||||
		else {
 | 
			
		||||
		} else {
 | 
			
		||||
			for (auto child : children) {
 | 
			
		||||
				fprintf(f, "%c", first ? '[' : ':');
 | 
			
		||||
				child->dumpVlog(f, "");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue