OpenCores
URL https://opencores.org/ocsvn/dmt_tx/dmt_tx/trunk

Subversion Repositories dmt_tx

[/] [dmt_tx/] [trunk/] [const_encoder/] [tb/] [const_map_data.v] - Blame information for rev 26

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 21 dannori
 
2 22 dannori
// ///////////////////////////////////////////////////////////////////
3
//
4
// 2 -bit constellation map
5
//
6
// ///////////////////////////////////////////////////////////////////
7 21 dannori
module const_map_2bit;
8
 
9
`include "parameters.vh"
10
 
11
reg signed [CONSTW-1:0] re [0:3];
12
reg signed [CONSTW-1:0] im [0:3];
13
 
14
 
15
initial begin : init_2bit
16
  re[0] = 1; im[0] = 1;
17
  re[1] = 1; im[1] = -1;
18
  re[2] = -1; im[2] = 1;
19
  re[3] = -1; im[3] = -1;
20
end
21
 
22 22 dannori
endmodule
23 21 dannori
 
24 22 dannori
 
25
// ///////////////////////////////////////////////////////////////////
26
//
27
// 3 -bit constellation map
28
//
29
// ///////////////////////////////////////////////////////////////////
30
module const_map_3bit;
31
 
32
`include "parameters.vh"
33
 
34
reg signed [CONSTW-1:0] re [0:7];
35
reg signed [CONSTW-1:0] im [0:7];
36
 
37
 
38
initial begin
39
  re[0] =  1; im[0] =  1;
40
  re[1] =  1; im[1] = -1;
41
  re[2] = -1; im[2] =  1;
42
  re[3] = -1; im[3] = -1;
43
  re[4] = -3; im[4] =  1;
44
  re[5] =  1; im[5] =  3;
45
  re[6] = -1; im[6] = -3;
46
  re[7] =  3; im[7] = -1;
47
end
48
 
49 21 dannori
endmodule
50 22 dannori
 
51
// ///////////////////////////////////////////////////////////////////
52
//
53
// 4 -bit constellation map
54
//
55
// ///////////////////////////////////////////////////////////////////
56
module const_map_4bit;
57
 
58
`include "parameters.vh"
59
 
60
reg signed [CONSTW-1:0] re [0:15];
61
reg signed [CONSTW-1:0] im [0:15];
62
 
63
 
64
initial begin
65
  re[0] =  1; im[0] =  1;
66
  re[1] =  1; im[1] =  3;
67
  re[2] =  3; im[2] =  1;
68
  re[3] =  3; im[3] =  3;
69
  re[4] =  1; im[4] = -3;
70
  re[5] =  1; im[5] = -1;
71
  re[6] =  3; im[6] = -3;
72
  re[7] =  3; im[7] = -1;
73
  re[8] = -3; im[8] =  1;
74
  re[9] =  -3; im[9] =  3;
75
  re[10] = -1; im[10] =  1;
76
  re[11] = -1; im[11] =  3;
77
  re[12] = -3; im[12] = -3;
78
  re[13] = -3; im[13] = -1;
79
  re[14] = -1; im[14] = -3;
80
  re[15] = -1; im[15] = -1;
81
end
82
 
83
endmodule
84
 
85
// ///////////////////////////////////////////////////////////////////
86
//
87
// 5 -bit constellation map
88
//
89
// ///////////////////////////////////////////////////////////////////
90
module const_map_5bit;
91
 
92
`include "parameters.vh"
93
 
94
reg signed [CONSTW-1:0] re [0:31];
95
reg signed [CONSTW-1:0] im [0:31];
96
 
97
 
98
initial begin
99
  re[0] =  1; im[0] =  1;
100
  re[1] =  1; im[1] =  3;
101
  re[2] =  3; im[2] =  1;
102
  re[3] =  3; im[3] =  3;
103
  re[4] =  1; im[4] = -3;
104
  re[5] =  1; im[5] = -1;
105
  re[6] =  3; im[6] = -3;
106
  re[7] =  3; im[7] = -1;
107
  re[8] = -3; im[8] =  1;
108
  re[9] =  -3; im[9] =  3;
109
  re[10] = -1; im[10] =  1;
110
  re[11] = -1; im[11] =  3;
111
  re[12] = -3; im[12] = -3;
112
  re[13] = -3; im[13] = -1;
113
  re[14] = -1; im[14] = -3;
114
  re[15] = -1; im[15] = -1;
115
  re[16] =  5; im[16] =  1;
116
  re[17] =  5; im[17] =  3;
117
  re[18] = -5; im[18] =  1;
118
  re[19] = -5; im[19] =  3;
119
  re[20] =  1; im[20] =  5;
120
  re[21] =  1; im[21] = -5;
121
  re[22] =  3; im[22] =  5;
122
  re[23] =  3; im[23] = -5;
123
  re[24] = -3; im[24] =  5;
124
  re[25] = -3; im[25] = -5;
125
  re[26] = -1; im[26] =  5;
126
  re[27] = -1; im[27] = -5;
127
  re[28] =  5; im[28] = -3;
128
  re[29] =  5; im[29] = -1;
129
  re[30] = -5; im[30] = -3;
130
  re[31] = -5; im[31] = -1;
131
end
132
 
133
endmodule

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.