Skip to content

Commit a2f2edf

Browse files
committed
Fixed path to la_asyncfifo.v
1 parent e3005c5 commit a2f2edf

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

lambdalib/ramlib/tests/tb_la_asyncfifo.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async def test_almost_full(dut):
6767
# Almost full should be low before writing to FIFO
6868
assert dut.wr_almost_full.value == 0
6969

70-
# Write to FIFO
70+
# Write to FIFO
7171
for i in range(0, almost_full_level):
7272
await fifo_source.send(i)
7373

@@ -165,9 +165,7 @@ async def fifo_rd_wr_test(
165165
def test_la_asyncfifo():
166166
chip = siliconcompiler.Chip("la_asyncfifo")
167167

168-
# TODO: Ask Peter how to set la_asyncfifo path
169-
# such that it can be found by pytest and when run locally
170-
chip.input("../rtl/la_asyncfifo.v")
168+
chip.input("ramlib/rtl/la_asyncfifo.v", package='lambdalib')
171169
chip.use(ramlib)
172170

173171
for depth in [2, 4, 8]:

lambdalib/utils/_tb_common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def run_cocotb(
3636

3737
results_xml = None
3838
# Need to check if we are running inside of pytest. See link below.
39-
# https://github.com/cocotb/cocotb/blob/d883ce914063c3601455d10a40f459fffa22d8f2/cocotb/runner.py#L313
39+
# https://github.com/cocotb/cocotb/blob/d883ce914063c3601455d10a40f459fffa22d8f2/cocotb/runner.py#L313
4040
if not os.getenv("PYTEST_CURRENT_TEST", None):
4141
results_xml = build_dir / "results.xml"
4242
test_dir = top_level_dir
@@ -58,6 +58,7 @@ def run_cocotb(
5858
test_dir=test_dir,
5959
results_xml=results_xml,
6060
build_dir=build_dir,
61+
timescale=timescale,
6162
waves=True
6263
))
6364

0 commit comments

Comments
 (0)