Source file unisim_2019_1.ml
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
module IBUF = struct
module type P = sig
val capacitance : string
val ibuf_delay_value : string
val ibuf_low_pwr : string
val ifd_delay_value : string
val iostandard : string
end
module P : P = struct
let capacitance = "DONT_CARE"
let ibuf_delay_value = "0"
let ibuf_low_pwr = "TRUE"
let ifd_delay_value = "AUTO"
let iostandard = "DEFAULT"
end
module Make (P : P) = struct
let params =
[ Hardcaml.Parameter.create ~name:"CAPACITANCE" ~value:(String P.capacitance)
; Hardcaml.Parameter.create
~name:"IBUF_DELAY_VALUE"
~value:(String P.ibuf_delay_value)
; Hardcaml.Parameter.create ~name:"IBUF_LOW_PWR" ~value:(String P.ibuf_low_pwr)
; Hardcaml.Parameter.create
~name:"IFD_DELAY_VALUE"
~value:(String P.ifd_delay_value)
; Hardcaml.Parameter.create ~name:"IOSTANDARD" ~value:(String P.iostandard)
]
;;
module I = struct
type 'a t = { i : 'a [@bits 1] [@rtlname "I"] } [@@deriving hardcaml]
end
module O = struct
type 'a t = { o : 'a [@bits 1] [@rtlname "O"] } [@@deriving hardcaml]
end
module T = Hardcaml.Interface.Empty
open struct
include Hardcaml.Instantiation.With_interface (I) (O)
end
let create ?lib ?arch ?attributes ?instance ?(name = "IBUF") ?parameters inputs =
let parameters = Option.value ~default:params parameters in
create ?lib ?arch ?instance ?attributes ~parameters ~name inputs
;;
end
end
module IBUFDS = struct
module type P = sig
val capacitance : string
val diff_term : string
val dqs_bias : string
val ibuf_delay_value : string
val ibuf_low_pwr : string
val ifd_delay_value : string
val iostandard : string
end
module P : P = struct
let capacitance = "DONT_CARE"
let diff_term = "FALSE"
let dqs_bias = "FALSE"
let ibuf_delay_value = "0"
let ibuf_low_pwr = "TRUE"
let ifd_delay_value = "AUTO"
let iostandard = "DEFAULT"
end
module Make (P : P) = struct
let params =
[ Hardcaml.Parameter.create ~name:"CAPACITANCE" ~value:(String P.capacitance)
; Hardcaml.Parameter.create ~name:"DIFF_TERM" ~value:(String P.diff_term)
; Hardcaml.Parameter.create ~name:"DQS_BIAS" ~value:(String P.dqs_bias)
; Hardcaml.Parameter.create
~name:"IBUF_DELAY_VALUE"
~value:(String P.ibuf_delay_value)
; Hardcaml.Parameter.create ~name:"IBUF_LOW_PWR" ~value:(String P.ibuf_low_pwr)
; Hardcaml.Parameter.create
~name:"IFD_DELAY_VALUE"
~value:(String P.ifd_delay_value)
; Hardcaml.Parameter.create ~name:"IOSTANDARD" ~value:(String P.iostandard)
]
;;
module I = struct
type 'a t =
{ i : 'a [@bits 1] [@rtlname "I"]
; ib : 'a [@bits 1] [@rtlname "IB"]
}
[@@deriving hardcaml]
end
module O = struct
type 'a t = { o : 'a [@bits 1] [@rtlname "O"] } [@@deriving hardcaml]
end
module T = Hardcaml.Interface.Empty
open struct
include Hardcaml.Instantiation.With_interface (I) (O)
end
let create ?lib ?arch ?attributes ?instance ?(name = "IBUFDS") ?parameters inputs =
let parameters = Option.value ~default:params parameters in
create ?lib ?arch ?instance ?attributes ~parameters ~name inputs
;;
end
end
module IBUFDS_GTE4 = struct
module type P = sig
val refclk_en_tx_path : Hardcaml.Logic.Std_logic.t
val refclk_hrow_ck_sel : Hardcaml.Logic.Std_logic_vector.t
val refclk_icntl_rx : Hardcaml.Logic.Std_logic_vector.t
end
module P : P = struct
let refclk_en_tx_path = Hardcaml.Logic.Std_logic.L0
let refclk_hrow_ck_sel = Hardcaml.Logic.Std_logic_vector.of_string "00"
let refclk_icntl_rx = Hardcaml.Logic.Std_logic_vector.of_string "00"
end
module Make (P : P) = struct
let params =
[ Hardcaml.Parameter.create
~name:"REFCLK_EN_TX_PATH"
~value:(Std_logic P.refclk_en_tx_path)
; Hardcaml.Parameter.create
~name:"REFCLK_HROW_CK_SEL"
~value:(Std_logic_vector P.refclk_hrow_ck_sel)
; Hardcaml.Parameter.create
~name:"REFCLK_ICNTL_RX"
~value:(Std_logic_vector P.refclk_icntl_rx)
]
;;
module I = struct
type 'a t =
{ ceb : 'a [@bits 1] [@rtlname "CEB"]
; i : 'a [@bits 1] [@rtlname "I"]
; ib : 'a [@bits 1] [@rtlname "IB"]
}
[@@deriving hardcaml]
end
module O = struct
type 'a t =
{ o : 'a [@bits 1] [@rtlname "O"]
; odiv2 : 'a [@bits 1] [@rtlname "ODIV2"]
}
[@@deriving hardcaml]
end
module T = Hardcaml.Interface.Empty
open struct
include Hardcaml.Instantiation.With_interface (I) (O)
end
let create ?lib ?arch ?attributes ?instance ?(name = "IBUFDS_GTE4") ?parameters inputs
=
let parameters = Option.value ~default:params parameters in
create ?lib ?arch ?instance ?attributes ~parameters ~name inputs
;;
end
end
module ICAPE3 = struct
module type P = sig
val device_id : Hardcaml.Logic.Bit_vector.t
val icap_auto_switch : string
val sim_cfg_file_name : string
end
module P : P = struct
let device_id = Hardcaml.Logic.Bit_vector.of_string "00000011011000101000000010010011"
let icap_auto_switch = "DISABLE"
let sim_cfg_file_name = "NONE"
end
module Make (P : P) = struct
let params =
[ Hardcaml.Parameter.create ~name:"DEVICE_ID" ~value:(Bit_vector P.device_id)
; Hardcaml.Parameter.create
~name:"ICAP_AUTO_SWITCH"
~value:(String P.icap_auto_switch)
; Hardcaml.Parameter.create
~name:"SIM_CFG_FILE_NAME"
~value:(String P.sim_cfg_file_name)
]
;;
module I = struct
type 'a t =
{ clk : 'a [@bits 1] [@rtlname "CLK"]
; csib : 'a [@bits 1] [@rtlname "CSIB"]
; i : 'a [@bits 31 - 0 + 1] [@rtlname "I"]
; rdwrb : 'a [@bits 1] [@rtlname "RDWRB"]
}
[@@deriving hardcaml]
end
module O = struct
type 'a t =
{ avail : 'a [@bits 1] [@rtlname "AVAIL"]
; o : 'a [@bits 31 - 0 + 1] [@rtlname "O"]
; prdone : 'a [@bits 1] [@rtlname "PRDONE"]
; prerror : 'a [@bits 1] [@rtlname "PRERROR"]
}
[@@deriving hardcaml]
end
module T = Hardcaml.Interface.Empty
open struct
include Hardcaml.Instantiation.With_interface (I) (O)
end
let create ?lib ?arch ?attributes ?instance ?(name = "ICAPE3") ?parameters inputs =
let parameters = Option.value ~default:params parameters in
create ?lib ?arch ?instance ?attributes ~parameters ~name inputs
;;
end
end
module LUT2 = struct
module type P = sig
val init : Hardcaml.Logic.Bit_vector.t
end
module P : P = struct
let init = Hardcaml.Logic.Bit_vector.of_string "0000"
end
module Make (P : P) = struct
let params = [ Hardcaml.Parameter.create ~name:"INIT" ~value:(Bit_vector P.init) ]
module I = struct
type 'a t =
{ i0 : 'a [@bits 1] [@rtlname "I0"]
; i1 : 'a [@bits 1] [@rtlname "I1"]
}
[@@deriving hardcaml]
end
module O = struct
type 'a t = { o : 'a [@bits 1] [@rtlname "O"] } [@@deriving hardcaml]
end
module T = Hardcaml.Interface.Empty
open struct
include Hardcaml.Instantiation.With_interface (I) (O)
end
let create ?lib ?arch ?attributes ?instance ?(name = "LUT2") ?parameters inputs =
let parameters = Option.value ~default:params parameters in
create ?lib ?arch ?instance ?attributes ~parameters ~name inputs
;;
end
end
module STARTUPE3 = struct
module type P = sig
val prog_usr : string
val sim_cclk_freq : float
end
module P : P = struct
let prog_usr = "FALSE"
let sim_cclk_freq = 0.
end
module Make (P : P) = struct
let params =
[ Hardcaml.Parameter.create ~name:"PROG_USR" ~value:(String P.prog_usr)
; Hardcaml.Parameter.create ~name:"SIM_CCLK_FREQ" ~value:(Real P.sim_cclk_freq)
]
;;
module I = struct
type 'a t =
{ do_ : 'a [@bits 3 - 0 + 1] [@rtlname "DO"]
; dts : 'a [@bits 3 - 0 + 1] [@rtlname "DTS"]
; fcsbo : 'a [@bits 1] [@rtlname "FCSBO"]
; fcsbts : 'a [@bits 1] [@rtlname "FCSBTS"]
; gsr : 'a [@bits 1] [@rtlname "GSR"]
; gts : 'a [@bits 1] [@rtlname "GTS"]
; keyclearb : 'a [@bits 1] [@rtlname "KEYCLEARB"]
; pack : 'a [@bits 1] [@rtlname "PACK"]
; usrcclko : 'a [@bits 1] [@rtlname "USRCCLKO"]
; usrcclkts : 'a [@bits 1] [@rtlname "USRCCLKTS"]
; usrdoneo : 'a [@bits 1] [@rtlname "USRDONEO"]
; usrdonets : 'a [@bits 1] [@rtlname "USRDONETS"]
}
[@@deriving hardcaml]
end
module O = struct
type 'a t =
{ cfgclk : 'a [@bits 1] [@rtlname "CFGCLK"]
; cfgmclk : 'a [@bits 1] [@rtlname "CFGMCLK"]
; di : 'a [@bits 3 - 0 + 1] [@rtlname "DI"]
; eos : 'a [@bits 1] [@rtlname "EOS"]
; preq : 'a [@bits 1] [@rtlname "PREQ"]
}
[@@deriving hardcaml]
end
module T = Hardcaml.Interface.Empty
open struct
include Hardcaml.Instantiation.With_interface (I) (O)
end
let create ?lib ?arch ?attributes ?instance ?(name = "STARTUPE3") ?parameters inputs =
let parameters = Option.value ~default:params parameters in
create ?lib ?arch ?instance ?attributes ~parameters ~name inputs
;;
end
end
module SYSMONE1 = struct
module type P = sig
val init_40 : Hardcaml.Logic.Bit_vector.t
val init_41 : Hardcaml.Logic.Bit_vector.t
val init_42 : Hardcaml.Logic.Bit_vector.t
val init_43 : Hardcaml.Logic.Bit_vector.t
val init_44 : Hardcaml.Logic.Bit_vector.t
val init_45 : Hardcaml.Logic.Bit_vector.t
val init_46 : Hardcaml.Logic.Bit_vector.t
val init_47 : Hardcaml.Logic.Bit_vector.t
val init_48 : Hardcaml.Logic.Bit_vector.t
val init_49 : Hardcaml.Logic.Bit_vector.t
val init_4a : Hardcaml.Logic.Bit_vector.t
val init_4b : Hardcaml.Logic.Bit_vector.t
val init_4c : Hardcaml.Logic.Bit_vector.t
val init_4d : Hardcaml.Logic.Bit_vector.t
val init_4e : Hardcaml.Logic.Bit_vector.t
val init_4f : Hardcaml.Logic.Bit_vector.t
val init_50 : Hardcaml.Logic.Bit_vector.t
val init_51 : Hardcaml.Logic.Bit_vector.t
val init_52 : Hardcaml.Logic.Bit_vector.t
val init_53 : Hardcaml.Logic.Bit_vector.t
val init_54 : Hardcaml.Logic.Bit_vector.t
val init_55 : Hardcaml.Logic.Bit_vector.t
val init_56 : Hardcaml.Logic.Bit_vector.t
val init_57 : Hardcaml.Logic.Bit_vector.t
val init_58 : Hardcaml.Logic.Bit_vector.t
val init_59 : Hardcaml.Logic.Bit_vector.t
val init_5a : Hardcaml.Logic.Bit_vector.t
val init_5b : Hardcaml.Logic.Bit_vector.t
val init_5c : Hardcaml.Logic.Bit_vector.t
val init_5d : Hardcaml.Logic.Bit_vector.t
val init_5e : Hardcaml.Logic.Bit_vector.t
val init_5f : Hardcaml.Logic.Bit_vector.t
val init_60 : Hardcaml.Logic.Bit_vector.t
val init_61 : Hardcaml.Logic.Bit_vector.t
val init_62 : Hardcaml.Logic.Bit_vector.t
val init_63 : Hardcaml.Logic.Bit_vector.t
val init_64 : Hardcaml.Logic.Bit_vector.t
val init_65 : Hardcaml.Logic.Bit_vector.t
val init_66 : Hardcaml.Logic.Bit_vector.t
val init_67 : Hardcaml.Logic.Bit_vector.t
val init_68 : Hardcaml.Logic.Bit_vector.t
val init_69 : Hardcaml.Logic.Bit_vector.t
val init_6a : Hardcaml.Logic.Bit_vector.t
val init_6b : Hardcaml.Logic.Bit_vector.t
val init_6c : Hardcaml.Logic.Bit_vector.t
val init_6d : Hardcaml.Logic.Bit_vector.t
val init_6e : Hardcaml.Logic.Bit_vector.t
val init_6f : Hardcaml.Logic.Bit_vector.t
val init_70 : Hardcaml.Logic.Bit_vector.t
val init_71 : Hardcaml.Logic.Bit_vector.t
val init_72 : Hardcaml.Logic.Bit_vector.t
val init_73 : Hardcaml.Logic.Bit_vector.t
val init_74 : Hardcaml.Logic.Bit_vector.t
val init_75 : Hardcaml.Logic.Bit_vector.t
val init_76 : Hardcaml.Logic.Bit_vector.t
val init_77 : Hardcaml.Logic.Bit_vector.t
val init_78 : Hardcaml.Logic.Bit_vector.t
val init_79 : Hardcaml.Logic.Bit_vector.t
val init_7a : Hardcaml.Logic.Bit_vector.t
val init_7b : Hardcaml.Logic.Bit_vector.t
val init_7c : Hardcaml.Logic.Bit_vector.t
val init_7d : Hardcaml.Logic.Bit_vector.t
val init_7e : Hardcaml.Logic.Bit_vector.t
val init_7f : Hardcaml.Logic.Bit_vector.t
val is_convstclk_inverted : Hardcaml.Logic.Std_logic.t
val is_dclk_inverted : Hardcaml.Logic.Std_logic.t
val sim_monitor_file : string
val sysmon_vuser0_bank : int
val sysmon_vuser0_monitor : string
val sysmon_vuser1_bank : int
val sysmon_vuser1_monitor : string
val sysmon_vuser2_bank : int
val sysmon_vuser2_monitor : string
val sysmon_vuser3_bank : int
val sysmon_vuser3_monitor : string
end
module P : P = struct
let init_40 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_41 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_42 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_43 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_44 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_45 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_46 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_47 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_48 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_49 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_4a = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_4b = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_4c = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_4d = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_4e = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_4f = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_50 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_51 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_52 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_53 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_54 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_55 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_56 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_57 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_58 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_59 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_5a = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_5b = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_5c = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_5d = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_5e = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_5f = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_60 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_61 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_62 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_63 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_64 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_65 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_66 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_67 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_68 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_69 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_6a = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_6b = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_6c = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_6d = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_6e = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_6f = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_70 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_71 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_72 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_73 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_74 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_75 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_76 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_77 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_78 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_79 = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_7a = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_7b = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_7c = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_7d = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_7e = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let init_7f = Hardcaml.Logic.Bit_vector.of_string "0000000000000000"
let is_convstclk_inverted = Hardcaml.Logic.Std_logic.L0
let is_dclk_inverted = Hardcaml.Logic.Std_logic.L0
let sim_monitor_file = "design.txt"
let sysmon_vuser0_bank = 0
let sysmon_vuser0_monitor = "NONE"
let sysmon_vuser1_bank = 0
let sysmon_vuser1_monitor = "NONE"
let sysmon_vuser2_bank = 0
let sysmon_vuser2_monitor = "NONE"
let sysmon_vuser3_bank = 0
let sysmon_vuser3_monitor = "NONE"
end
module Make (P : P) = struct
let params =
[ Hardcaml.Parameter.create ~name:"INIT_40" ~value:(Bit_vector P.init_40)
; Hardcaml.Parameter.create ~name:"INIT_41" ~value:(Bit_vector P.init_41)
; Hardcaml.Parameter.create ~name:"INIT_42" ~value:(Bit_vector P.init_42)
; Hardcaml.Parameter.create ~name:"INIT_43" ~value:(Bit_vector P.init_43)
; Hardcaml.Parameter.create ~name:"INIT_44" ~value:(Bit_vector P.init_44)
; Hardcaml.Parameter.create ~name:"INIT_45" ~value:(Bit_vector P.init_45)
; Hardcaml.Parameter.create ~name:"INIT_46" ~value:(Bit_vector P.init_46)
; Hardcaml.Parameter.create ~name:"INIT_47" ~value:(Bit_vector P.init_47)
; Hardcaml.Parameter.create ~name:"INIT_48" ~value:(Bit_vector P.init_48)
; Hardcaml.Parameter.create ~name:"INIT_49" ~value:(Bit_vector P.init_49)
; Hardcaml.Parameter.create ~name:"INIT_4A" ~value:(Bit_vector P.init_4a)
; Hardcaml.Parameter.create ~name:"INIT_4B" ~value:(Bit_vector P.init_4b)
; Hardcaml.Parameter.create ~name:"INIT_4C" ~value:(Bit_vector P.init_4c)
; Hardcaml.Parameter.create ~name:"INIT_4D" ~value:(Bit_vector P.init_4d)
; Hardcaml.Parameter.create ~name:"INIT_4E" ~value:(Bit_vector P.init_4e)
; Hardcaml.Parameter.create ~name:"INIT_4F" ~value:(Bit_vector P.init_4f)
; Hardcaml.Parameter.create ~name:"INIT_50" ~value:(Bit_vector P.init_50)
; Hardcaml.Parameter.create ~name:"INIT_51" ~value:(Bit_vector P.init_51)
; Hardcaml.Parameter.create ~name:"INIT_52" ~value:(Bit_vector P.init_52)
; Hardcaml.Parameter.create ~name:"INIT_53" ~value:(Bit_vector P.init_53)
; Hardcaml.Parameter.create ~name:"INIT_54" ~value:(Bit_vector P.init_54)
; Hardcaml.Parameter.create ~name:"INIT_55" ~value:(Bit_vector P.init_55)
; Hardcaml.Parameter.create ~name:"INIT_56" ~value:(Bit_vector P.init_56)
; Hardcaml.Parameter.create ~name:"INIT_57" ~value:(Bit_vector P.init_57)
; Hardcaml.Parameter.create ~name:"INIT_58" ~value:(Bit_vector P.init_58)
; Hardcaml.Parameter.create ~name:"INIT_59" ~value:(Bit_vector P.init_59)
; Hardcaml.Parameter.create ~name:"INIT_5A" ~value:(Bit_vector P.init_5a)
; Hardcaml.Parameter.create ~name:"INIT_5B" ~value:(Bit_vector P.init_5b)
; Hardcaml.Parameter.create ~name:"INIT_5C" ~value:(Bit_vector P.init_5c)
; Hardcaml.Parameter.create ~name:"INIT_5D" ~value:(Bit_vector P.init_5d)
; Hardcaml.Parameter.create ~name:"INIT_5E" ~value:(Bit_vector P.init_5e)
; Hardcaml.Parameter.create ~name:"INIT_5F" ~value:(Bit_vector P.init_5f)
; Hardcaml.Parameter.create ~name:"INIT_60" ~value:(Bit_vector P.init_60)
; Hardcaml.Parameter.create ~name:"INIT_61" ~value:(Bit_vector P.init_61)
; Hardcaml.Parameter.create ~name:"INIT_62" ~value:(Bit_vector P.init_62)
; Hardcaml.Parameter.create ~name:"INIT_63" ~value:(Bit_vector P.init_63)
; Hardcaml.Parameter.create ~name:"INIT_64" ~value:(Bit_vector P.init_64)
; Hardcaml.Parameter.create ~name:"INIT_65" ~value:(Bit_vector P.init_65)
; Hardcaml.Parameter.create ~name:"INIT_66" ~value:(Bit_vector P.init_66)
; Hardcaml.Parameter.create ~name:"INIT_67" ~value:(Bit_vector P.init_67)
; Hardcaml.Parameter.create ~name:"INIT_68" ~value:(Bit_vector P.init_68)
; Hardcaml.Parameter.create ~name:"INIT_69" ~value:(Bit_vector P.init_69)
; Hardcaml.Parameter.create ~name:"INIT_6A" ~value:(Bit_vector P.init_6a)
; Hardcaml.Parameter.create ~name:"INIT_6B" ~value:(Bit_vector P.init_6b)
; Hardcaml.Parameter.create ~name:"INIT_6C" ~value:(Bit_vector P.init_6c)
; Hardcaml.Parameter.create ~name:"INIT_6D" ~value:(Bit_vector P.init_6d)
; Hardcaml.Parameter.create ~name:"INIT_6E" ~value:(Bit_vector P.init_6e)
; Hardcaml.Parameter.create ~name:"INIT_6F" ~value:(Bit_vector P.init_6f)
; Hardcaml.Parameter.create ~name:"INIT_70" ~value:(Bit_vector P.init_70)
; Hardcaml.Parameter.create ~name:"INIT_71" ~value:(Bit_vector P.init_71)
; Hardcaml.Parameter.create ~name:"INIT_72" ~value:(Bit_vector P.init_72)
; Hardcaml.Parameter.create ~name:"INIT_73" ~value:(Bit_vector P.init_73)
; Hardcaml.Parameter.create ~name:"INIT_74" ~value:(Bit_vector P.init_74)
; Hardcaml.Parameter.create ~name:"INIT_75" ~value:(Bit_vector P.init_75)
; Hardcaml.Parameter.create ~name:"INIT_76" ~value:(Bit_vector P.init_76)
; Hardcaml.Parameter.create ~name:"INIT_77" ~value:(Bit_vector P.init_77)
; Hardcaml.Parameter.create ~name:"INIT_78" ~value:(Bit_vector P.init_78)
; Hardcaml.Parameter.create ~name:"INIT_79" ~value:(Bit_vector P.init_79)
; Hardcaml.Parameter.create ~name:"INIT_7A" ~value:(Bit_vector P.init_7a)
; Hardcaml.Parameter.create ~name:"INIT_7B" ~value:(Bit_vector P.init_7b)
; Hardcaml.Parameter.create ~name:"INIT_7C" ~value:(Bit_vector P.init_7c)
; Hardcaml.Parameter.create ~name:"INIT_7D" ~value:(Bit_vector P.init_7d)
; Hardcaml.Parameter.create ~name:"INIT_7E" ~value:(Bit_vector P.init_7e)
; Hardcaml.Parameter.create ~name:"INIT_7F" ~value:(Bit_vector P.init_7f)
; Hardcaml.Parameter.create
~name:"IS_CONVSTCLK_INVERTED"
~value:(Std_logic P.is_convstclk_inverted)
; Hardcaml.Parameter.create
~name:"IS_DCLK_INVERTED"
~value:(Std_logic P.is_dclk_inverted)
; Hardcaml.Parameter.create
~name:"SIM_MONITOR_FILE"
~value:(String P.sim_monitor_file)
; Hardcaml.Parameter.create
~name:"SYSMON_VUSER0_BANK"
~value:(Int P.sysmon_vuser0_bank)
; Hardcaml.Parameter.create
~name:"SYSMON_VUSER0_MONITOR"
~value:(String P.sysmon_vuser0_monitor)
; Hardcaml.Parameter.create
~name:"SYSMON_VUSER1_BANK"
~value:(Int P.sysmon_vuser1_bank)
; Hardcaml.Parameter.create
~name:"SYSMON_VUSER1_MONITOR"
~value:(String P.sysmon_vuser1_monitor)
; Hardcaml.Parameter.create
~name:"SYSMON_VUSER2_BANK"
~value:(Int P.sysmon_vuser2_bank)
; Hardcaml.Parameter.create
~name:"SYSMON_VUSER2_MONITOR"
~value:(String P.sysmon_vuser2_monitor)
; Hardcaml.Parameter.create
~name:"SYSMON_VUSER3_BANK"
~value:(Int P.sysmon_vuser3_bank)
; Hardcaml.Parameter.create
~name:"SYSMON_VUSER3_MONITOR"
~value:(String P.sysmon_vuser3_monitor)
]
;;
module I = struct
type 'a t =
{ convst : 'a [@bits 1] [@rtlname "CONVST"]
; convstclk : 'a [@bits 1] [@rtlname "CONVSTCLK"]
; daddr : 'a [@bits 7 - 0 + 1] [@rtlname "DADDR"]
; dclk : 'a [@bits 1] [@rtlname "DCLK"]
; den : 'a [@bits 1] [@rtlname "DEN"]
; di : 'a [@bits 15 - 0 + 1] [@rtlname "DI"]
; dwe : 'a [@bits 1] [@rtlname "DWE"]
; i2c_sclk : 'a [@bits 1] [@rtlname "I2C_SCLK"]
; i2c_sda : 'a [@bits 1] [@rtlname "I2C_SDA"]
; reset : 'a [@bits 1] [@rtlname "RESET"]
; vauxn : 'a [@bits 15 - 0 + 1] [@rtlname "VAUXN"]
; vauxp : 'a [@bits 15 - 0 + 1] [@rtlname "VAUXP"]
; vn : 'a [@bits 1] [@rtlname "VN"]
; vp : 'a [@bits 1] [@rtlname "VP"]
}
[@@deriving hardcaml]
end
module O = struct
type 'a t =
{ alm : 'a [@bits 15 - 0 + 1] [@rtlname "ALM"]
; busy : 'a [@bits 1] [@rtlname "BUSY"]
; channel : 'a [@bits 5 - 0 + 1] [@rtlname "CHANNEL"]
; do_ : 'a [@bits 15 - 0 + 1] [@rtlname "DO"]
; drdy : 'a [@bits 1] [@rtlname "DRDY"]
; eoc : 'a [@bits 1] [@rtlname "EOC"]
; eos : 'a [@bits 1] [@rtlname "EOS"]
; i2c_sclk_ts : 'a [@bits 1] [@rtlname "I2C_SCLK_TS"]
; i2c_sda_ts : 'a [@bits 1] [@rtlname "I2C_SDA_TS"]
; jtagbusy : 'a [@bits 1] [@rtlname "JTAGBUSY"]
; jtaglocked : 'a [@bits 1] [@rtlname "JTAGLOCKED"]
; jtagmodified : 'a [@bits 1] [@rtlname "JTAGMODIFIED"]
; muxaddr : 'a [@bits 4 - 0 + 1] [@rtlname "MUXADDR"]
; ot : 'a [@bits 1] [@rtlname "OT"]
}
[@@deriving hardcaml]
end
module T = Hardcaml.Interface.Empty
open struct
include Hardcaml.Instantiation.With_interface (I) (O)
end
let create ?lib ?arch ?attributes ?instance ?(name = "SYSMONE1") ?parameters inputs =
let parameters = Option.value ~default:params parameters in
create ?lib ?arch ?instance ?attributes ~parameters ~name inputs
;;
end
end