Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: whitequark/glasgow
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9f617b2e8c58
Choose a base ref
...
head repository: whitequark/glasgow
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 73e1a478ff15
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Dec 15, 2018

  1. Copy the full SHA
    73e1a47 View commit details
Showing with 7 additions and 2 deletions.
  1. +7 −2 software/glasgow/gateware/i2c.py
9 changes: 7 additions & 2 deletions software/glasgow/gateware/i2c.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# I2C reference: https://www.nxp.com/docs/en/user-guide/UM10204.pdf

from migen import *
from migen.genlib.cdc import MultiReg
import os
if os.getenv("NMIGEN"):
from nmigen.compat import *
from nmigen.compat.genlib.cdc import MultiReg
else:
from migen import *
from migen.genlib.cdc import MultiReg


__all__ = ['I2CSlave']