removed line pull up downs, moved to coders
This commit is contained in:
parent
746ee34107
commit
8cb6eddd37
@ -685,33 +685,6 @@ namespace tmpl {
|
||||
(i:((1<<N)-1):dly[i].vss = supply.vss;)
|
||||
}
|
||||
|
||||
export
|
||||
defproc line_end_pull_up (a1of1 in; bool? reset_B; power supply; bool! out)
|
||||
{
|
||||
bool _out, __out, nor_out;
|
||||
BUF_X4 buf1(.a=in.a, .y=_out, .vdd=supply.vdd,.vss=supply.vss);
|
||||
BUF_X4 buf2(.a=_out, .y=__out, .vdd=supply.vdd,.vss=supply.vss);
|
||||
|
||||
NOR2_X1 aenor(.a=_out, .b=reset_B, .y = nor_out, .vdd=supply.vdd,.vss=supply.vss);
|
||||
|
||||
PULLUP_X4 pull_up(.a=nor_out, .y=out);
|
||||
}
|
||||
|
||||
export
|
||||
defproc line_end_pull_down (a1of1 in; bool? reset_B; power supply; bool! out)
|
||||
{
|
||||
bool _out, __out, nor_out;
|
||||
BUF_X4 buf1(.a=in.a, .y=_out, .vdd=supply.vdd,.vss=supply.vss);
|
||||
BUF_X4 buf2(.a=_out, .y=__out, .vdd=supply.vdd,.vss=supply.vss);
|
||||
|
||||
NOR2_X1 aenor(.a=_out, .b=reset_B, .y = nor_out, .vdd=supply.vdd,.vss=supply.vss);
|
||||
|
||||
PULLUP_X4 pull_down(.a=nor_out, .y=out);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Appends a hard-coded word "VAL" to an input.
|
||||
* Works by piping through all sigs, but adding
|
||||
@ -719,6 +692,9 @@ namespace tmpl {
|
||||
* N is size of channel to pipe through.
|
||||
* NVAL is size of word to be put on output.
|
||||
* VAL is word to be put on output.
|
||||
* Output looks like
|
||||
* 0..............N........N+NVAL-1
|
||||
* --input_data----LSB....MSB
|
||||
*
|
||||
*/
|
||||
export template<pint N, NVAL, VAL>
|
||||
|
Loading…
x
Reference in New Issue
Block a user