fixed minor bug in encoder, renamed nrn_hs
This commit is contained in:
parent
921145c450
commit
5e4e905960
@ -460,7 +460,7 @@ namespace tmpl {
|
|||||||
|
|
||||||
// Valid trees
|
// Valid trees
|
||||||
vtree<NxC> vtree_x(.in = x_enc_out, .out = _in_x_v, .supply = supply);
|
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
|
// Buffer func thing
|
||||||
Mx1of2<NxC + NyC> into_buffer;
|
Mx1of2<NxC + NyC> into_buffer;
|
||||||
@ -480,7 +480,7 @@ namespace tmpl {
|
|||||||
* Then performs a 2d handshake out outy then outx.
|
* Then performs a 2d handshake out outy then outx.
|
||||||
*/
|
*/
|
||||||
export
|
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;
|
bool _reset_BX;
|
||||||
BUF_X2 reset_buf(.a = reset_B, .y = _reset_BX, .vdd = supply.vdd, .vss = supply.vss);
|
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
|
// Create handshake grid
|
||||||
pint index;
|
pint index;
|
||||||
neuron_hs_2D neurons[Nx*Ny];
|
nrn_hs_2D neurons[Nx*Ny];
|
||||||
(i:0..Nx-1:
|
(i:0..Nx-1:
|
||||||
(j:0..Ny-1:
|
(j:0..Ny-1:
|
||||||
index = i + j*Nx;
|
index = i + j*Nx;
|
||||||
|
Loading…
Reference in New Issue
Block a user