Compare commits

..

2 Commits

Author SHA1 Message Date
alexmadison
b162cff991 added a comment to mux2 2022-04-01 20:46:03 +02:00
alexmadison
732526f0e3 added cells needed for register 2022-04-01 20:45:37 +02:00
2 changed files with 23 additions and 0 deletions

View File

@ -130,6 +130,17 @@ namespace tmpl {
y {-1}} y {-1}}
} }
export defcell A_1C1N_X1 (bool! y; bool? c1, n1; bool vdd, vss)
{
prs{
~c1 -> y+
c1&n1-> y-
}
sizing {leak_adjust <- 1;
p_n_mode <- 1;
y {-1}}
}
// export defcell A_1C1N_RB_X4 (bool! y; bool? c1, n1, pr_B, sr_B; bool vdd, vss) // export defcell A_1C1N_RB_X4 (bool! y; bool? c1, n1, pr_B, sr_B; bool vdd, vss)
// { // {
// bool _y; // bool _y;
@ -156,6 +167,16 @@ namespace tmpl {
// y {-4}; _y{-1}} // y {-4}; _y{-1}}
// } // }
export defcell A_1C2N_R_X1 (bool! y; bool? c1, n1, n2, pr_B, sr_B; bool vdd, vss)
{
prs{
~c1 | ~pr_B-> y+
c1&n1&n2&sr_B -> y-
}
sizing {leak_adjust <- 1;
p_n_mode <- 1;
y {-4}}
}
export defcell A_1C2N_RB_X4 (bool! y; bool? c1, n1, n2, pr_B, sr_B; bool vdd, vss) export defcell A_1C2N_RB_X4 (bool! y; bool? c1, n1, n2, pr_B, sr_B; bool vdd, vss)
{ {

View File

@ -283,6 +283,8 @@ namespace tmpl {
export defcell MUX2_X1(bool! y; bool? a, b, s, vdd, vss) export defcell MUX2_X1(bool! y; bool? a, b, s, vdd, vss)
{ {
// y = !( S ? b : a ) // y = !( S ? b : a )
// Actually looks more like
// if s = 0 -> use A
// Adjusted to fit the XFAB Muxes // Adjusted to fit the XFAB Muxes
bool _s; bool _s;
bool _y; bool _y;