forked from nguyenthienviet/16-QAM-verilog-based-transmitter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtop_level.v
51 lines (46 loc) · 854 Bytes
/
top_level.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
`timescale 1ns / 1ns
module top_level(
input clk,
input rst,
input start,
output [19:0] mixed_output
);
// Outputs
wire [3:0] parallel_data;
wire serial_in;
wire data_flag;
wire [15:0] sin, cos;
integer mixed_out;
// DUT
data_generator dat_gen(
.clk(clk),
.rst(rst),
.enable(start),
.serial_in(serial_in),
.data_flag(data_flag)
);
serial_2_parallel dut (
.clk(clk),
.rst(rst),
.start(start),
.serial_in(serial_in),
.data_flag(data_flag),
.parallel_data(parallel_data)
);
local_oscillator lo(
.clk(clk),
.rst(rst),
.start(start),
.sin(sin),
.cos(cos)
);
modulator md(
.clk(clk),
.rst(rst),
.start(start),
.parallel_data(parallel_data),
.sin(sin),
.cos(cos),
.mixed_output(mixed_output)
);
endmodule