-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsplit_combine_tb.v
More file actions
56 lines (47 loc) · 1.15 KB
/
split_combine_tb.v
File metadata and controls
56 lines (47 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
`timescale 1ns / 1ps
////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 17:53:50 04/18/2021
// Design Name: split_combine
// Module Name: D:/Education/Semester 6/DSD Lab/Lab 4/lab4/split_combine_tb.v
// Project Name: lab4
// Target Device:
// Tool versions:
// Description:
//
// Verilog Test Fixture created by ISE for module: split_combine
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
////////////////////////////////////////////////////////////////////////////////
module split_combine_tb;
// Inputs
reg [7:0] in;
// Outputs
wire [8:0] number;
wire [1:0] num1;
wire [1:0] num2;
wire [1:0] num3;
wire [1:0] num4;
// Instantiate the Unit Under Test (UUT)
split_combine uut (
.number(number),
.num1(num1),
.num2(num2),
.num3(num3),
.num4(num4),
.in(in)
);
initial begin
// Initialize Inputs
$monitor($time,"in=%b,num1=%b,num2=%b,num3=%b,num4=%b,number=%b",in, num1, num2, num3, num4, number);
in = 8'b00110101;
#100;
end
endmodule