-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtop.v
56 lines (46 loc) · 987 Bytes
/
top.v
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
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 2023/05/06 21:18:59
// Design Name:
// Module Name: testbench
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module top(
input clk,
input rst,
output [7:0]o_seg,
output [7:0]o_sel
);
wire clk_sc;
wire [31:0]ins;
wire [31:0]pc;
clk_change clk_wiz_0_inst(
.clk_in1(clk),
.clk_out1(clk_sc)
);
sccomp_dataflow sc(
.clk_in(clk_sc), .reset(rst),
.inst(ins), .pc(pc)
);
seg7x16 seg7x16_inst(
.clk(clk),
.reset(rst),
.cs(1'b1),
.i_data(ins),
.o_seg(o_seg),
.o_sel(o_sel)
);
endmodule