Skip to content

Commit

Permalink
remove use of obsolete target key
Browse files Browse the repository at this point in the history
  • Loading branch information
gadfort committed Aug 28, 2024
1 parent 20bf35d commit 9918c65
Show file tree
Hide file tree
Showing 21 changed files with 44 additions and 62 deletions.
5 changes: 2 additions & 3 deletions scgallery/designs/aes/aes.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def setup(target=asap7_demo):

if __name__ == '__main__':
Gallery.design_commandline(chip)
else:
chip.load_target(target)

src_root = os.path.join('aes', 'src')
sdc_root = os.path.join('aes', 'constraints')
Expand All @@ -33,9 +35,6 @@ def setup(target=asap7_demo):

chip.add('option', 'idir', src_root, package='scgallery-designs')

if not chip.get('option', 'target'):
chip.load_target(target)

mainlib = chip.get('asic', 'logiclib')[0]
chip.input(os.path.join(sdc_root, f'{mainlib}.sdc'), package='scgallery-designs')

Expand Down
5 changes: 2 additions & 3 deletions scgallery/designs/ariane/ariane.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,15 @@ def setup(target=freepdk45_demo):

if __name__ == '__main__':
Gallery.design_commandline(chip)
else:
chip.load_target(target)

src_root = os.path.join('ariane', 'src')
sdc_root = os.path.join('ariane', 'constraints')

for src in ('ariane.sv2v.v', 'macros.v'):
chip.input(os.path.join(src_root, src), package='scgallery-designs')

if not chip.get('option', 'target'):
chip.load_target(target)

mainlib = chip.get('asic', 'logiclib')[0]
chip.input(os.path.join(sdc_root, f'{mainlib}.sdc'), package='scgallery-designs')

Expand Down
5 changes: 2 additions & 3 deletions scgallery/designs/black_parrot/black_parrot.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ def setup(target=freepdk45_demo):

if __name__ == '__main__':
Gallery.design_commandline(chip)
else:
chip.load_target(target)

src_root = os.path.join('black_parrot', 'src')
extra_root = os.path.join('black_parrot', 'extra')
Expand All @@ -25,9 +27,6 @@ def setup(target=freepdk45_demo):
for src in ('pickled.v',):
chip.input(os.path.join(src_root, src), package='scgallery-designs')

if not chip.get('option', 'target'):
chip.load_target(target)

mainlib = chip.get('asic', 'logiclib')[0]
chip.input(os.path.join(sdc_root, f'{mainlib}.sdc'), package='scgallery-designs')

Expand Down
5 changes: 2 additions & 3 deletions scgallery/designs/caliptra/datavault.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,15 @@ def setup(target=freepdk45_demo):

if __name__ == '__main__':
Gallery.design_commandline(chip)
else:
chip.load_target(target)

sdc_root = os.path.join('caliptra', 'constraints', 'datavault')

chip.use(datavault)

chip.set('option', 'entrypoint', 'dv')

if not chip.get('option', 'target'):
chip.load_target(target)

mainlib = chip.get('asic', 'logiclib')[0]
chip.input(os.path.join(sdc_root, f'{mainlib}.sdc'), package='scgallery-designs')

Expand Down
5 changes: 2 additions & 3 deletions scgallery/designs/caliptra/keyvault.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,15 @@ def setup(target=freepdk45_demo):

if __name__ == '__main__':
Gallery.design_commandline(chip)
else:
chip.load_target(target)

sdc_root = os.path.join('caliptra', 'constraints', 'keyvault')

chip.use(keyvault)

chip.set('option', 'entrypoint', 'kv')

if not chip.get('option', 'target'):
chip.load_target(target)

mainlib = chip.get('asic', 'logiclib')[0]
chip.input(os.path.join(sdc_root, f'{mainlib}.sdc'), package='scgallery-designs')

Expand Down
5 changes: 2 additions & 3 deletions scgallery/designs/caliptra/sha512.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,15 @@ def setup(target=freepdk45_demo):

if __name__ == '__main__':
Gallery.design_commandline(chip)
else:
chip.load_target(target)

sdc_root = os.path.join('caliptra', 'constraints', 'sha512')

chip.use(sha512)

chip.set('option', 'entrypoint', 'sha512_ctrl')

if not chip.get('option', 'target'):
chip.load_target(target)

mainlib = chip.get('asic', 'logiclib')[0]
chip.input(os.path.join(sdc_root, f'{mainlib}.sdc'), package='scgallery-designs')

Expand Down
5 changes: 2 additions & 3 deletions scgallery/designs/dynamic_node/dynamic_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ def setup(target=asap7_demo):

if __name__ == '__main__':
Gallery.design_commandline(chip)
else:
chip.load_target(target)

sdc_root = os.path.join('dynamic_node', 'constraints')

Expand All @@ -23,9 +25,6 @@ def setup(target=asap7_demo):
chip.input('modules/dynamic_node_2dmesh/NETWORK_2dmesh/dynamic_node_2dmesh.pickle.v',
package='OPDB')

if not chip.get('option', 'target'):
chip.load_target(target)

mainlib = chip.get('asic', 'logiclib')[0]
chip.input(os.path.join(sdc_root, f'{mainlib}.sdc'), package='scgallery-designs')

Expand Down
5 changes: 2 additions & 3 deletions scgallery/designs/ethmac/ethmac.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ def setup(target=asap7_demo):

if __name__ == '__main__':
Gallery.design_commandline(chip)
else:
chip.load_target(target)

src_root = os.path.join('ethmac', 'src')
sdc_root = os.path.join('ethmac', 'constraints')
Expand Down Expand Up @@ -47,9 +49,6 @@ def setup(target=asap7_demo):

chip.add('option', 'idir', src_root, package='scgallery-designs')

if not chip.get('option', 'target'):
chip.load_target(target)

_common.add_lambdalib_memory(chip)
chip.add('option', 'define', 'ETH_VIRTUAL_SILICON_RAM')
chip.input(os.path.join('ethmac', 'extra', 'lambda.v'), package='scgallery-designs')
Expand Down
8 changes: 4 additions & 4 deletions scgallery/designs/gcd/gcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from siliconcompiler import Chip
from siliconcompiler.targets import asap7_demo
from siliconcompiler.tools._common.asic import get_mainlib
from scgallery import Gallery


Expand All @@ -12,17 +13,16 @@ def setup(target=asap7_demo):

if __name__ == '__main__':
Gallery.design_commandline(chip)
else:
chip.load_target(target)

src_root = os.path.join('gcd', 'src')
sdc_root = os.path.join('gcd', 'constraints')

for src in ('gcd.v',):
chip.input(os.path.join(src_root, src), package='scgallery-designs')

if not chip.get('option', 'target'):
chip.load_target(target)

mainlib = chip.get('asic', 'logiclib')[0]
mainlib = get_mainlib(chip)
chip.input(os.path.join(sdc_root, f'{mainlib}.sdc'), package='scgallery-designs')

chip.set('tool', 'yosys', 'task', 'syn_asic', 'var', 'strategy', 'AREA3')
Expand Down
5 changes: 2 additions & 3 deletions scgallery/designs/heartbeat/heartbeat.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,15 @@ def setup(target=asap7_demo):

if __name__ == '__main__':
Gallery.design_commandline(chip)
else:
chip.load_target(target)

src_root = os.path.join('heartbeat', 'src')
sdc_root = os.path.join('heartbeat', 'constraints')

for src in ('heartbeat.v',):
chip.input(os.path.join(src_root, src), package='scgallery-designs')

if not chip.get('option', 'target'):
chip.load_target(target)

mainlib = chip.get('asic', 'logiclib')[0]
chip.input(os.path.join(sdc_root, f'{mainlib}.sdc'), package='scgallery-designs')

Expand Down
5 changes: 2 additions & 3 deletions scgallery/designs/ibex/ibex.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ def setup(target=asap7_demo):

if __name__ == '__main__':
Gallery.design_commandline(chip)
else:
chip.load_target(target)

sdc_root = os.path.join('ibex', 'constraints')

Expand Down Expand Up @@ -53,9 +55,6 @@ def setup(target=asap7_demo):

chip.add('option', 'define', 'SYNTHESIS')

if not chip.get('option', 'target'):
chip.load_target(target)

mainlib = chip.get('asic', 'logiclib')[0]
chip.input(os.path.join(sdc_root, f'{mainlib}.sdc'), package='scgallery-designs')

Expand Down
5 changes: 2 additions & 3 deletions scgallery/designs/jpeg/jpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ def setup(target=asap7_demo):

if __name__ == '__main__':
Gallery.design_commandline(chip)
else:
chip.load_target(target)

src_root = os.path.join('jpeg', 'src')
sdc_root = os.path.join('jpeg', 'constraints')
Expand All @@ -34,9 +36,6 @@ def setup(target=asap7_demo):
'zigzag.v'):
chip.input(os.path.join(src_root, src), package='scgallery-designs')

if not chip.get('option', 'target'):
chip.load_target(target)

mainlib = chip.get('asic', 'logiclib')[0]
chip.input(os.path.join(sdc_root, f'{mainlib}.sdc'), package='scgallery-designs')

Expand Down
5 changes: 2 additions & 3 deletions scgallery/designs/mock_alu/mock_alu.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ def setup(target=asap7_demo):

if __name__ == '__main__':
Gallery.design_commandline(chip)
else:
chip.load_target(target)

src_root = os.path.join('mock_alu', 'src')
sdc_root = os.path.join('mock_alu', 'constraints')
Expand Down Expand Up @@ -42,9 +44,6 @@ def setup(target=asap7_demo):
chip.add('tool', 'chisel', 'task', 'convert', 'var', 'argument',
f'--operations {",".join(operations)}')

if not chip.get('option', 'target'):
chip.load_target(target)

mainlib = chip.get('asic', 'logiclib')[0]
chip.input(os.path.join(sdc_root, f'{mainlib}.sdc'), package='scgallery-designs')

Expand Down
5 changes: 2 additions & 3 deletions scgallery/designs/openmsp430/openmsp430.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ def setup(target=skywater130_demo):

if __name__ == '__main__':
Gallery.design_commandline(chip)
else:
chip.load_target(target)

src_root = os.path.join('core', 'rtl', 'verilog')
sdc_root = os.path.join('openmsp430', 'constraints')
Expand Down Expand Up @@ -44,9 +46,6 @@ def setup(target=skywater130_demo):
'omsp_clock_mux.v'):
chip.input(os.path.join(src_root, src), package='openmsp430')

if not chip.get('option', 'target'):
chip.load_target(target)

mainlib = chip.get('asic', 'logiclib')[0]
chip.input(os.path.join(sdc_root, f'{mainlib}.sdc'), package='scgallery-designs')

Expand Down
5 changes: 2 additions & 3 deletions scgallery/designs/picorv32/picorv32.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ def setup(target=skywater130_demo):

if __name__ == '__main__':
Gallery.design_commandline(chip)
else:
chip.load_target(target)

sdc_root = os.path.join('picorv32', 'constraints')

Expand All @@ -22,9 +24,6 @@ def setup(target=skywater130_demo):
for src in ('picorv32.v',):
chip.input(src, package='picorv32')

if not chip.get('option', 'target'):
chip.load_target(target)

mainlib = chip.get('asic', 'logiclib')[0]
chip.input(os.path.join(sdc_root, f'{mainlib}.sdc'), package='scgallery-designs')

Expand Down
5 changes: 2 additions & 3 deletions scgallery/designs/riscv32i/riscv32i.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ def setup(target=skywater130_demo):

if __name__ == '__main__':
Gallery.design_commandline(chip)
else:
chip.load_target(target)

src_root = os.path.join('riscv32i', 'src')
sdc_root = os.path.join('riscv32i', 'constraints')
Expand Down Expand Up @@ -44,9 +46,6 @@ def setup(target=skywater130_demo):
'top.v'):
chip.input(os.path.join(src_root, src), package='scgallery-designs')

if not chip.get('option', 'target'):
chip.load_target(target)

mainlib = chip.get('asic', 'logiclib')[0]
chip.input(os.path.join(sdc_root, f'{mainlib}.sdc'), package='scgallery-designs')

Expand Down
5 changes: 2 additions & 3 deletions scgallery/designs/spi/spi.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,15 @@ def setup(target=asap7_demo):

if __name__ == '__main__':
Gallery.design_commandline(chip)
else:
chip.load_target(target)

src_root = os.path.join('spi', 'src')
sdc_root = os.path.join('spi', 'constraints')

for src in ('spi.v',):
chip.input(os.path.join(src_root, src), package='scgallery-designs')

if not chip.get('option', 'target'):
chip.load_target(target)

mainlib = chip.get('asic', 'logiclib')[0]
chip.input(os.path.join(sdc_root, f'{mainlib}.sdc'), package='scgallery-designs')

Expand Down
5 changes: 2 additions & 3 deletions scgallery/designs/swerv/swerv.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ def setup(target=asap7_demo):

if __name__ == '__main__':
Gallery.design_commandline(chip)
else:
chip.load_target(target)

sdc_root = os.path.join('swerv', 'constraints')
lint_root = os.path.join('swerv', 'lint')
Expand Down Expand Up @@ -75,9 +77,6 @@ def setup(target=asap7_demo):

chip.add('option', 'define', 'PHYSICAL')

if not chip.get('option', 'target'):
chip.load_target(target)

mainlib = chip.get('asic', 'logiclib')[0]
chip.input(os.path.join(sdc_root, f'{mainlib}.sdc'), package='scgallery-designs')

Expand Down
5 changes: 2 additions & 3 deletions scgallery/designs/tiny_rocket/tiny_rocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ def setup(target=freepdk45_demo):

if __name__ == '__main__':
Gallery.design_commandline(chip)
else:
chip.load_target(target)

src_root = os.path.join('tiny_rocket', 'src')
extra_root = os.path.join('tiny_rocket', 'extra')
Expand All @@ -25,9 +27,6 @@ def setup(target=freepdk45_demo):
'plusarg_reader.v'):
chip.input(os.path.join(src_root, src), package='scgallery-designs')

if not chip.get('option', 'target'):
chip.load_target(target)

mainlib = chip.get('asic', 'logiclib')[0]
chip.input(os.path.join(sdc_root, f'{mainlib}.sdc'), package='scgallery-designs')

Expand Down
5 changes: 2 additions & 3 deletions scgallery/designs/uart/uart.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ def setup(target=asap7_demo):

if __name__ == '__main__':
Gallery.design_commandline(chip)
else:
chip.load_target(target)

src_root = os.path.join('uart', 'src')
sdc_root = os.path.join('uart', 'constraints')
Expand All @@ -22,9 +24,6 @@ def setup(target=asap7_demo):
'uart_rx.v'):
chip.input(os.path.join(src_root, src), package='scgallery-designs')

if not chip.get('option', 'target'):
chip.load_target(target)

mainlib = chip.get('asic', 'logiclib')[0]
chip.input(os.path.join(sdc_root, f'{mainlib}.sdc'), package='scgallery-designs')

Expand Down
Loading

0 comments on commit 9918c65

Please sign in to comment.