| ??? 11/21/07 06:11 Modified: 11/21/07 06:12 Read: times |
#147291 - Closing the loop Responding to: ???'s previous message |
I said:
Last night I saw an example someplace on the web that showed how to code a tristate bus in Verilog. Now I guess I'll have to try that just for the exercise and see if the synthesizer complains, or silently cooks up some other implementation, or ??? Interesting. I tried a few different ways to make some multi-sourced tristate signals inside the FPGA, and the synthesizer quite consistently replaced them with logic every time. "Well!" I said, "Let's see what it does with this!"
module abuse (
input a,
input b,
input selectA,
input selectB,
output w
);
assign w = selectA ? a : 1'bz;
assign w = selectB ? b : 1'bz;
endmodule
I thought it might freak out at the possibility of selectA and selectB both being asserted at the same time. But no, in that case it just put a | b onto the output. I suppose somebody with a little more ambition than I have could find the rules that govern a case like that. For now, anyway, I'm content with a simple "don't do that!" -- Russ |
| Topic | Author | Date |
| Tri-state busses in FPGAs | 01/01/70 00:00 | |
| Tristate Buffers (TBUFs) have been phased out | 01/01/70 00:00 | |
| Thank you | 01/01/70 00:00 | |
| Closing the loop | 01/01/70 00:00 | |
| siumulate? | 01/01/70 00:00 | |
| I didn't simulate it (yet) | 01/01/70 00:00 | |
| hmmm | 01/01/70 00:00 | |
| So ... what about a BIG multi-party bus? | 01/01/70 00:00 | |
| delay | 01/01/70 00:00 | |
| nevertheless ... | 01/01/70 00:00 | |
| re: nevertheless | 01/01/70 00:00 | |
| What disappoints me is the advertising vs reality | 01/01/70 00:00 | |
| advertising | 01/01/70 00:00 | |
| advertising, badvertising ... lies! | 01/01/70 00:00 | |
| oy | 01/01/70 00:00 | |
If only one could rely on them ... | 01/01/70 00:00 | |
| largely, it's because it's not an option | 01/01/70 00:00 | |
| Zackly | 01/01/70 00:00 | |
| If you have internal tristate resources ... | 01/01/70 00:00 | |
| I have new worries now | 01/01/70 00:00 | |
| tristates in FPGAs | 01/01/70 00:00 |



