made tests in basic suite yosys-friendly

- multipack
- multipack_port
- package_order
- struct_array
This commit is contained in:
Zachary Snow
2020-01-05 15:29:12 -05:00
parent 2266dd69d6
commit 8cc649a090
7 changed files with 68 additions and 107 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
module Unpacker(in, select, a, b, c);
parameter WIDTH = 8;
input wire [WIDTH-1:0][6:0] in;
input wire [WIDTH*7-1:0] in;
input wire [$clog2(WIDTH)-1:0] select;
output wire a;
output wire [3:0] b;
output wire [1:0] c;
wire [6:0] p;
assign p = in[select];
assign p = in[select*7+:7];
assign a = p[6:6];
assign b = p[5:2];
assign c = p[1:0];