-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose IO DDR register from top level of hm2 #56
Comments
On 8/4/2016 4:56 PM, dkhughes wrote:
I'm totally cool with changing from the current tri-state I/O pin Using "tri-state" logic internal to the FPGA is just asking for Charles Steinkuehler |
I agree with that completely, but the way the top level IOBits function right now (selectable direction at runtime by the hal) requires them to be I guess another way around would be adding dedicated logic blocks inside hm2 and having them resolve to wires unless a project customized them similar to the unique PIN files. That would avoid internal tristate design and IP duplication. |
Sorry I have not been able to communicate much. Please look at this example of what you are mentioning here: the-snowwhite/mksocfpga-hm3_dev@fbc30b8 I think maybe mux was the wrong term, because I found out I could be implemented in a very simple but efficient way. I cannot find where I placed the documentation right now, as I had no placeholder for it at that time, and not much time to find out how much has changed here since. |
I'm not a verilog guy (yet at least), so I broke the gpio into two buses using VHDL. This required an external component that handles the top level tristate logic. I added that as an IP block on the zynq side. Right now, these changes are isolated in the zynq ip, but I really like the split bus since I can add logic and debounce registers in hardware instead of using ARM clocks at the HAL layer. Suggestions welcome on making this acceptable for the main hostmot2 source folder. See the WIP here: |
I would like to expose the DDR register pins from the top level of hostmot2. This allows us to externally add a component that can perform logic on the IO pins, such as ANDs and ORs, in a manner that can be synthesized.
Presently, if you try to intercept the IO bits outside of hostmot2, the synthesizer will pass but the implementation portion of compiling fails miserably with multiple drivers. By exposing the DDR bits, we can have proper tristate bus logic.
Summary of benefit - We can do basic ladder logic in the fpga, because, hey, it's good at doing logic. Plus, this allows for hardware IO pin debouncing, etc. without wasting clocks at the control level.
I cannot see any side affects that will impact any of the existing designs since all of the files are using named generics already. Should be totally transparent unless you want the ability to implement extra logic in the fpga (which I really, really, really do).
Three files would be affected if you wanted to expose the ddr pins in the manner my pull request does:
I have a small pull request ready to go if you guys are cool with this that I will submit, I just wanted to get some feedback first.
The text was updated successfully, but these errors were encountered: