Skip to content

Instantly share code, notes, and snippets.

@goran-mahovlic
Last active March 18, 2019 12:13
Show Gist options
  • Save goran-mahovlic/26ed3ca7f377bba7dfab8786b1503951 to your computer and use it in GitHub Desktop.
Save goran-mahovlic/26ed3ca7f377bba7dfab8786b1503951 to your computer and use it in GitHub Desktop.
Q: Ice40 is using SB_IO how to do this on ECP5
A: Ice40
A: https://github.com/lawrie/OV7670-Verilog/blob/master/src/camera_configure.v#L55
A: ECP5
A: https://github.com/daveshah1/ulx3s/blob/master/rtl/verilog/orpsoc_top.v#L456
Q: I need same signal on multiple places
A: Make a copy of that signal and pass copy where needed
A: https://gist.github.com/goran-mahovlic/2a1d163faa6fbee9ab5b62686991fd9e#file-top-v-L63
Q: How to use array of pins gp[X] gp[X] in modules if some are inputs and some are output
INPUT gp[1], //works
OUTPUT gp[2], //fail -- cannot assign gp again
A:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment