mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	Merge pull request #63 from wluker/verilog-backend-mem
Fixed bug in $mem cell verilog code generation.
This commit is contained in:
		
						commit
						42348cddd9
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -903,7 +903,8 @@ bool dump_cell_expr(std::ostream &f, std::string indent, RTLIL::Cell *cell) | ||||||
| 			wr_clk_posedge = cell->parameters["\\WR_CLK_POLARITY"].extract(i).as_bool(); | 			wr_clk_posedge = cell->parameters["\\WR_CLK_POLARITY"].extract(i).as_bool(); | ||||||
| 			// group the wen bits
 | 			// group the wen bits
 | ||||||
| 			last_bit = sig_wr_en.extract(0); | 			last_bit = sig_wr_en.extract(0); | ||||||
| 			lof_wen.append_bit(last_bit); | 			lof_wen = RTLIL::SigSpec(last_bit); | ||||||
|  | 			wen_to_width.clear(); | ||||||
| 			wen_to_width[last_bit] = 0; | 			wen_to_width[last_bit] = 0; | ||||||
| 			for (int j=0; j<width; j++) | 			for (int j=0; j<width; j++) | ||||||
| 			{ | 			{ | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue