prepared things for having unit test ready

This commit is contained in:
2022-02-21 13:01:45 +01:00
parent 6dc79383da
commit ca0e5df048
16 changed files with 216 additions and 64 deletions

View File

@@ -24,9 +24,9 @@
**************************************************************************
*/
namespace async_template {
export defcell A_1C1P2N_RB_X1 (bool! y; bool? c1,p1,n1,n2,pr_B, sr_B, vdd, vss) {
namespace tmpl {
namespace dataflow_neuro{
export defcell A_1C1P2N_RB_X1 (bool! y; bool? c1,p1,n1,n2,pr_B, sr_B; bool vdd, vss) {
bool _y;
prs{
(~p1 & ~c1)|~pr_B -> _y+
@@ -41,7 +41,7 @@ namespace async_template {
}
}
export defcell A_1C1P2N_R_X1 (bool! y; bool? c1,p1,n1,n2,pr_B, sr_B, vdd, vss) {
export defcell A_1C1P2N_R_X1 (bool! y; bool? c1,p1,n1,n2,pr_B, sr_B; bool vdd, vss) {
prs{
(~p1 & ~c1)|~pr_B -> y-
c1 & n1 & n2 & sr_B -> y+
@@ -54,7 +54,7 @@ namespace async_template {
}
export defcell A_1C1P_1N_X1 (bool! y; bool? c1, p1, n1, vdd, vss)
export defcell A_1C1P_1N_X1 (bool! y; bool? c1, p1, n1; bool vdd, vss)
{
prs{
~p1 & ~c1 -> y+
@@ -65,7 +65,7 @@ namespace async_template {
y {-1}}
}
export defcell A_1C1P_B (bool! y; bool? c1, p1, vdd, vss)
export defcell A_1C1P_B (bool! y; bool? c1, p1; bool vdd, vss)
{
bool _y;
prs{
@@ -79,7 +79,7 @@ namespace async_template {
}
export defcell A_1C1P (bool! y; bool? c1, p1, vdd, vss)
export defcell A_1C1P (bool! y; bool? c1, p1; bool vdd, vss)
{
prs{
~p1 & ~c1 -> y+
@@ -90,7 +90,7 @@ namespace async_template {
y {-1}}
}
export defcell A_1C2P1N_X1 (bool! y; bool? c1, p1, p2, n1, vdd, vss)
export defcell A_1C2P1N_X1 (bool! y; bool? c1, p1, p2, n1; bool vdd, vss)
{
prs{
~p1 & ~p2 & ~c1 -> y+
@@ -101,7 +101,7 @@ namespace async_template {
y {-1}}
}
export defcell A_1C2P_B_X1 (bool! y; bool? c1, p1, p2, vdd, vss)
export defcell A_1C2P_B_X1 (bool! y; bool? c1, p1, p2; bool vdd, vss)
{
bool _y;
prs{
@@ -115,7 +115,7 @@ namespace async_template {
}
export defcell A_1C2P (bool! y; bool? c1, p1, p2, vdd, vss)
export defcell A_1C2P (bool! y; bool? c1, p1, p2; bool vdd, vss)
{
prs{
~p1 & ~p2 & ~c1 -> y+
@@ -126,7 +126,7 @@ namespace async_template {
y {-1}}
}
export defcell A_1C3P2P2N_R_X1 (bool! y; bool? c1, p1, p2, p3, p4, p5, n1, n2, pr_B, sr_B, vdd, vss)
export defcell A_1C3P2P2N_R_X1 (bool! y; bool? c1, p1, p2, p3, p4, p5, n1, n2, pr_B, sr_B; bool vdd, vss)
{
prs{
(~p1 & ~p2 & ~p3 & ~c1)|(~p4&~p5&~c1)|~pr_B -> y+
@@ -137,7 +137,7 @@ namespace async_template {
y {-1}}
}
export defcell A_2C2N2N_RB_X1 (bool ! y; bool? c1, c2, n1, n2, n3, n4, pr_B, sr_B; bool? vdd, vss)
export defcell A_2C2N2N_RB_X1 (bool ! y; bool? c1, c2, n1, n2, n3, n4, pr_B, sr_B; bool vdd, vss)
{
bool _y;
prs{
@@ -151,7 +151,7 @@ namespace async_template {
y {-1}; _y{-1}}
}
export defcell A_2C2N2N_RB_X2 (bool ! y; bool? c1, c2, n1, n2, n3, n4, pr_B, sr_B; bool? vdd, vss)
export defcell A_2C2N2N_RB_X2 (bool ! y; bool? c1, c2, n1, n2, n3, n4, pr_B, sr_B; bool vdd, vss)
{
bool _y;
prs{
@@ -439,7 +439,7 @@ namespace async_template {
p_n_mode <- 1;
y {-1}}
}
}
}}