added keeps to output AMZO lines

This commit is contained in:
alexmadison 2022-04-25 12:20:00 +02:00
parent 28823c4bca
commit b25b403ed4
1 changed files with 14 additions and 2 deletions

View File

@ -219,6 +219,7 @@ defproc texel_core (avMx1of2<N_IN> in, out;
// Create TBUFs for each synapse column, // Create TBUFs for each synapse column,
// ctrl wired to mon line (first in each 4). // ctrl wired to mon line (first in each 4).
TBUF_X4 syn_x_AMZI_tbuf[N_SYN_X * N_MON_AMZO_PER_SYN]; TBUF_X4 syn_x_AMZI_tbuf[N_SYN_X * N_MON_AMZO_PER_SYN];
KEEP syn_AMZO_keeps[N_MON_AMZO_PER_SYN];
sigbuf_boolarray<N_MON_AMZO_PER_SYN, 40> syn_mon_AMZO_sb(.out = syn_mon_AMZO, .supply = supply); sigbuf_boolarray<N_MON_AMZO_PER_SYN, 40> syn_mon_AMZO_sb(.out = syn_mon_AMZO, .supply = supply);
(j:N_MON_AMZO_PER_SYN: (j:N_MON_AMZO_PER_SYN:
(i:N_SYN_X: (i:N_SYN_X:
@ -227,12 +228,18 @@ defproc texel_core (avMx1of2<N_IN> in, out;
syn_x_AMZI_tbuf[index].en = syn_mon_x[i*4]; syn_x_AMZI_tbuf[index].en = syn_mon_x[i*4];
syn_x_AMZI_tbuf[index].y = syn_mon_AMZO_sb.in[j]; syn_x_AMZI_tbuf[index].y = syn_mon_AMZO_sb.in[j];
) )
syn_AMZO_keeps[j].y = syn_mon_AMZO_sb.in[j];
syn_AMZO_keeps[j].vdd = supply.vdd;
syn_AMZO_keeps[j].vss = supply.vss;
) )
// Create TBUFs for each neuron column, // Create TBUFs for each neuron column, and add keeps.
// ctrl wired to mon line (first in each 4). // ctrl wired to mon line (first in each 4).
TBUF_X4 nrn_x_AMZI_tbuf[N_NRN_X * N_MON_AMZO_PER_NRN]; TBUF_X4 nrn_x_AMZI_tbuf[N_NRN_X * N_MON_AMZO_PER_NRN];
KEEP nrn_AMZO_keeps[N_MON_AMZO_PER_NRN];
sigbuf_boolarray<N_MON_AMZO_PER_NRN, 40> nrn_mon_AMZO_sb(.out = nrn_mon_AMZO, .supply = supply); sigbuf_boolarray<N_MON_AMZO_PER_NRN, 40> nrn_mon_AMZO_sb(.out = nrn_mon_AMZO, .supply = supply);
(j:N_MON_AMZO_PER_NRN: (j:N_MON_AMZO_PER_NRN:
(i:N_NRN_X: (i:N_NRN_X:
@ -241,6 +248,11 @@ defproc texel_core (avMx1of2<N_IN> in, out;
nrn_x_AMZI_tbuf[index].en = nrn_mon_x[i*2]; nrn_x_AMZI_tbuf[index].en = nrn_mon_x[i*2];
nrn_x_AMZI_tbuf[index].y = nrn_mon_AMZO_sb.in[j]; nrn_x_AMZI_tbuf[index].y = nrn_mon_AMZO_sb.in[j];
) )
nrn_AMZO_keeps[j].y = nrn_mon_AMZO_sb.in[j];
nrn_AMZO_keeps[j].vdd = supply.vdd;
nrn_AMZO_keeps[j].vss = supply.vss;
) )
// Create NON buffered signals from register to nrns. // Create NON buffered signals from register to nrns.