split out basic suite tests with refs to new core suite

This commit is contained in:
Zachary Snow
2021-06-25 11:21:47 -06:00
parent bb938f1e0b
commit d95a56286c
389 changed files with 2 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
module Unpacker(in, select, a, b, c);
parameter WIDTH = 8;
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*7+:7];
assign a = p[6:6];
assign b = p[5:2];
assign c = p[1:0];
endmodule