fixed minor bug in encoder, renamed nrn_hs

This commit is contained in:
alexmadison 2022-03-29 15:42:54 +02:00
parent 921145c450
commit 5e4e905960
1 changed files with 3 additions and 3 deletions

View File

@ -460,7 +460,7 @@ namespace tmpl {
// Valid trees
vtree<NxC> vtree_x(.in = x_enc_out, .out = _in_x_v, .supply = supply);
vtree<NxC> vtree_y(.in = y_enc_out, .out = _in_y_v, .supply = supply);
vtree<NyC> vtree_y(.in = y_enc_out, .out = _in_y_v, .supply = supply);
// Buffer func thing
Mx1of2<NxC + NyC> into_buffer;
@ -480,7 +480,7 @@ namespace tmpl {
* Then performs a 2d handshake out outy then outx.
*/
export
defproc neuron_hs_2D(a1of1 in; a1of1 outx; a1of1 outy; power supply; bool reset_B) {
defproc nrn_hs_2D(a1of1 in; a1of1 outx; a1of1 outy; power supply; bool reset_B) {
bool _reset_BX;
BUF_X2 reset_buf(.a = reset_B, .y = _reset_BX, .vdd = supply.vdd, .vss = supply.vss);
@ -592,7 +592,7 @@ namespace tmpl {
// Create handshake grid
pint index;
neuron_hs_2D neurons[Nx*Ny];
nrn_hs_2D neurons[Nx*Ny];
(i:0..Nx-1:
(j:0..Ny-1:
index = i + j*Nx;