Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit cfe1e45

Browse files
committed
test multirange access
1 parent 6f8d926 commit cfe1e45

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

tests/MultirangeAccess/Makefile.in

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
TOP_FILE := $(TEST_DIR)/top.sv
2+
TOP_MODULE := top

tests/MultirangeAccess/top.sv

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
typedef logic [3:0][7:0] my_struct_packed_t;
2+
3+
module top (
4+
input my_struct_packed_t x,
5+
output my_struct_packed_t y
6+
);
7+
assign y[2][1] = x[1][0];
8+
endmodule : top
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
source ../yosys_common.tcl
2+
3+
prep -top \\top
4+
write_verilog
5+
write_verilog yosys.sv

0 commit comments

Comments
 (0)