mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-11-04 05:19:11 +00:00 
			
		
		
		
	test_cell: don't generate directional shifts with \B_SIGNED=1
This was made an explicit error in e97e33d, "kernel: require \B_SIGNED=0
on $shl, $sshl, $shr, $sshr.".
			
			
This commit is contained in:
		
							parent
							
								
									b822beb1b2
								
							
						
					
					
						commit
						e2cfe57edd
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -264,6 +264,10 @@ static void create_gold_module(RTLIL::Design *design, RTLIL::IdString cell_type,
 | 
			
		|||
		cell->setPort(ID::Y, wire);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (cell_type.in(ID($shl), ID($shr), ID($sshl), ID($sshr))) {
 | 
			
		||||
		cell->parameters[ID::B_SIGNED] = false;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (muxdiv && cell_type.in(ID($div), ID($mod), ID($divfloor), ID($modfloor))) {
 | 
			
		||||
		auto b_not_zero = module->ReduceBool(NEW_ID, cell->getPort(ID::B));
 | 
			
		||||
		auto div_out = module->addWire(NEW_ID, GetSize(cell->getPort(ID::Y)));
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue