Skip to content

Commit

Permalink
Merge pull request #73 from siliconcompiler/simplify-libs
Browse files Browse the repository at this point in the history
update to not use chip object in libries
  • Loading branch information
gadfort authored Aug 28, 2024
2 parents 47854f0 + 8836a5a commit 8178766
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[flake8]
max-line-length = 100
extend-exclude = build
extend-exclude = build,.venv
extend-ignore =
18 changes: 9 additions & 9 deletions lambdalib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@
########################
# SiliconCompiler Setup
########################
def setup(chip):
def setup():
'''
Lambdalib library setup script
'''

return [
auxlib.setup(chip),
fpgalib.setup(chip),
iolib.setup(chip),
padring.setup(chip),
ramlib.setup(chip),
stdlib.setup(chip),
syslib.setup(chip),
vectorlib.setup(chip)
auxlib.setup(),
fpgalib.setup(),
iolib.setup(),
padring.setup(),
ramlib.setup(),
stdlib.setup(),
syslib.setup(),
vectorlib.setup()
]


Expand Down
4 changes: 2 additions & 2 deletions lambdalib/auxlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
########################
# SiliconCompiler Setup
########################
def setup(chip):
def setup():
'''
Lambdalib auxlib
'''

lib = Library(chip, 'lambdalib_auxlib', package='lambdalib', auto_enable=True)
lib = Library('lambdalib_auxlib', package='lambdalib', auto_enable=True)
register_data_source(lib)

lib.add('option', 'ydir', "auxlib/rtl")
Expand Down
4 changes: 2 additions & 2 deletions lambdalib/fpgalib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
########################
# SiliconCompiler Setup
########################
def setup(chip):
def setup():
'''
Lambdalib fpgalib
'''

lib = Library(chip, 'lambdalib_fpgalib', package='lambdalib', auto_enable=True)
lib = Library('lambdalib_fpgalib', package='lambdalib', auto_enable=True)
register_data_source(lib)

lib.add('option', 'ydir', "fpgalib/rtl")
Expand Down
4 changes: 2 additions & 2 deletions lambdalib/iolib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
########################
# SiliconCompiler Setup
########################
def setup(chip):
def setup():
'''
Lambdalib iolib
'''

lib = Library(chip, 'lambdalib_iolib', package='lambdalib', auto_enable=True)
lib = Library('lambdalib_iolib', package='lambdalib', auto_enable=True)
register_data_source(lib)

lib.add('option', 'ydir', "iolib/rtl")
Expand Down
4 changes: 2 additions & 2 deletions lambdalib/padring/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
########################
# SiliconCompiler Setup
########################
def setup(chip):
def setup():
'''
Lambdalib padring
'''

lib = Library(chip, 'lambdalib_padring', package='lambdalib', auto_enable=True)
lib = Library('lambdalib_padring', package='lambdalib', auto_enable=True)
register_data_source(lib)

lib.add('option', 'idir', "padring/rtl")
Expand Down
4 changes: 2 additions & 2 deletions lambdalib/ramlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
########################
# SiliconCompiler Setup
########################
def setup(chip):
def setup():
'''
Lambdalib ramlib
'''

lib = Library(chip, 'lambdalib_ramlib', package='lambdalib', auto_enable=True)
lib = Library('lambdalib_ramlib', package='lambdalib', auto_enable=True)
register_data_source(lib)

lib.add('option', 'ydir', "ramlib/rtl")
Expand Down
4 changes: 2 additions & 2 deletions lambdalib/stdlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
########################
# SiliconCompiler Setup
########################
def setup(chip):
def setup():
'''
Lambdalib stdlib
'''

lib = Library(chip, 'lambdalib_stdlib', package='lambdalib', auto_enable=True)
lib = Library('lambdalib_stdlib', package='lambdalib', auto_enable=True)
register_data_source(lib)

lib.add('option', 'ydir', "stdlib/rtl")
Expand Down
4 changes: 2 additions & 2 deletions lambdalib/syslib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
########################
# SiliconCompiler Setup
########################
def setup(chip):
def setup():
'''
Lambdalib syslib
'''

lib = Library(chip, 'lambdalib_syslib', package='lambdalib', auto_enable=True)
lib = Library('lambdalib_syslib', package='lambdalib', auto_enable=True)
register_data_source(lib)

lib.add('option', 'ydir', "syslib/rtl")
Expand Down
4 changes: 2 additions & 2 deletions lambdalib/vectorlib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
########################
# SiliconCompiler Setup
########################
def setup(chip):
def setup():
'''
Lambdalib vectorlib
'''

lib = Library(chip, 'lambdalib_vectorlib', package='lambdalib', auto_enable=True)
lib = Library('lambdalib_vectorlib', package='lambdalib', auto_enable=True)
register_data_source(lib)

lib.add('option', 'ydir', "vectorlib/rtl")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ urls = {Homepage = "https://github.com/siliconcompiler/lambdalib"}
requires-python = ">= 3.8"
license = {file = "LICENSE"}
dependencies = [
"siliconcompiler >= 0.26.0",
"siliconcompiler >= 0.27.0",
"Jinja2 >= 3.1.3"
]
dynamic = ['version']
Expand Down

0 comments on commit 8178766

Please sign in to comment.