arbiter_tree works

This commit is contained in:
Michele
2022-03-03 12:39:10 +01:00
parent f7cd7006d0
commit e53fc88054
4 changed files with 1340 additions and 24 deletions

View File

@@ -27,6 +27,7 @@
*/
import "../../dataflow_neuro/primitives.act";
import "../../dataflow_neuro/coders.act";
import globals;
open tmpl::dataflow_neuro;
@@ -34,8 +35,13 @@ open tmpl::dataflow_neuro;
defproc arbiter_treee (a1of1 in[5]; a1of1 out)
{
//Low active Reset
bool _reset_B;
prs {
Reset => _reset_B-
}
a1of1 _in[5];
power _supply
power _supply;
_supply.vdd = Vdd;
_supply.vss = GND;
@@ -43,17 +49,13 @@ defproc arbiter_treee (a1of1 in[5]; a1of1 out)
(i:5:
fifo_to_tree[i].in = in[i];
fifo_to_tree[i].out = _in[i];
fifo_to_tree.supply = _supply;
fifo_to_tree.reset_B = _reset_B;
fifo_to_tree[i].supply = _supply;
fifo_to_tree[i].reset_B = _reset_B;
)
arbiter_tree<5> at_cell(.in=_in, .out = out);
arbtree<5> at_cell(.in=_in, .out = out);
//Low active Reset
bool _reset_B;
prs {
Reset => _reset_B-
}
at_cell.supply = _supply;