From ae4e63d634ef0bb0e183daa071c8e36be97735fc Mon Sep 17 00:00:00 2001 From: alexmadison Date: Fri, 1 Dec 2023 13:46:21 +0100 Subject: [PATCH] removed weird sigbuf 1output --- dataflow_neuro/treegates.act | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/dataflow_neuro/treegates.act b/dataflow_neuro/treegates.act index 88c3a08..aed9e15 100644 --- a/dataflow_neuro/treegates.act +++ b/dataflow_neuro/treegates.act @@ -449,34 +449,6 @@ defproc sigbuf (bool? in; bool! out[N]; power supply) (i:1..N-1:out[i]=out[0];) } -//Sigbuf in which there is only 1 output. Made for outputs that cannot have multiple wires. -// never used, prolly get rid @TODO -export template -defproc sigbuf_1output (bool? in; bool! out; power supply) -{ - - { N >= 0 : "sigbuf: parameter error" }; - { N <= 43 : "sigbuf: parameter error, N too big" }; - - /* -- just use in sized driver here -- */ - [ N <= 4 -> - BUF_X1 buf1 (.a = in, .y = out, .vdd = supply.vdd, .vss = supply.vss); - [] N >= 5 & N <= 7 -> - BUF_X2 buf2 (.a = in, .y = out, .vdd = supply.vdd, .vss = supply.vss); - [] N >= 8 & N <= 10 -> - BUF_X3 buf3 (.a = in, .y = out, .vdd = supply.vdd, .vss = supply.vss); - [] N >= 11 & N <= 14 -> - BUF_X4 buf4 (.a = in, .y = out, .vdd = supply.vdd, .vss = supply.vss); - [] N >= 15 & N <= 18 -> - BUF_X6 buf6 (.a = in, .y = out, .vdd = supply.vdd, .vss = supply.vss); - [] N >= 19 & N <= 29 -> - BUF_X8 buf8 (.a = in, .y = out, .vdd = supply.vdd, .vss = supply.vss); - [] N >= 30 & N <= 42 -> - BUF_X12 buf12 (.a = in, .y = out, .vdd = supply.vdd, .vss = supply.vss); - ] -} - - }}