-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlago_fpga_vhdl.vhd_orig
699 lines (633 loc) · 25.6 KB
/
lago_fpga_vhdl.vhd_orig
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
--
-- Copyright (C) 2011 Horacio Arnaldi
-- e-mail: [email protected]
--
-- Laboratorio de Detección de Partículas y Radiación
-- Centro Atómico Bariloche
-- Comisión Nacional de Energía Atómica (CNEA)
-- San Carlos de Bariloche
-- Date: 26/09/2011
-- Ver: v1r7 --
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
entity lago_fpga_sync is
generic (
VER : natural := 2;
REV : natural := 1;
RESET_POLARITY : std_logic := '1';
W : natural := 5;
ADCBITS : natural := 10;
L_ARRAY_MUESTRAS : natural := 12;
L_ARRAY_PPS : natural := 10;
L_ARRAY_SCALERS : natural := 3,
RBITS : natural := 12; -- := 12; -- numero de bits de los registros
REFRESH_RATE : natural := 80000; -- := 80000; -- 80000 clk implican un refresh rate de 2ms (80000 * 25 ns = 2ms)
NCH : natural := 3 --:= 3 -- numero de canales de la electronica
);
port(
-- Main 50 MHz clk
clk_50m : in std_logic;
-- Reset button (BTN0)
reset : in std_logic;
-- USB interface
u_ifclk : in std_logic;
-- Data & control from the FX2
u_flagb : in std_logic; -- EP2 empty, active low
u_flagc : in std_logic; -- EP6 full, active low
u_fd : inout std_logic_vector(7 downto 0);
-- Control to the FX2
u_fifoad : out std_logic_vector(1 downto 0);
u_sloe : out std_logic;
u_slrd : out std_logic; -- active low
u_slwr : out std_logic; -- active low
u_pktend : out std_logic; -- active low
-- ADC inputs and clocks
ch1 : in std_logic_vector(9 downto 0);
ch2 : in std_logic_vector(9 downto 0);
ch3 : in std_logic_vector(9 downto 0);
adc_clk1 : out std_logic;
adc_clk2 : out std_logic;
adc_clk3 : out std_logic;
-- SPI outputs
cs_e2prom : out std_logic;
cs_max5501 : out std_logic;
spi_dout : out std_logic;
spi_sck : out std_logic;
-- PWM outputs
hv2 : out std_logic;
hv3 : out std_logic;
-- I2C and HP03 related signals
pSDA : inout std_logic;
pSCL : out std_logic;
pXCLR : out std_logic;
pMCLK : out std_logic;
--GPS realted signals
GPSen : in std_logic;
-- 1PPS signal
pps_port : in std_logic;
--UART ports
tx_uart : out std_logic;
rx_uart : in std_logic;
--Copy of GPS received signals to sync two Nexys
rx_uart_copy : inout std_logic;
pps_port_copy : inout std_logic;
--BCD leds dirvers
an : out std_logic_vector(3 downto 0);
seg : out std_logic_vector(6 downto 0);
dp : out std_logic;
-- Status signals
led : out std_logic_vector(7 downto 0)
);
end lago_fpga_sync;
architecture rtl of lago_fpga_sync is
component clk_40mhz
port(
clk_50mhz : in std_logic;
clk_40mhz : out std_logic);
end component;
component interfaz_max5501
port(
fpga_clk : in std_logic;
data_dac1 : in std_logic_vector(11 downto 0);
data_dac2 : in std_logic_vector(11 downto 0);
data_dac3 : in std_logic_vector(11 downto 0);
data_dac4 : in std_logic_vector(11 downto 0);
cs_e2prom : out std_logic;
cs_max5501 : out std_logic;
spi_dout : out std_logic;
spi_sck : out std_logic);
end component;
component HP03_cntrl is
Port (
clk : in std_logic;
SDA : inout std_logic;
SCL : out std_logic;
XCLR : out std_logic;
MCLK : out std_logic;
C1 : out std_logic_vector(15 downto 0);
C2 : out std_logic_vector(15 downto 0);
C3 : out std_logic_vector(15 downto 0);
C4 : out std_logic_vector(15 downto 0);
C5 : out std_logic_vector(15 downto 0);
C6 : out std_logic_vector(15 downto 0);
C7 : out std_logic_vector(15 downto 0);
A : out std_logic_vector(7 downto 0);
B : out std_logic_vector(7 downto 0);
C : out std_logic_vector(7 downto 0);
D : out std_logic_vector(7 downto 0);
D1 : out std_logic_vector(15 downto 0);
D2 : out std_logic_vector(15 downto 0));
end component;
component Oncore_ctrl is
Port (
clk : in std_logic;
tx_female : out std_logic;
rx_female : in std_logic;
UTCnGPS : in std_logic;
month_port : out std_logic_vector(7 downto 0);
day_port : out std_logic_vector(7 downto 0);
year1_port : out std_logic_vector(7 downto 0);
year2_port : out std_logic_vector(7 downto 0);
hours_port : out std_logic_vector(7 downto 0);
minutes_port : out std_logic_vector(7 downto 0);
seconds_port : out std_logic_vector(7 downto 0);
fract_sec1_port : out std_logic_vector(7 downto 0);
fract_sec2_port : out std_logic_vector(7 downto 0);
fract_sec3_port : out std_logic_vector(7 downto 0);
fract_sec4_port : out std_logic_vector(7 downto 0);
latitude1_port : out std_logic_vector(7 downto 0);
latitude2_port : out std_logic_vector(7 downto 0);
latitude3_port : out std_logic_vector(7 downto 0);
latitude4_port : out std_logic_vector(7 downto 0);
longitude1_port : out std_logic_vector(7 downto 0);
longitude2_port : out std_logic_vector(7 downto 0);
longitude3_port : out std_logic_vector(7 downto 0);
longitude4_port : out std_logic_vector(7 downto 0);
ellipsoid1_port : out std_logic_vector(7 downto 0);
ellipsoid2_port : out std_logic_vector(7 downto 0);
ellipsoid3_port : out std_logic_vector(7 downto 0);
ellipsoid4_port : out std_logic_vector(7 downto 0);
velocity1_port : out std_logic_vector(7 downto 0);
velocity2_port : out std_logic_vector(7 downto 0);
heading1_port : out std_logic_vector(7 downto 0);
heading2_port : out std_logic_vector(7 downto 0);
geometry2_port : out std_logic_vector(7 downto 0);
DOP_type_port : out std_logic_vector(7 downto 0);
num_vis_sat_port : out std_logic_vector(7 downto 0);
num_track_sat_port : out std_logic_vector(7 downto 0);
sat_ID1_port : out std_logic_vector(7 downto 0);
chtm1_port : out std_logic_vector(7 downto 0);
CNo1_port : out std_logic_vector(7 downto 0);
chsf1_port : out std_logic_vector(7 downto 0);
sat_ID2_port : out std_logic_vector(7 downto 0);
chtm2_port : out std_logic_vector(7 downto 0);
CNo2_port : out std_logic_vector(7 downto 0);
chsf2_port : out std_logic_vector(7 downto 0);
sat_ID3_port : out std_logic_vector(7 downto 0);
chtm3_port : out std_logic_vector(7 downto 0);
CNo3_port : out std_logic_vector(7 downto 0);
chsf3_port : out std_logic_vector(7 downto 0);
sat_ID4_port : out std_logic_vector(7 downto 0);
chtm4_port : out std_logic_vector(7 downto 0);
CNo4_port : out std_logic_vector(7 downto 0);
chsf4_port : out std_logic_vector(7 downto 0);
sat_ID5_port : out std_logic_vector(7 downto 0);
chtm5_port : out std_logic_vector(7 downto 0);
CNo5_port : out std_logic_vector(7 downto 0);
chsf5_port : out std_logic_vector(7 downto 0);
sat_ID6_port : out std_logic_vector(7 downto 0);
chtm6_port : out std_logic_vector(7 downto 0);
CNo6_port : out std_logic_vector(7 downto 0);
chsf6_port : out std_logic_vector(7 downto 0);
sat_ID7_port : out std_logic_vector(7 downto 0);
chtm7_port : out std_logic_vector(7 downto 0);
CNo7_port : out std_logic_vector(7 downto 0);
chsf7_port : out std_logic_vector(7 downto 0);
sat_ID8_port : out std_logic_vector(7 downto 0);
chtm8_port : out std_logic_vector(7 downto 0);
CNo8_port : out std_logic_vector(7 downto 0);
chsf8_port : out std_logic_vector(7 downto 0);
rsf_port : out std_logic_vector(7 downto 0));
end component;
signal sclk40m : std_logic;
-- Trigger related signals
signal sT1, sT2, sT3 : std_logic_vector(9 downto 0);
-- SubTrigger related signals
signal ssubT1, ssubT2, ssubT3 : std_logic_vector(9 downto 0);
signal swr_fifo_A, swr_fifo_B : std_logic;
signal sBL1, sBL2, sBL3, siHV1 : std_logic_vector(11 downto 0);
signal siHV2, siHV3, soHV1, soHV2, soHV3 : std_logic_vector(11 downto 0);
signal sfifo_in : std_logic_vector(31 downto 0);
signal sfifo_status : std_logic_vector(7 downto 0);
signal sstatus_port, srx_data, sout_port : std_logic_vector(7 downto 0);
signal swrite_to_fifo, sread_from_fifo : std_logic;
--HP03 related signals
signal sC1, sC2, sC3, sC4, sC5, sC6, sC7, sD1, sD2 : std_logic_vector(15 downto 0);
signal sA, sB, sC, sD : std_logic_vector(7 downto 0);
--GPS realted signals
signal sutcngps : std_logic;
signal smonth : std_logic_vector(7 downto 0);
signal sday : std_logic_vector(7 downto 0);
signal syear1 : std_logic_vector(7 downto 0);
signal syear2 : std_logic_vector(7 downto 0);
signal shours : std_logic_vector(7 downto 0);
signal sminutes : std_logic_vector(7 downto 0);
signal sseconds : std_logic_vector(7 downto 0);
signal sfract_sec1 : std_logic_vector(7 downto 0);
signal sfract_sec2 : std_logic_vector(7 downto 0);
signal sfract_sec3 : std_logic_vector(7 downto 0);
signal sfract_sec4 : std_logic_vector(7 downto 0);
signal slatitude1 : std_logic_vector(7 downto 0);
signal slatitude2 : std_logic_vector(7 downto 0);
signal slatitude3 : std_logic_vector(7 downto 0);
signal slatitude4 : std_logic_vector(7 downto 0);
signal slongitude1 : std_logic_vector(7 downto 0);
signal slongitude2 : std_logic_vector(7 downto 0);
signal slongitude3 : std_logic_vector(7 downto 0);
signal slongitude4 : std_logic_vector(7 downto 0);
signal sellipsoid1 : std_logic_vector(7 downto 0);
signal sellipsoid2 : std_logic_vector(7 downto 0);
signal sellipsoid3 : std_logic_vector(7 downto 0);
signal sellipsoid4 : std_logic_vector(7 downto 0);
signal svelocity1 : std_logic_vector(7 downto 0);
signal svelocity2 : std_logic_vector(7 downto 0);
signal sheading1 : std_logic_vector(7 downto 0);
signal sheading2 : std_logic_vector(7 downto 0);
signal sgeometry2 : std_logic_vector(7 downto 0);
signal sDOP_type : std_logic_vector(7 downto 0);
signal sNVS : std_logic_vector(7 downto 0);
signal sNTS : std_logic_vector(7 downto 0);
signal ssat_ID1 : std_logic_vector(7 downto 0);
signal schtm1 : std_logic_vector(7 downto 0);
signal sCNo1 : std_logic_vector(7 downto 0);
signal schsf1 : std_logic_vector(7 downto 0);
signal ssat_ID2 : std_logic_vector(7 downto 0);
signal schtm2 : std_logic_vector(7 downto 0);
signal sCNo2 : std_logic_vector(7 downto 0);
signal schsf2 : std_logic_vector(7 downto 0);
signal ssat_ID3 : std_logic_vector(7 downto 0);
signal schtm3 : std_logic_vector(7 downto 0);
signal sCNo3 : std_logic_vector(7 downto 0);
signal schsf3 : std_logic_vector(7 downto 0);
signal ssat_ID4 : std_logic_vector(7 downto 0);
signal schtm4 : std_logic_vector(7 downto 0);
signal sCNo4 : std_logic_vector(7 downto 0);
signal schsf4 : std_logic_vector(7 downto 0);
signal ssat_ID5 : std_logic_vector(7 downto 0);
signal schtm5 : std_logic_vector(7 downto 0);
signal sCNo5 : std_logic_vector(7 downto 0);
signal schsf5 : std_logic_vector(7 downto 0);
signal ssat_ID6 : std_logic_vector(7 downto 0);
signal schtm6 : std_logic_vector(7 downto 0);
signal sCNo6 : std_logic_vector(7 downto 0);
signal schsf6 : std_logic_vector(7 downto 0);
signal ssat_ID7 : std_logic_vector(7 downto 0);
signal schtm7 : std_logic_vector(7 downto 0);
signal sCNo7 : std_logic_vector(7 downto 0);
signal schsf7 : std_logic_vector(7 downto 0);
signal ssat_ID8 : std_logic_vector(7 downto 0);
signal schtm8 : std_logic_vector(7 downto 0);
signal sCNo8 : std_logic_vector(7 downto 0);
signal schsf8 : std_logic_vector(7 downto 0);
signal srsf : std_logic_vector(7 downto 0);
signal HV1_led, HV2_led, HV3_led : std_logic;
begin
-- BCD drivers
an <= (others => '0');
seg <= (others => '1');
dp <= '1';
rx_uart_copy <= rx_uart;
pps_port_copy <= pps_port;
led(0) <= sfifo_status(0);
led(1) <= sfifo_status(1);
led(2) <= sfifo_status(2);
led(4) <= pps_port;
led(5) <= HV3_led;
led(6) <= HV2_led;
led(7) <= HV1_led;
adc_clk1 <= sclk40m;
adc_clk2 <= sclk40m;
adc_clk3 <= sclk40m;
clk40mgen: clk_40mhz
port map(
clk_50mhz => clk_50m,
clk_40mhz => sclk40m);
USB_interface: entity work.usb_if_ctrl
generic map(
VER => VER,
REV => REV,
RESET_POLARITY => RESET_POLARITY
)
port map(
reset => reset,
u_ifclk => u_ifclk,
u_fd => u_fd,
u_flagc => u_flagc,
u_flagb => u_flagb,
u_sloe => u_sloe,
u_slrd => u_slrd,
u_slwr => u_slwr,
u_fifoad => u_fifoad,
u_pktend => u_pktend,
T1 => sT1,
T2 => sT2,
T3 => sT3,
subT1 => ssubT1,
subT2 => ssubT2,
subT3 => ssubT3,
BL1 => sBL1,
BL2 => sBL2,
BL3 => sBL3,
HV1 => siHV1,
HV2 => siHV2,
HV3 => siHV3,
clk40m => sclk40m,
fifo_A => sfifo_in,
we_A => swr_fifo_A,
--HP03 signals
pC1 => sC1,
pC2 => sC2,
pC3 => sC3,
pC4 => sC4,
pC5 => sC5,
pC6 => sC6,
pC7 => sC7,
pA => sA,
pB => sB,
pC => sC,
pD => sD,
pD1 => sD1,
pD2 => sD2,
--GPS signals
UTCnGPS => sutcngps,
month_port => smonth,
day_port => sday,
year1_port => syear1,
year2_port => syear2,
hours_port => shours,
minutes_port => sminutes,
seconds_port => sseconds,
fract_sec1_port => sfract_sec1,
fract_sec2_port => sfract_sec2,
fract_sec3_port => sfract_sec3,
fract_sec4_port => sfract_sec4,
latitude1_port => slatitude1,
latitude2_port => slatitude2,
latitude3_port => slatitude3,
latitude4_port => slatitude4,
longitude1_port => slongitude1,
longitude2_port => slongitude2,
longitude3_port => slongitude3,
longitude4_port => slongitude4,
ellipsoid1_port => sellipsoid1,
ellipsoid2_port => sellipsoid2,
ellipsoid3_port => sellipsoid3,
ellipsoid4_port => sellipsoid4,
velocity1_port => svelocity1,
velocity2_port => svelocity2,
heading1_port => sheading1,
heading2_port => sheading2,
geometry2_port => sgeometry2,
DOP_type_port => sDOP_type,
num_vis_sat_port => sNVS,
num_track_sat_port => sNTS,
sat_ID1_port => ssat_ID1,
chtm1_port => schtm1,
CNo1_port => sCNo1,
chsf1_port => schsf1,
sat_ID2_port => ssat_ID2,
chtm2_port => schtm2,
CNo2_port => sCNo2,
chsf2_port => schsf2,
sat_ID3_port => ssat_ID3,
chtm3_port => schtm3,
CNo3_port => sCNo3,
chsf3_port => schsf3,
sat_ID4_port => ssat_ID4,
chtm4_port => schtm4,
CNo4_port => sCNo4,
chsf4_port => schsf4,
sat_ID5_port => ssat_ID5,
chtm5_port => schtm5,
CNo5_port => sCNo5,
chsf5_port => schsf5,
sat_ID6_port => ssat_ID6,
chtm6_port => schtm6,
CNo6_port => sCNo6,
chsf6_port => schsf6,
sat_ID7_port => ssat_ID7,
chtm7_port => schtm7,
CNo7_port => sCNo7,
chsf7_port => schsf7,
sat_ID8_port => ssat_ID8,
chtm8_port => schtm8,
CNo8_port => sCNo8,
chsf8_port => schsf8,
rsf_port => srsf,
pfifo_status => sfifo_status);
ramp_ctrl1: entity work.ramp
generic map (
N => 18,
M => 200000,
P => 12
)
port map(
clk => sclk40m,
reset => reset,
data_in => siHV1,
data_out => soHV1,
led_indicador => HV1_led);
ramp_ctrl2: entity work.ramp
generic map (
N => 18,
M => 200000,
P => 12
)
port map(
clk => sclk40m,
reset => reset,
data_in => siHV2,
data_out => soHV2,
led_indicador => HV2_led);
ramp_ctrl3: entity work.ramp
generic map (
N => 18,
M => 200000,
P => 12
)
port map(
clk => sclk40m,
reset => reset,
data_in => siHV3,
data_out => soHV3,
led_indicador => HV3_led);
baseline: entity work.baseline_control
generic map (
RESET_POLARITY => RESET_POLARITY,
W => W,
ADCBITS => ADCBITS,
RBITS => RBITS,
REFRESH_RATE => REFRESH_RATE,
NCH => NCH
)
port map(
clk_40mhz => sclk40m,
data_adc1 => ch1,
data_adc2 => ch2,
data_adc3 => ch3,
baseline1 => sBL1,
baseline2 => sBL2,
baseline3 => sBL3);
comp_trigger: entity work.trigger_in
generic map(
W => W,
ADCBITS => ADCBITS,
L_ARRAY_MUESTRAS => L_ARRAY_MUESTRAS,
L_ARRAY_PPS => L_ARRAY_PPS,
L_ARRAY_SCALERS => L_ARRAY_SCALERS
)
port map(
clk_40mhz => sclk40m,
reset => reset,
data_adc1 => ch1,
data_adc2 => ch2,
data_adc3 => ch3,
trigg_set1 => sT1,
trigg_set2 => sT2,
trigg_set3 => sT3,
subtrigg_set1 => ssubT1,
subtrigg_set2 => ssubT2,
subtrigg_set3 => ssubT3,
pwr_enA => swr_fifo_A,
data_out => sfifo_in,
pfifo_status => sfifo_status(2 downto 0),
ptemperatura => sD2,
ppresion => sD1,
phora => shours,
pminutos => sminutes,
psegundos => sseconds,
pps_signal => pps_port,
gpsen => GPSen,
pps_falso_led => led(3),
latitude1_port => slatitude1,
latitude2_port => slatitude2,
latitude3_port => slatitude3,
latitude4_port => slatitude4,
longitude1_port => slongitude1,
longitude2_port => slongitude2,
longitude3_port => slongitude3,
longitude4_port => slongitude4,
ellipsoid1_port => sellipsoid1,
ellipsoid2_port => sellipsoid2,
ellipsoid3_port => sellipsoid3,
ellipsoid4_port => sellipsoid4,
num_vis_sat_port => sNVS,
num_track_sat_port => sNTS,
rsf_port => srsf);
hp03_controller: HP03_cntrl
Port map (
clk => clk_50m,
SDA => pSDA,
SCL => pSCL,
XCLR => pXCLR,
MCLK => pMCLK,
C1 => sC1,
C2 => sC2,
C3 => sC3,
C4 => sC4,
C5 => sC5,
C6 => sC6,
C7 => sC7,
A => sA,
B => sB,
C => sC,
D => sD,
D1 => sD1,
D2 => sD2);
gps_interface: Oncore_ctrl
port map(
clk => clk_50m,
tx_female => tx_uart,
rx_female => rx_uart,
UTCnGPS => sutcngps,
month_port => smonth,
day_port => sday,
year1_port => syear1,
year2_port => syear2,
hours_port => shours,
minutes_port => sminutes,
seconds_port => sseconds,
fract_sec1_port => sfract_sec1,
fract_sec2_port => sfract_sec2,
fract_sec3_port => sfract_sec3,
fract_sec4_port => sfract_sec4,
latitude1_port => slatitude1,
latitude2_port => slatitude2,
latitude3_port => slatitude3,
latitude4_port => slatitude4,
longitude1_port => slongitude1,
longitude2_port => slongitude2,
longitude3_port => slongitude3,
longitude4_port => slongitude4,
ellipsoid1_port => sellipsoid1,
ellipsoid2_port => sellipsoid2,
ellipsoid3_port => sellipsoid3,
ellipsoid4_port => sellipsoid4,
velocity1_port => svelocity1,
velocity2_port => svelocity2,
heading1_port => sheading1,
heading2_port => sheading2,
geometry2_port => sgeometry2,
DOP_type_port => sDOP_type,
num_vis_sat_port => sNVS,
num_track_sat_port => sNTS,
sat_ID1_port => ssat_ID1,
chtm1_port => schtm1,
CNo1_port => sCNo1,
chsf1_port => schsf1,
sat_ID2_port => ssat_ID2,
chtm2_port => schtm2,
CNo2_port => sCNo2,
chsf2_port => schsf2,
sat_ID3_port => ssat_ID3,
chtm3_port => schtm3,
CNo3_port => sCNo3,
chsf3_port => schsf3,
sat_ID4_port => ssat_ID4,
chtm4_port => schtm4,
CNo4_port => sCNo4,
chsf4_port => schsf4,
sat_ID5_port => ssat_ID5,
chtm5_port => schtm5,
CNo5_port => sCNo5,
chsf5_port => schsf5,
sat_ID6_port => ssat_ID6,
chtm6_port => schtm6,
CNo6_port => sCNo6,
chsf6_port => schsf6,
sat_ID7_port => ssat_ID7,
chtm7_port => schtm7,
CNo7_port => sCNo7,
chsf7_port => schsf7,
sat_ID8_port => ssat_ID8,
chtm8_port => schtm8,
CNo8_port => sCNo8,
chsf8_port => schsf8,
rsf_port => srsf);
spi_controller: interfaz_max5501
port map(
fpga_clk => clk_50m,
data_dac1 => sBL3,
data_dac2 => sBL2,
data_dac3 => soHV1,
data_dac4 => sBL1,
cs_e2prom => cs_e2prom,
cs_max5501 => cs_max5501,
spi_dout => spi_dout,
spi_sck => spi_sck);
hv2_controller: entity work.pwm
port map(
clk => clk_50m,
w => soHV2,
pwm_pulse => hv2);
hv3_controller: entity work.pwm
port map(
clk => clk_50m,
w => soHV3,
pwm_pulse => hv3);
end rtl;