Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

remove switchboard submodule and use switchboard-hw only #121

Merged
merged 1 commit into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "submodules/lambdalib"]
path = submodules/lambdalib
url = git@github.com:siliconcompiler/lambdalib.git
[submodule "submodules/switchboard"]
path = submodules/switchboard
url = git@github.com:zeroasiccorp/switchboard.git
2 changes: 0 additions & 2 deletions lumi/testbench/test_lumi.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,9 @@ def build_testbench(topo="2d", trace=False):
else:
raise ValueError('Invalid topology')

dut.input(EX_DIR / '..' / 'submodules' / 'switchboard' / 'examples' / 'common' / 'verilator' / 'testbench.cc')
for option in ['ydir', 'idir']:
dut.add('option', option, EX_DIR / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'umi' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'switchboard' / 'examples' / 'common' / 'verilog')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'ramlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'stdlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'vectorlib' / 'rtl')
Expand Down
2 changes: 0 additions & 2 deletions lumi/testbench/test_lumi_rnd.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,9 @@ def build_testbench(topo="2d", trace=False):
else:
raise ValueError('Invalid topology')

dut.input(EX_DIR / '..' / 'submodules' / 'switchboard' / 'examples' / 'common' / 'verilator' / 'testbench.cc')
for option in ['ydir', 'idir']:
dut.add('option', option, EX_DIR / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'umi' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'switchboard' / 'examples' / 'common' / 'verilog')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'ramlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'stdlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'vectorlib' / 'rtl')
Expand Down
1 change: 0 additions & 1 deletion submodules/switchboard
Submodule switchboard deleted from dd5a7b
4 changes: 1 addition & 3 deletions umi/testbench/test_crossbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,16 @@
THIS_DIR = Path(__file__).resolve().parent

def build_testbench():
dut = SbDut('testbench')
dut = SbDut('testbench', default_main=True)

EX_DIR = Path('..')
EX_DIR = EX_DIR.resolve()

# Set up inputs
dut.input('testbench_crossbar.sv')

dut.input(EX_DIR / '..' / 'submodules' / 'switchboard' / 'examples' / 'common' / 'verilator' / 'testbench.cc')
for option in ['ydir', 'idir']:
dut.add('option', option, EX_DIR / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'switchboard' / 'examples' / 'common' / 'verilog')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'ramlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'stdlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'vectorlib' / 'rtl')
Expand Down
4 changes: 1 addition & 3 deletions umi/testbench/test_fifo.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,16 @@


def build_testbench():
dut = SbDut('testbench')
dut = SbDut('testbench', default_main=True)

EX_DIR = Path('..')
EX_DIR = EX_DIR.resolve()

# Set up inputs
dut.input('testbench_fifo.sv')

dut.input(EX_DIR / '..' / 'submodules' / 'switchboard' / 'examples' / 'common' / 'verilator' / 'testbench.cc')
for option in ['ydir', 'idir']:
dut.add('option', option, EX_DIR / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'switchboard' / 'examples' / 'common' / 'verilog')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'ramlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'stdlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'vectorlib' / 'rtl')
Expand Down
4 changes: 1 addition & 3 deletions umi/testbench/test_fifo_flex.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,16 @@


def build_testbench():
dut = SbDut('testbench')
dut = SbDut('testbench', default_main=True)

EX_DIR = Path('..')
EX_DIR = EX_DIR.resolve()

# Set up inputs
dut.input('testbench_fifo_flex.sv')

dut.input(EX_DIR / '..' / 'submodules' / 'switchboard' / 'examples' / 'common' / 'verilator' / 'testbench.cc')
for option in ['ydir', 'idir']:
dut.add('option', option, EX_DIR / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'switchboard' / 'examples' / 'common' / 'verilog')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'ramlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'stdlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'vectorlib' / 'rtl')
Expand Down
4 changes: 1 addition & 3 deletions umi/testbench/test_mem_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,16 @@


def build_testbench():
dut = SbDut('testbench')
dut = SbDut('testbench', default_main=True)

EX_DIR = Path('..')
EX_DIR = EX_DIR.resolve()

# Set up inputs
dut.input('testbench_mem_agent.sv')

dut.input(EX_DIR / '..' / 'submodules' / 'switchboard' / 'examples' / 'common' / 'verilator' / 'testbench.cc')
for option in ['ydir', 'idir']:
dut.add('option', option, EX_DIR / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'switchboard' / 'examples' / 'common' / 'verilog')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'ramlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'stdlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'vectorlib' / 'rtl')
Expand Down
4 changes: 1 addition & 3 deletions umi/testbench/test_regif.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,16 @@


def build_testbench():
dut = SbDut('testbench')
dut = SbDut('testbench', default_main=True)

EX_DIR = Path('..')
EX_DIR = EX_DIR.resolve()

# Set up inputs
dut.input('testbench_regif.sv')

dut.input(EX_DIR / '..' / 'submodules' / 'switchboard' / 'examples' / 'common' / 'verilator' / 'testbench.cc')
for option in ['ydir', 'idir']:
dut.add('option', option, EX_DIR / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'switchboard' / 'examples' / 'common' / 'verilog')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'ramlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'stdlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'vectorlib' / 'rtl')
Expand Down
2 changes: 1 addition & 1 deletion utils/testbench/test_umi2tl_np.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


def build_testbench(topo="2d"):
dut = SbDut('testbench')
dut = SbDut('testbench', default_main=False)

EX_DIR = Path('../..')
EX_DIR = EX_DIR.resolve()
Expand Down
3 changes: 1 addition & 2 deletions utils/testbench/test_umi_address_remap.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


def build_testbench(topo="2d"):
dut = SbDut('testbench')
dut = SbDut('testbench', default_main=True)

EX_DIR = Path('../..')

Expand All @@ -26,7 +26,6 @@ def build_testbench(topo="2d"):
else:
raise ValueError('Invalid topology')

dut.input(EX_DIR / 'submodules' / 'switchboard' / 'examples' / 'common' / 'verilator' / 'testbench.cc')
for option in ['ydir', 'idir']:
dut.add('option', option, EX_DIR / 'umi' / 'rtl')
dut.add('option', option, EX_DIR / 'utils' / 'rtl')
Expand Down
2 changes: 1 addition & 1 deletion utils/testbench/test_umi_packet_merge_greedy.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


def build_testbench(topo="2d"):
dut = SbDut('testbench')
dut = SbDut('testbench', default_main=False)

EX_DIR = Path('../..')

Expand Down