Skip to content

Commit

Permalink
modules/zstd/memory/MemWriter: Add cocotb test
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Czarnecki <pczarnecki@antmicro.com>
  • Loading branch information
lpawelcz committed Sep 23, 2024
1 parent 9fac273 commit f3d5e7c
Show file tree
Hide file tree
Showing 3 changed files with 788 additions and 0 deletions.
26 changes: 26 additions & 0 deletions xls/modules/zstd/memory/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -725,3 +725,29 @@ place_and_route(
tags = ["manual"],
target_die_utilization_percentage = "10",
)

py_test(
name = "mem_writer_cocotb_test",
srcs = ["mem_writer_cocotb_test.py"],
data = [
":mem_writer.v",
":mem_writer_wrapper.v",
"@com_icarus_iverilog//:iverilog",
"@com_icarus_iverilog//:vvp",
],
imports = ["."],
tags = ["manual"],
visibility = ["//xls:xls_users"],
deps = [
requirement("cocotb"),
requirement("cocotbext-axi"),
requirement("pytest"),
"//xls/common:runfiles",
"//xls/modules/zstd/cocotb:channel",
"//xls/modules/zstd/cocotb:utils",
"//xls/modules/zstd/cocotb:xlsstruct",
"@com_google_absl_py//absl:app",
"@com_google_absl_py//absl/flags",
"@com_google_protobuf//:protobuf_python",
],
)
Loading

0 comments on commit f3d5e7c

Please sign in to comment.