adjusted pull up channel names
This commit is contained in:
@@ -390,8 +390,7 @@ defproc decoder_2d_hs (avMx1of2<NxC+NyC> in; a1of1 out[Nx*Ny]; bool? reset_B; po
|
||||
export template<pint Nx, Ny>
|
||||
defproc decoder_2d_synapse_hs (bool? in_req_x[Nx], in_req_y[Ny]; a1of1 synapses[Nx*Ny];
|
||||
bool out_ackB_decoder[Nx];
|
||||
bool in_ackB_pullups[Nx];
|
||||
bool out_req_x_pullups[Nx];
|
||||
a1of1 to_pu[Nx];
|
||||
power supply) {
|
||||
|
||||
|
||||
@@ -415,10 +414,10 @@ defproc decoder_2d_synapse_hs (bool? in_req_x[Nx], in_req_y[Ny]; a1of1 synapses[
|
||||
)
|
||||
|
||||
// Connect the ackB lines together
|
||||
(i:Nx: out_ackB_decoder[i] = in_ackB_pullups[i];)
|
||||
(i:Nx: out_ackB_decoder[i] = to_pu[i].a;)
|
||||
|
||||
// Pipe req x lines down to the ackB pullups
|
||||
(i:Nx: out_req_x_pullups[i] = in_req_x[i];)
|
||||
(i:Nx: to_pu[i].r = in_req_x[i];)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -436,8 +435,9 @@ defproc decoder_2d_synapse_hs (bool? in_req_x[Nx], in_req_y[Ny]; a1of1 synapses[
|
||||
export template<pint NxC, NyC, Nx, Ny, N_dly_cfg>
|
||||
defproc decoder_2d_hybrid (avMx1of2<NxC+NyC> in; bool! out_req_x[Nx], out_req_y[Ny]; bool? dly_cfg[N_dly_cfg], hs_en, ack_disable;
|
||||
bool in_ackB_decoder[Nx]; // AckB lines back to the decoder for handshaking
|
||||
bool out_ackB_pullups[Nx]; // AckB lines from the line end pull ups
|
||||
bool in_req_x_pullups[Nx]; // req x lines going to the line pull ups
|
||||
a1of1 to_pu[Nx];
|
||||
// bool out_ackB_pullups[Nx]; // AckB lines from the line end pull ups
|
||||
// bool in_req_x_pullups[Nx]; // req x lines going to the line pull ups
|
||||
bool? reset_B; power supply) {
|
||||
|
||||
bool _reset_BX[Nx];
|
||||
@@ -479,14 +479,14 @@ defproc decoder_2d_hybrid (avMx1of2<NxC+NyC> in; bool! out_req_x[Nx], out_req_y[
|
||||
A_2P_U_X4 pu[Nx]; // TODO probably replace this with variable strength PU
|
||||
A_1P_U_X4 pu_reset[Nx];
|
||||
(i:Nx:
|
||||
pu[i].p1 = in_req_x_pullups[i];
|
||||
pu[i].p1 = to_pu[i].r;
|
||||
pu[i].p2 = hs_enB;
|
||||
pu[i].y = out_ackB_pullups[i];
|
||||
pu[i].y = to_pu[i].a;
|
||||
pu[i].vdd = supply.vdd;
|
||||
pu[i].vss = supply.vss;
|
||||
|
||||
pu_reset[i].p1 = _reset_BX[i];
|
||||
pu_reset[i].y = out_ackB_pullups[i];
|
||||
pu_reset[i].y = to_pu[i].a;
|
||||
pu_reset[i].vdd = supply.vdd;
|
||||
pu_reset[i].vss = supply.vss;
|
||||
)
|
||||
@@ -496,7 +496,7 @@ defproc decoder_2d_hybrid (avMx1of2<NxC+NyC> in; bool! out_req_x[Nx], out_req_y[
|
||||
(i:Nx:
|
||||
keeps[i].vdd = supply.vdd;
|
||||
keeps[i].vss = supply.vss;
|
||||
keeps[i].y = out_ackB_pullups[i];
|
||||
keeps[i].y = to_pu[i].a;
|
||||
)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user