added Ole dly4 as per hugh

This commit is contained in:
alexmadison 2022-03-30 16:50:05 +02:00
parent 8c4f081090
commit a53bd58e29
1 changed files with 15 additions and 7 deletions

View File

@ -102,15 +102,23 @@ namespace tmpl {
/*-- delay cells --*/
// TODO properly
// export defcell DLY4_X1(bool! y; bool? a, vdd, vss)
// {
// bool _y, __y, ___y;
// prs {
// a => _y-
// _y => __y-
// __y => ___y-
// ___y => y-
// }
// }
export defcell DLY4_X1(bool! y; bool? a, vdd, vss)
{
bool _y, __y, ___y;
prs {
a => _y-
_y => __y-
__y => ___y-
___y => y-
}
BUF_X1 bufchain[16];
(i:0..14: bufchain[i].y = bufchain[i+1].a;)
bufchain[0].a = a;
bufchain[15].y = y;
}