replace litex.gen imports with migen imports

This commit is contained in:
Florent Kermarrec 2018-02-23 13:40:09 +01:00
parent c15f089eba
commit 79a6ba7709
23 changed files with 46 additions and 36 deletions

View File

@ -7,8 +7,8 @@ import subprocess
import struct import struct
import importlib import importlib
from litex.gen.fhdl import verilog from migen.fhdl import verilog
from litex.gen.fhdl.structure import _Fragment from migen.fhdl.structure import _Fragment
from litex.build.tools import write_to_file from litex.build.tools import write_to_file
from litex.build.xilinx.common import * from litex.build.xilinx.common import *

View File

@ -1,4 +1,4 @@
from litex.gen.genlib.io import CRG from migen.genlib.io import CRG
from litex.build.xilinx.vivado import XilinxVivadoToolchain from litex.build.xilinx.vivado import XilinxVivadoToolchain
from litex.soc.interconnect import wishbone from litex.soc.interconnect import wishbone

View File

@ -2,7 +2,7 @@
import argparse import argparse
from litex.gen import * from migen import *
from litex.build.generic_platform import * from litex.build.generic_platform import *
from litex.build.xilinx.platform import XilinxPlatform from litex.build.xilinx.platform import XilinxPlatform

View File

@ -1,6 +1,6 @@
from math import ceil from math import ceil
from litex.gen import * from migen import *
from litex.soc.interconnect import stream from litex.soc.interconnect import stream
from litex.soc.interconnect.stream import EndpointDescription from litex.soc.interconnect.stream import EndpointDescription

View File

@ -1,6 +1,7 @@
from liteeth.common import * from liteeth.common import *
from litex.gen.genlib.misc import WaitTimer from migen.genlib.misc import WaitTimer
from litex.soc.interconnect.stream_packet import Depacketizer, Packetizer from litex.soc.interconnect.stream_packet import Depacketizer, Packetizer

View File

@ -1,7 +1,8 @@
from liteeth.common import * from liteeth.common import *
from liteeth.core.mac import gap, preamble, crc, padding, last_be from liteeth.core.mac import gap, preamble, crc, padding, last_be
from liteeth.phy.model import LiteEthPHYModel from liteeth.phy.model import LiteEthPHYModel
from litex.gen.genlib.cdc import PulseSynchronizer
from migen.genlib.cdc import PulseSynchronizer
class LiteEthMACCore(Module, AutoCSR): class LiteEthMACCore(Module, AutoCSR):

View File

@ -4,7 +4,7 @@ from collections import OrderedDict
from liteeth.common import * from liteeth.common import *
from litex.gen.genlib.misc import chooser, WaitTimer from migen.genlib.misc import chooser, WaitTimer
class LiteEthMACCRCEngine(Module): class LiteEthMACCRCEngine(Module):

View File

@ -1,6 +1,6 @@
from liteeth.common import * from liteeth.common import *
from litex.gen.genlib.misc import chooser from migen.genlib.misc import chooser
class LiteEthMACPreambleInserter(Module): class LiteEthMACPreambleInserter(Module):

View File

@ -1,8 +1,9 @@
from migen.fhdl.simplify import FullMemoryWE
from liteeth.common import * from liteeth.common import *
from liteeth.core.mac import sram from liteeth.core.mac import sram
from litex.soc.interconnect import wishbone from litex.soc.interconnect import wishbone
from litex.gen.fhdl.simplify import FullMemoryWE
class LiteEthMACWishboneInterface(Module, AutoCSR): class LiteEthMACWishboneInterface(Module, AutoCSR):

View File

@ -1,7 +1,7 @@
from liteeth.common import * from liteeth.common import *
from litex.gen.genlib.cdc import MultiReg from migen.genlib.cdc import MultiReg
from litex.gen.fhdl.specials import Tristate from migen.fhdl.specials import Tristate
class LiteEthPHYHWReset(Module): class LiteEthPHYHWReset(Module):
def __init__(self): def __init__(self):

View File

@ -1,7 +1,7 @@
from liteeth.common import * from liteeth.common import *
from litex.gen.genlib.io import DDROutput from migen.genlib.io import DDROutput
from litex.gen.genlib.resetsync import AsyncResetSynchronizer from migen.genlib.resetsync import AsyncResetSynchronizer
from liteeth.phy.common import * from liteeth.phy.common import *

View File

@ -3,8 +3,8 @@ from liteeth.phy.gmii import LiteEthPHYGMIICRG
from liteeth.phy.mii import LiteEthPHYMIITX, LiteEthPHYMIIRX from liteeth.phy.mii import LiteEthPHYMIITX, LiteEthPHYMIIRX
from liteeth.phy.gmii import LiteEthPHYGMIITX, LiteEthPHYGMIIRX from liteeth.phy.gmii import LiteEthPHYGMIITX, LiteEthPHYGMIIRX
from litex.gen.genlib.io import DDROutput from migen.genlib.io import DDROutput
from litex.gen.genlib.cdc import PulseSynchronizer from migen.genlib.cdc import PulseSynchronizer
from litex.soc.interconnect.stream import Multiplexer, Demultiplexer from litex.soc.interconnect.stream import Multiplexer, Demultiplexer

View File

@ -1,6 +1,6 @@
from liteeth.common import * from liteeth.common import *
from litex.gen.genlib.resetsync import AsyncResetSynchronizer from migen.genlib.resetsync import AsyncResetSynchronizer
from liteeth.phy.common import * from liteeth.phy.common import *

View File

@ -1,9 +1,9 @@
from liteeth.common import * from liteeth.common import *
from litex.gen.genlib.cdc import MultiReg from migen.genlib.cdc import MultiReg
from litex.gen.genlib.misc import WaitTimer from migen.genlib.misc import WaitTimer
from litex.gen.genlib.io import DDROutput from migen.genlib.io import DDROutput
from litex.gen.genlib.resetsync import AsyncResetSynchronizer from migen.genlib.resetsync import AsyncResetSynchronizer
from liteeth.phy.common import * from liteeth.phy.common import *

View File

@ -1,11 +1,11 @@
# RGMII PHY for Spartan-6 # RGMII PHY for Spartan-6
from liteeth.common import * from liteeth.common import *
from litex.gen.genlib.io import DDROutput from migen.genlib.io import DDROutput
from litex.gen.genlib.misc import WaitTimer from migen.genlib.misc import WaitTimer
from litex.gen.genlib.fsm import FSM, NextState from migen.genlib.fsm import FSM, NextState
from litex.gen.genlib.resetsync import AsyncResetSynchronizer from migen.genlib.resetsync import AsyncResetSynchronizer
from liteeth.phy.common import * from liteeth.phy.common import *

View File

@ -1,11 +1,11 @@
# RGMII PHY for 7-Series Xilinx FPGA # RGMII PHY for 7-Series Xilinx FPGA
from liteeth.common import * from liteeth.common import *
from litex.gen.genlib.io import DDROutput from migen.genlib.io import DDROutput
from litex.gen.genlib.misc import WaitTimer from migen.genlib.misc import WaitTimer
from litex.gen.genlib.fsm import FSM, NextState from migen.genlib.fsm import FSM, NextState
from litex.gen.genlib.resetsync import AsyncResetSynchronizer from migen.genlib.resetsync import AsyncResetSynchronizer
from liteeth.phy.common import * from liteeth.phy.common import *

View File

@ -1,5 +1,6 @@
import unittest import unittest
from litex.gen import *
from migen import *
from litex.soc.interconnect import wishbone from litex.soc.interconnect import wishbone
from litex.soc.interconnect.stream_sim import * from litex.soc.interconnect.stream_sim import *

View File

@ -1,5 +1,6 @@
import unittest import unittest
from litex.gen import *
from migen import *
from litex.soc.interconnect import wishbone from litex.soc.interconnect import wishbone
from litex.soc.interconnect.stream_sim import * from litex.soc.interconnect.stream_sim import *

View File

@ -1,5 +1,6 @@
import unittest import unittest
from litex.gen import *
from migen import *
from litex.soc.interconnect import wishbone from litex.soc.interconnect import wishbone
from litex.soc.interconnect.stream_sim import * from litex.soc.interconnect.stream_sim import *

View File

@ -1,5 +1,6 @@
import unittest import unittest
from litex.gen import *
from migen import *
from litex.soc.interconnect import wishbone from litex.soc.interconnect import wishbone
from litex.soc.interconnect.stream_sim import * from litex.soc.interconnect.stream_sim import *

View File

@ -1,5 +1,6 @@
import unittest import unittest
from litex.gen import *
from migen import *
from litex.soc.interconnect import wishbone from litex.soc.interconnect import wishbone
from litex.soc.interconnect.stream_sim import * from litex.soc.interconnect.stream_sim import *

View File

@ -1,5 +1,6 @@
import unittest import unittest
from litex.gen import *
from migen import *
from litex.soc.interconnect import wishbone from litex.soc.interconnect import wishbone
from litex.soc.interconnect.stream_sim import * from litex.soc.interconnect.stream_sim import *

View File

@ -1,5 +1,6 @@
import unittest import unittest
from litex.gen import *
from migen import *
from litex.soc.interconnect import wishbone from litex.soc.interconnect import wishbone
from litex.soc.interconnect.stream_sim import * from litex.soc.interconnect.stream_sim import *