add component 'output_buffer'#3941
Conversation
|
Maybe "Enable binary signals" en-bin-sig |
|
The same can be achieved with mux_generic in bit mode, with a little more flexibility in "disabled" value. |
Not really - at least not with one. Alternatively I could use an and2 for each channel. But this would bloat my hal file unnecessarily... My use case is the following: I have an operating panel with illuminated keys. I simply want to turn off the illumination when the machine is not enabled. Otherwise the keys should get their appropriate illumination. |
Indeed, you would need one for each channel. Is it worth considering a second set of "off" inputs (that default to zero)? |
I thought about that too, but couldn't really imagine a case where this would be useful. |
|
Shouldn't you be able to set what level "off" actually is? I can imagine that someone would need negative logic. |
f15461e to
3fb860f
Compare
|
Added a parameter to set the "off-level". Could also be a pin... Regarding the name: the correct name would be something like "buffer with enable". But shortenings like 'enable_buffer' or 'buffer_enable' sound weird. |
|
It probably makes sense to not create new parameters at the moment, as they are (probably) being phased out. |
3fb860f to
0f33fc1
Compare
|
Ok, changed to pin. |
0f33fc1 to
3820604
Compare
This adds a component that behaves like a tristate buffer, but the outputs will be zero instead of high-Z.
I haven't found a better name. Could also be named 'output_switch' or 'multiple_output_buffer' ...