mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	Merge remote-tracking branch 'origin/master' into eddie/abc9_refactor
This commit is contained in:
		
						commit
						03ce2c72bb
					
				
					 3 changed files with 16 additions and 3 deletions
				
			
		|  | @ -922,9 +922,9 @@ void AigerReader::post_process() | |||
| 		if (cell->type != "$lut") continue; | ||||
| 		auto y_port = cell->getPort("\\Y").as_bit(); | ||||
| 		if (y_port.wire->width == 1) | ||||
| 			module->rename(cell, stringf("%s$lut", y_port.wire->name.c_str())); | ||||
| 			module->rename(cell, stringf("$lut%s", y_port.wire->name.c_str())); | ||||
| 		else | ||||
| 			module->rename(cell, stringf("%s[%d]$lut", y_port.wire->name.c_str(), y_port.offset)); | ||||
| 			module->rename(cell, stringf("$lut%s[%d]", y_port.wire->name.c_str(), y_port.offset)); | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
|  |  | |||
|  | @ -562,7 +562,7 @@ struct SynthXilinxPass : public ScriptPass | |||
| 				if (active_design->scratchpad.count(k)) | ||||
| 					abc9_opts += stringf(" -W %s", active_design->scratchpad_get_string(k).c_str()); | ||||
| 				else | ||||
| 					abc9_opts += stringf(" -W %s", RTLIL::constpad.at(k).c_str()); | ||||
| 					abc9_opts += stringf(" -W %s", RTLIL::constpad.at(k, RTLIL::constpad.at("synth_xilinx.abc9.xc7.W")).c_str()); | ||||
| 				if (nowidelut) | ||||
| 					abc9_opts += " -lut +/xilinx/abc9_xc7_nowide.lut"; | ||||
| 				else | ||||
|  |  | |||
|  | @ -52,6 +52,7 @@ equiv_opt -assert abc9 -lut 4 | |||
| design -load postopt | ||||
| select -assert-count 2 t:$lut | ||||
| 
 | ||||
| 
 | ||||
| design -reset | ||||
| read_verilog -icells <<EOT | ||||
| module top(input a, b, output o); | ||||
|  | @ -66,3 +67,15 @@ equiv_opt -assert abc9 -lut 4 | |||
| design -load postopt | ||||
| select -assert-count 1 t:$lut | ||||
| select -assert-count 1 t:$_AND_ | ||||
| 
 | ||||
| 
 | ||||
| design -reset | ||||
| read_verilog -icells <<EOT | ||||
| module top(input a, b, output o); | ||||
| assign o = ~(a & b); | ||||
| endmodule | ||||
| EOT | ||||
| abc9 -lut 4 | ||||
| clean | ||||
| select -assert-count 1 t:$lut | ||||
| select -assert-none t:$lut t:* %D | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue