chip wip
This commit is contained in:
		@@ -118,7 +118,7 @@ defproc chip_texel (bd<N_IN> in, out;
 | 
				
			|||||||
	fifo<N_IN-1,N_BUFFERS> fifo_dmx2reg(.in = _demux.out2, .reset_B = reset_B, .supply = supply);
 | 
						fifo<N_IN-1,N_BUFFERS> fifo_dmx2reg(.in = _demux.out2, .reset_B = reset_B, .supply = supply);
 | 
				
			||||||
	registerA_wr_array<REG_NCA, REG_NCW, REG_M> register(.in = fifo_dmx2reg.out, .data = reg_data,
 | 
						registerA_wr_array<REG_NCA, REG_NCW, REG_M> register(.in = fifo_dmx2reg.out, .data = reg_data,
 | 
				
			||||||
		.supply = supply, .reset_B = reset_B);
 | 
							.supply = supply, .reset_B = reset_B);
 | 
				
			||||||
	fifo<N_IN-2,N_BUFFERS> fifo_reg2mrg(.in = register.out)
 | 
						fifo<N_IN-2,N_BUFFERS> fifo_reg2mrg(.in = register.out, .reset_B = reset_B, .supply = supply);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// TO ADD: nrn/syn mon decoders
 | 
						// TO ADD: nrn/syn mon decoders
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -133,6 +133,8 @@ defproc chip_texel (bd<N_IN> in, out;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Neurons + encoder
 | 
						// Neurons + encoder
 | 
				
			||||||
 | 
					    pbool NC_NRN;
 | 
				
			||||||
 | 
					    NC_NRN = NC_NRN_X + NC_NRN_Y;
 | 
				
			||||||
	nrn_hs_2D_array<N_NRN_X,N_NRN_Y,N_LINE_PD_DLY> nrn_grid(.in = neurons,
 | 
						nrn_hs_2D_array<N_NRN_X,N_NRN_Y,N_LINE_PD_DLY> nrn_grid(.in = neurons,
 | 
				
			||||||
		.supply = supply, .reset_B = reset_B);
 | 
							.supply = supply, .reset_B = reset_B);
 | 
				
			||||||
	encoder2D<NC_NRN_X, NC_NRN_Y, N_NRN_X, N_NRN_Y, 16> encoder(
 | 
						encoder2D<NC_NRN_X, NC_NRN_Y, N_NRN_X, N_NRN_Y, 16> encoder(
 | 
				
			||||||
@@ -140,10 +142,14 @@ defproc chip_texel (bd<N_IN> in, out;
 | 
				
			|||||||
		.iny = nrn_grid.outy,
 | 
							.iny = nrn_grid.outy,
 | 
				
			||||||
		.reset_B = reset_B, .supply = supply
 | 
							.reset_B = reset_B, .supply = supply
 | 
				
			||||||
		)
 | 
							)
 | 
				
			||||||
	fifo<NC_NRN_X + NC_NRN_Y, N_BUFFERS> fifo_enc2mrg(.in = encoder.out,
 | 
						fifo<NC_NRN, N_BUFFERS> fifo_enc2mrg(.in = encoder.out,
 | 
				
			||||||
		.reset_B = reset_B, .supply = supply);
 | 
							.reset_B = reset_B, .supply = supply);
 | 
				
			||||||
 | 
					    append<NC_NRN, N_IN-NC_NRN,0> append_enc(.in = fifo_enc2mrg.in, )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    // Merge
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    merge<> merge_enc8reg
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user