Skip to content

Instantly share code, notes, and snippets.

@tzechienchu
Last active October 25, 2022 09:53
Show Gist options
  • Save tzechienchu/6d8323a0a18e768aeb939a5264e17ca0 to your computer and use it in GitHub Desktop.
Save tzechienchu/6d8323a0a18e768aeb939a5264e17ca0 to your computer and use it in GitHub Desktop.
TriState IO on ICE40
SB_IO #(
.PIN_TYPE(6'b1010_01),
.PULLUP(1'b0)
) triState (
.PACKAGE_PIN(pin),
.OUTPUT_ENABLE(oe),
.D_OUT_0(dout),
.D_IN_0(din)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment