mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
global: Move Open definition to gen/common and use it.
This commit is contained in:
parent
653b74fe98
commit
c1ee154340
15 changed files with 34 additions and 33 deletions
|
@ -19,6 +19,10 @@ def colorer(s, color="bright"):
|
|||
trailer = "\x1b[0m"
|
||||
return header + str(s) + trailer
|
||||
|
||||
# Signals ------------------------------------------------------------------------------------------
|
||||
|
||||
class Open(Signal) : pass
|
||||
|
||||
# Bit/Bytes Reversing ------------------------------------------------------------------------------
|
||||
|
||||
def reverse_bits(s):
|
||||
|
|
|
@ -8,11 +8,11 @@
|
|||
from migen import *
|
||||
from migen.genlib.resetsync import AsyncResetSynchronizer
|
||||
|
||||
from litex.gen import *
|
||||
|
||||
from litex.build.generic_platform import *
|
||||
from litex.soc.cores.clock.common import *
|
||||
|
||||
class Open(Signal): pass
|
||||
|
||||
# Efinix / TRIONPLL ----------------------------------------------------------------------------------
|
||||
|
||||
class EFINIXPLL(Module):
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
from migen import *
|
||||
from migen.genlib.resetsync import AsyncResetSynchronizer
|
||||
|
||||
from litex.soc.cores.clock.common import *
|
||||
from litex.gen import *
|
||||
|
||||
class Open(Signal): pass
|
||||
from litex.soc.cores.clock.common import *
|
||||
|
||||
# GoWin / GW1NOSC ----------------------------------------------------------------------------------
|
||||
|
||||
|
|
|
@ -31,16 +31,16 @@
|
|||
import os
|
||||
import sys
|
||||
from shutil import copyfile
|
||||
|
||||
from migen import *
|
||||
|
||||
from litex.gen import *
|
||||
|
||||
from litex import get_data_mod
|
||||
from litex.soc.interconnect import axi
|
||||
from litex.soc.interconnect import wishbone
|
||||
from litex.soc.cores.cpu import CPU, CPU_GCC_TRIPLE_RISCV64
|
||||
|
||||
class Open(Signal): pass
|
||||
|
||||
|
||||
# Variants -----------------------------------------------------------------------------------------
|
||||
|
||||
CPU_VARIANTS = ["standard", "sim"]
|
||||
|
|
|
@ -9,11 +9,11 @@ import os
|
|||
|
||||
from migen import *
|
||||
|
||||
from litex.gen import *
|
||||
|
||||
from litex.soc.cores.cpu import CPU
|
||||
from litex.soc.interconnect import axi
|
||||
|
||||
class Open(Signal): pass
|
||||
|
||||
# Cortex-M1 ----------------------------------------------------------------------------------------
|
||||
|
||||
class CortexM1(CPU):
|
||||
|
|
|
@ -9,11 +9,11 @@ import os
|
|||
|
||||
from migen import *
|
||||
|
||||
from litex.gen import *
|
||||
|
||||
from litex.soc.cores.cpu import CPU
|
||||
from litex.soc.interconnect import axi
|
||||
|
||||
class Open(Signal): pass
|
||||
|
||||
# Cortex-M3 ----------------------------------------------------------------------------------------
|
||||
|
||||
class CortexM3(CPU):
|
||||
|
|
|
@ -10,13 +10,13 @@ import re
|
|||
|
||||
from migen import *
|
||||
|
||||
from litex.gen import *
|
||||
|
||||
from litex import get_data_mod
|
||||
from litex.soc.interconnect import axi
|
||||
from litex.soc.interconnect import wishbone
|
||||
from litex.soc.cores.cpu import CPU, CPU_GCC_TRIPLE_RISCV64
|
||||
|
||||
class Open(Signal): pass
|
||||
|
||||
# Variants -----------------------------------------------------------------------------------------
|
||||
|
||||
CPU_VARIANTS = ["standard", "full"]
|
||||
|
|
|
@ -9,12 +9,12 @@ import os
|
|||
from migen import *
|
||||
from migen.genlib.resetsync import AsyncResetSynchronizer
|
||||
|
||||
from litex.gen import *
|
||||
|
||||
from litex.soc.interconnect import wishbone
|
||||
|
||||
from litex.soc.cores.cpu import CPU
|
||||
|
||||
class Open(Signal): pass
|
||||
|
||||
# EOS-S3 -------------------------------------------------------------------------------------------
|
||||
|
||||
class EOS_S3(CPU):
|
||||
|
|
|
@ -9,12 +9,12 @@ import os
|
|||
|
||||
from migen import *
|
||||
|
||||
from litex.gen import *
|
||||
|
||||
from litex import get_data_mod
|
||||
from litex.soc.interconnect import wishbone
|
||||
from litex.soc.cores.cpu import CPU, CPU_GCC_TRIPLE_RISCV32
|
||||
|
||||
class Open(Signal): pass
|
||||
|
||||
# Variants -----------------------------------------------------------------------------------------
|
||||
|
||||
CPU_VARIANTS = ["standard"]
|
||||
|
|
|
@ -10,6 +10,8 @@ import os
|
|||
|
||||
from migen import *
|
||||
|
||||
from litex.gen import *
|
||||
|
||||
from litex import get_data_mod
|
||||
|
||||
from litex.build.vhd2v_converter import *
|
||||
|
@ -19,8 +21,6 @@ from litex.soc.interconnect.csr import *
|
|||
from litex.gen.common import reverse_bytes
|
||||
from litex.soc.cores.cpu import CPU
|
||||
|
||||
class Open(Signal): pass
|
||||
|
||||
# Variants -----------------------------------------------------------------------------------------
|
||||
|
||||
CPU_VARIANTS = ["standard", "standard+ghdl", "standard+irq", "standard+ghdl+irq"]
|
||||
|
|
|
@ -11,13 +11,13 @@ import subprocess
|
|||
|
||||
from migen import *
|
||||
|
||||
from litex.gen import *
|
||||
|
||||
from litex import get_data_mod
|
||||
from litex.soc.interconnect import axi
|
||||
from litex.soc.interconnect.csr import *
|
||||
from litex.soc.cores.cpu import CPU, CPU_GCC_TRIPLE_RISCV32, CPU_GCC_TRIPLE_RISCV64
|
||||
|
||||
class Open(Signal): pass
|
||||
|
||||
# Variants -----------------------------------------------------------------------------------------
|
||||
|
||||
CPU_VARIANTS = {
|
||||
|
|
|
@ -8,6 +8,8 @@ import os
|
|||
|
||||
from migen import *
|
||||
|
||||
from litex.gen import *
|
||||
|
||||
from litex.build.vhd2v_converter import *
|
||||
|
||||
from litex.soc.interconnect import wishbone
|
||||
|
@ -65,8 +67,6 @@ class NEORV32(CPU):
|
|||
|
||||
# # #
|
||||
|
||||
class Open(Signal) : pass
|
||||
|
||||
# CPU LiteX Core Complex Wrapper
|
||||
self.specials += Instance("neorv32_litex_core_complex",
|
||||
# Clk/Rst.
|
||||
|
|
|
@ -6,21 +6,18 @@
|
|||
# SPDX-License-Identifier: BSD-2-Clause
|
||||
|
||||
import os
|
||||
from os import path
|
||||
import subprocess
|
||||
|
||||
from migen import *
|
||||
|
||||
from litex.gen import *
|
||||
|
||||
from litex import get_data_mod
|
||||
|
||||
from litex.soc.interconnect import wishbone
|
||||
from litex.soc.interconnect.csr import *
|
||||
from litex.soc.cores.cpu import CPU, CPU_GCC_TRIPLE_RISCV32
|
||||
|
||||
import os
|
||||
|
||||
class Open(Signal): pass
|
||||
|
||||
# VexRiscv SMP -------------------------------------------------------------------------------------
|
||||
|
||||
class VexRiscvSMP(CPU):
|
||||
|
@ -363,7 +360,7 @@ class VexRiscvSMP(CPU):
|
|||
def add_sources(self, platform):
|
||||
vdir = get_data_mod("cpu", "vexriscv_smp").data_location
|
||||
print(f"VexRiscv cluster : {self.cluster_name}")
|
||||
if not path.exists(os.path.join(vdir, self.cluster_name + ".v")):
|
||||
if not os.path.exists(os.path.join(vdir, self.cluster_name + ".v")):
|
||||
self.generate_netlist()
|
||||
|
||||
|
||||
|
|
|
@ -9,6 +9,8 @@ import os
|
|||
|
||||
from migen import *
|
||||
|
||||
from litex.gen import *
|
||||
|
||||
from litex.soc.cores.clock import *
|
||||
from litex.soc.integration.soc_core import *
|
||||
from litex.soc.integration.builder import *
|
||||
|
@ -32,8 +34,6 @@ class USPHBM2(Module, AutoCSR):
|
|||
|
||||
# # #
|
||||
|
||||
class Open(Signal): pass
|
||||
|
||||
# Clocks -----------------------------------------------------------------------------------
|
||||
# Ref = 100 MHz (HBM: 900 (225-900) MHz), drives internal PLL (1 per stack).
|
||||
for i in range(2):
|
||||
|
|
|
@ -12,6 +12,8 @@ import math
|
|||
from migen import *
|
||||
from migen.genlib.cdc import MultiReg
|
||||
|
||||
from litex.gen import *
|
||||
|
||||
from litex.soc.interconnect.csr import *
|
||||
from litex.soc.interconnect import stream
|
||||
from litex.soc.cores.code_tmds import TMDSEncoder
|
||||
|
@ -696,8 +698,6 @@ class VideoFrameBuffer(Module, AutoCSR):
|
|||
|
||||
# Video PHYs ---------------------------------------------------------------------------------------
|
||||
|
||||
class Open(Signal): pass
|
||||
|
||||
# Generic (Very Generic PHY supporting VGA/DVI and variations).
|
||||
|
||||
class VideoGenericPHY(Module):
|
||||
|
|
Loading…
Reference in a new issue