soc/core/gpio: Add per bit oe to GPIOTristate - #393
Conversation
|
Actually this is better done as a variant of GPIOTristate that adds per bit tristate control. Will rework. |
|
@TomKeddie: thanks. I was just looking at the code and trying to understand the difference with GPIOTristate. |
|
@enjoy-digital thanks for your patience, I wrote GPIOBidirectional back in August and totally missed when you added GPIOTristate in Dec. I'm trying to use GPIOTristate and I don't see what arguments I should pass to make get_tristate() happy with a record. gives me an error from the list being the wrong type So I flattened the list and Cated it. and I get what might be bad verilog. Is this user error? or something to log in an issue? |
|
@TomKeddie: thanks for the feedback and Migen PR. For now i implemented with a7c5dd5 a solution that is closer to your original one. This has been tested with: We'll make use of m-labs/migen#205 if it gets merged. |
I've been finding this class very useful so I thought I'd try upstreaming it.