@@ -8,26 +8,26 @@ module transceiver_top #(
8
8
parameter SAMPLE_NUMBER = 256 , // ! numbers of sample in one sine period
9
9
parameter SAMPLE_WIDTH = 12 , // ! sample width
10
10
parameter DATA_WIDTH = 12 , // ! data width
11
- parameter SIN_VALUE = "sin_val.dat" , // ! dat file with sine samples
12
- parameter NEG_SIN_VALUE = "neg_sin_val.dat" // ! dat file with negative sine samples
11
+ parameter SIN_VALUE = "top/ sin_val.dat" , // ! dat file with sine samples
12
+ parameter NEG_SIN_VALUE = "top/ neg_sin_val.dat" // ! dat file with negative sine samples
13
13
) (
14
14
input wire clk, // ! clock input (100 MHz)
15
15
input wire arstn, // ! asynchronous reset input (negative)
16
16
input wire data, // ! data input
17
17
input wire en, // ! enable input
18
18
output wire q // ! quit output
19
- );
20
-
19
+ );
20
+
21
21
// wire clk10_out; //! 10 MHz clock from PLL
22
22
wire done; // ! uart transmit done output
23
- wire active; // ! uart transmit active output
23
+ wire active; // ! uart transmit active output
24
24
wire data_valid; // ! uart transmit data valid output
25
25
wire [7 :0 ] uart_rx_out; // ! uart receive instance output
26
- wire [7 :0 ] decoder_out; // ! hamming decoder instance output
27
- wire [DATA_WIDTH- 1 :0 ] encoder_out; // ! hamming encoder instance output
26
+ wire [7 :0 ] decoder_out; // ! hamming decoder instance output
27
+ wire [DATA_WIDTH- 1 :0 ] encoder_out; // ! hamming encoder instance output
28
28
wire [$clog2(SAMPLE_NUMBER)- 1 :0 ] cnt_out; // ! sine generator counter output
29
29
wire [DATA_WIDTH- 1 :0 ] demodulator_out; // ! binary phase shift key demodulator instance output
30
- wire [SAMPLE_WIDTH- 1 :0 ] modulator_out; // ! binary phase shift key modulator instance output
30
+ wire [SAMPLE_WIDTH- 1 :0 ] modulator_out; // ! binary phase shift key modulator instance output
31
31
wire [SAMPLE_WIDTH- 1 :0 ] neg_sin_out; // ! negative sine generator output
32
32
wire [SAMPLE_WIDTH- 1 :0 ] sin_out; // ! sine generator output
33
33
@@ -96,14 +96,14 @@ module transceiver_top #(
96
96
);
97
97
98
98
hamming_decoder decoder_inst ( // ! hamming decoder instance
99
- // .clk (clk10_out),
99
+ // .clk (clk10_out),
100
100
.clk (clk ),
101
101
.arstn (arstn ),
102
102
.rden (en ),
103
103
.hc_in (demodulator_out),
104
104
.q (decoder_out )
105
105
);
106
-
106
+
107
107
UART_TX #( // ! uart transmit instance
108
108
.CLKS_PER_BIT (CLKS_PER_BIT)
109
109
) uart_tx_inst (
0 commit comments