Signed-off-by: Clifford Wolf <clifford@clifford.at>
--- /dev/null
+module uut_arrays02(clock, we, addr, wr_data, rd_data);
+
+input clock, we;
+input [3:0] addr, wr_data;
+output [3:0] rd_data;
+reg [3:0] rd_data;
+
+reg [3:0] memory [16];
+
+always @(posedge clock) begin
+ if (we)
+ memory[addr] <= wr_data;
+ rd_data <= memory[addr];
+end
+
+endmodule
+++ /dev/null
-module unpacked_arrays;
- reg array_range [0:7];
- reg array_size [8];
-endmodule
+++ /dev/null
-read_verilog -sv unpacked_arrays.sv
-stat