-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflattened.v
532 lines (531 loc) · 25.6 KB
/
flattened.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
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
/* Generated by Yosys 0.25+83 (git sha1 755b753e1, aarch64-apple-darwin20.2-clang 10.0.0-4ubuntu1 -fPIC -Os) */
/* top = 1 */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:4.1-18.10" */
module d16_bgonzale_pll(io_in, io_out);
wire _000_;
wire _001_;
wire _002_;
wire _003_;
wire _004_;
wire _005_;
wire _006_;
wire _007_;
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:25.18-26.88|d16_bgonzale_pll/src/chip.sv:64.8-64.26|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
wire _008_;
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:25.18-26.88|d16_bgonzale_pll/src/chip.sv:66.13-66.37|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
wire _009_;
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:30.15-31.57|d16_bgonzale_pll/src/chip.sv:93.20-93.46|d16_bgonzale_pll/src/chip.sv:138.20-145.32|/Users/anish/workspace/oss-cad-suite/libexec/../share/yosys/techmap.v:106.2-119.5" */
wire _010_;
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:30.15-31.57|d16_bgonzale_pll/src/chip.sv:93.20-93.46|d16_bgonzale_pll/src/chip.sv:138.20-145.32|/Users/anish/workspace/oss-cad-suite/libexec/../share/yosys/techmap.v:106.2-119.5" */
wire _011_;
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:30.15-31.57|d16_bgonzale_pll/src/chip.sv:93.20-93.46|d16_bgonzale_pll/src/chip.sv:138.20-145.32|/Users/anish/workspace/oss-cad-suite/libexec/../share/yosys/techmap.v:106.2-119.5" */
wire _012_;
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:30.15-31.57|d16_bgonzale_pll/src/chip.sv:93.20-93.46|d16_bgonzale_pll/src/chip.sv:138.20-145.32|/Users/anish/workspace/oss-cad-suite/libexec/../share/yosys/techmap.v:106.2-119.5" */
wire _013_;
wire _014_;
wire _015_;
wire _016_;
wire _017_;
wire _018_;
wire _019_;
wire _020_;
wire _021_;
wire _022_;
wire _023_;
wire _024_;
wire _025_;
wire _026_;
wire _027_;
wire _028_;
wire _029_;
wire _030_;
wire _031_;
wire _032_;
wire _033_;
wire _034_;
wire _035_;
wire _036_;
wire _037_;
wire _038_;
wire _039_;
wire _040_;
wire _041_;
wire _042_;
wire _043_;
wire _044_;
wire _045_;
wire _046_;
wire _047_;
wire _048_;
wire _049_;
wire _050_;
wire _051_;
wire _052_;
wire _053_;
wire _054_;
wire _055_;
wire _056_;
wire _057_;
wire _058_;
wire _059_;
wire _060_;
wire _061_;
wire _062_;
wire _063_;
wire _064_;
wire _065_;
wire _066_;
wire _067_;
wire _068_;
wire _069_;
wire _070_;
wire _071_;
wire _072_;
wire _073_;
wire _074_;
wire _075_;
wire _076_;
wire _077_;
wire _078_;
wire _079_;
wire _080_;
wire _081_;
wire _082_;
wire _083_;
wire _084_;
wire _085_;
wire _086_;
wire _087_;
wire _088_;
wire _089_;
wire _090_;
wire _091_;
wire _092_;
wire _093_;
wire _094_;
wire _095_;
wire _096_;
wire _097_;
wire _098_;
wire _099_;
wire _100_;
wire _101_;
wire _102_;
wire _103_;
wire _104_;
wire _105_;
wire _106_;
wire _107_;
wire _108_;
wire _109_;
wire _110_;
wire _111_;
wire _112_;
wire _113_;
wire _114_;
wire _115_;
wire _116_;
wire _117_;
wire _118_;
wire _119_;
wire _120_;
wire _121_;
wire _122_;
wire _123_;
wire _124_;
wire _125_;
wire _126_;
wire _127_;
wire _128_;
wire _129_;
wire _130_;
wire _131_;
wire _132_;
wire _133_;
wire _134_;
wire _135_;
wire _136_;
wire _137_;
wire _138_;
wire _139_;
wire _140_;
wire _141_;
wire _142_;
wire _143_;
wire _144_;
wire _145_;
wire _146_;
wire _147_;
wire _148_;
wire _149_;
wire _150_;
wire _151_;
wire _152_;
wire _153_;
wire _154_;
wire _155_;
wire _156_;
wire _157_;
wire _158_;
wire _159_;
wire _160_;
wire _161_;
wire _162_;
wire _163_;
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:5.18-5.23" */
input [13:0] io_in;
wire [13:0] io_in;
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:6.19-6.25" */
output [13:0] io_out;
wire [13:0] io_out;
/* hdlname = "mchip PLL dig_osc ctr" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:34.22-36.53|d16_bgonzale_pll/src/chip.sv:110.13-110.16|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
reg [7:0] \mchip.PLL.dig_osc.ctr ;
/* hdlname = "mchip PLL dig_osc freq_step" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:34.22-36.53|d16_bgonzale_pll/src/chip.sv:103.21-103.30|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
wire [7:0] \mchip.PLL.dig_osc.freq_step ;
/* hdlname = "mchip PLL dig_osc i_sys_clk" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:34.22-36.53|d16_bgonzale_pll/src/chip.sv:101.15-101.24|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
wire \mchip.PLL.dig_osc.i_sys_clk ;
/* hdlname = "mchip PLL dig_osc lead_or_lag" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:34.22-36.53|d16_bgonzale_pll/src/chip.sv:106.15-106.26|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
wire \mchip.PLL.dig_osc.lead_or_lag ;
/* hdlname = "mchip PLL dig_osc out_of_phase" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:34.22-36.53|d16_bgonzale_pll/src/chip.sv:105.15-105.27|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
wire \mchip.PLL.dig_osc.out_of_phase ;
/* hdlname = "mchip PLL dig_osc phase_corr" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:34.22-36.53|d16_bgonzale_pll/src/chip.sv:104.21-104.31|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
wire [7:0] \mchip.PLL.dig_osc.phase_corr ;
/* hdlname = "mchip PLL dig_osc rec_clk" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:34.22-36.53|d16_bgonzale_pll/src/chip.sv:107.16-107.23|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
wire \mchip.PLL.dig_osc.rec_clk ;
/* hdlname = "mchip PLL i_freq_step" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:16.20-16.31|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
wire [7:0] \mchip.PLL.i_freq_step ;
/* hdlname = "mchip PLL i_loop_gain" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:15.20-15.31|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
wire [2:0] \mchip.PLL.i_loop_gain ;
/* hdlname = "mchip PLL i_ref_clk" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:14.14-14.23|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
wire \mchip.PLL.i_ref_clk ;
/* hdlname = "mchip PLL i_sys_clk" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:12.14-12.23|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
wire \mchip.PLL.i_sys_clk ;
/* hdlname = "mchip PLL lead_or_lag" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:24.7-24.18|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
wire \mchip.PLL.lead_or_lag ;
/* hdlname = "mchip PLL loop_fil i_sys_clk" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:30.15-31.57|d16_bgonzale_pll/src/chip.sv:85.16-85.25|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
wire \mchip.PLL.loop_fil.i_sys_clk ;
/* hdlname = "mchip PLL loop_fil loop_gain" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:30.15-31.57|d16_bgonzale_pll/src/chip.sv:86.22-86.31|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
wire [2:0] \mchip.PLL.loop_fil.loop_gain ;
/* hdlname = "mchip PLL loop_fil phase_corr" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:30.15-31.57|d16_bgonzale_pll/src/chip.sv:87.22-87.32|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
reg [7:0] \mchip.PLL.loop_fil.phase_corr = 8'h00;
/* hdlname = "mchip PLL o_lead_or_lag" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:18.15-18.28|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
wire \mchip.PLL.o_lead_or_lag ;
/* hdlname = "mchip PLL o_phase_error" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:19.15-19.28|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
wire \mchip.PLL.o_phase_error ;
/* hdlname = "mchip PLL o_rec_clk" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:17.14-17.23|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
wire \mchip.PLL.o_rec_clk ;
/* hdlname = "mchip PLL out_of_phase" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:23.8-23.20|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
wire \mchip.PLL.out_of_phase ;
/* hdlname = "mchip PLL phase_corr" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:29.13-29.23|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
wire [7:0] \mchip.PLL.phase_corr ;
/* hdlname = "mchip PLL phase_det i_sys_clk" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:25.18-26.88|d16_bgonzale_pll/src/chip.sv:52.16-52.25|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
wire \mchip.PLL.phase_det.i_sys_clk ;
/* hdlname = "mchip PLL phase_det lead_or_lag" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:25.18-26.88|d16_bgonzale_pll/src/chip.sv:55.16-55.27|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
wire \mchip.PLL.phase_det.lead_or_lag ;
/* hdlname = "mchip PLL phase_det matched" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:25.18-26.88|d16_bgonzale_pll/src/chip.sv:58.7-58.14|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
reg \mchip.PLL.phase_det.matched = 1'h0;
/* hdlname = "mchip PLL phase_det out_of_phase" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:25.18-26.88|d16_bgonzale_pll/src/chip.sv:56.17-56.29|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
wire \mchip.PLL.phase_det.out_of_phase ;
/* hdlname = "mchip PLL phase_det rec_clk" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:25.18-26.88|d16_bgonzale_pll/src/chip.sv:54.16-54.23|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
wire \mchip.PLL.phase_det.rec_clk ;
/* hdlname = "mchip PLL phase_det ref_clk" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:25.18-26.88|d16_bgonzale_pll/src/chip.sv:53.16-53.23|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
wire \mchip.PLL.phase_det.ref_clk ;
/* hdlname = "mchip clock" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:132.17-132.22" */
wire \mchip.clock ;
/* hdlname = "mchip io_in" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:130.24-130.29" */
wire [11:0] \mchip.io_in ;
/* hdlname = "mchip io_out" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:131.25-131.31" */
wire [11:0] \mchip.io_out ;
/* hdlname = "mchip reset" */
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:133.17-133.22" */
wire \mchip.reset ;
assign _003_ = _116_ ? _036_ : _044_;
assign _045_ = \mchip.PLL.dig_osc.ctr [3] & io_in[7];
assign _046_ = _035_ & _032_;
assign _047_ = _046_ | _045_;
assign _048_ = _035_ & _022_;
assign _049_ = _048_ & ~(_021_);
assign _050_ = _049_ | _047_;
assign _051_ = \mchip.PLL.dig_osc.ctr [4] ^ io_in[8];
assign _052_ = _051_ ^ _050_;
assign _053_ = _043_ | _030_;
assign _054_ = _026_ & ~(_053_);
assign _055_ = _036_ & ~(_042_);
assign _056_ = _037_ & ~(_043_);
assign _057_ = _056_ | _055_;
assign _058_ = _057_ | _054_;
assign _059_ = ~\mchip.PLL.loop_fil.phase_corr [4];
assign _060_ = \mchip.PLL.loop_fil.phase_corr [2] | \mchip.PLL.loop_fil.phase_corr [3];
assign _061_ = _027_ & ~(_060_);
assign _062_ = _061_ ^ \mchip.PLL.loop_fil.phase_corr [4];
assign _063_ = _014_ ? _059_ : _062_;
assign _064_ = ~(_052_ ^ _063_);
assign _065_ = ~(_064_ ^ _058_);
assign _004_ = _116_ ? _052_ : _065_;
assign _066_ = \mchip.PLL.dig_osc.ctr [4] & io_in[8];
assign _067_ = _051_ & _050_;
assign _068_ = ~(_067_ | _066_);
assign _069_ = \mchip.PLL.dig_osc.ctr [5] ^ io_in[9];
assign _070_ = ~(_069_ ^ _068_);
assign _071_ = _052_ & _063_;
assign _072_ = _058_ & ~(_064_);
assign _073_ = ~(_072_ | _071_);
assign _074_ = ~(_061_ & _059_);
assign _075_ = _074_ ^ \mchip.PLL.loop_fil.phase_corr [5];
assign _076_ = _014_ ? \mchip.PLL.loop_fil.phase_corr [5] : _075_;
assign _077_ = _070_ ^ _076_;
assign _078_ = _077_ ^ _073_;
assign _005_ = _116_ ? _070_ : _078_;
assign _079_ = \mchip.PLL.dig_osc.ctr [5] & io_in[9];
assign _080_ = _069_ & _066_;
assign _081_ = _080_ | _079_;
assign _082_ = ~(_069_ & _051_);
assign _083_ = _050_ & ~(_082_);
assign _084_ = _083_ | _081_;
assign _085_ = ~(\mchip.PLL.dig_osc.ctr [6] ^ io_in[10]);
assign _086_ = ~(_085_ ^ _084_);
assign _087_ = _070_ & ~(_076_);
assign _088_ = _071_ & ~(_077_);
assign _089_ = _088_ | _087_;
assign _090_ = _077_ | _064_;
assign _091_ = _058_ & ~(_090_);
assign _092_ = _091_ | _089_;
assign _093_ = ~\mchip.PLL.loop_fil.phase_corr [6];
assign _094_ = \mchip.PLL.loop_fil.phase_corr [4] | \mchip.PLL.loop_fil.phase_corr [5];
assign _095_ = _061_ & ~(_094_);
assign _096_ = _095_ ^ \mchip.PLL.loop_fil.phase_corr [6];
assign _097_ = _014_ ? _093_ : _096_;
assign _098_ = _086_ ^ _097_;
assign _099_ = _098_ ^ _092_;
assign _006_ = _116_ ? _086_ : _099_;
assign _100_ = _084_ & ~(_085_);
assign _101_ = \mchip.PLL.dig_osc.ctr [6] & io_in[10];
assign _102_ = _101_ | _100_;
assign _103_ = io_in[11] ^ \mchip.PLL.dig_osc.ctr [7];
assign _104_ = _103_ ^ _102_;
assign _105_ = _086_ & _097_;
assign _106_ = _098_ & _092_;
assign _107_ = _106_ | _105_;
assign _108_ = ~\mchip.PLL.loop_fil.phase_corr [7];
assign _109_ = _095_ & ~(\mchip.PLL.loop_fil.phase_corr [6]);
assign _110_ = _109_ ^ \mchip.PLL.loop_fil.phase_corr [7];
assign _111_ = _014_ ? _108_ : _110_;
assign _112_ = _104_ ^ _111_;
assign _113_ = _112_ ^ _107_;
assign _007_ = _116_ ? _104_ : _113_;
assign _010_ = io_in[1] & io_in[2];
assign _011_ = io_in[2] & ~(io_in[1]);
assign _012_ = io_in[1] & ~(io_in[2]);
assign _013_ = ~(io_in[1] | io_in[2]);
assign _009_ = ~(io_in[0] | \mchip.PLL.dig_osc.ctr [7]);
assign _114_ = \mchip.PLL.dig_osc.ctr [7] & ~(io_in[0]);
assign _115_ = io_in[0] & ~(\mchip.PLL.dig_osc.ctr [7]);
assign \mchip.PLL.dig_osc.lead_or_lag = \mchip.PLL.phase_det.matched ? _115_ : _114_;
assign _008_ = io_in[0] & \mchip.PLL.dig_osc.ctr [7];
assign _116_ = ~(_115_ | _114_);
assign \mchip.PLL.dig_osc.out_of_phase = ~_116_;
assign _117_ = io_in[4] ^ \mchip.PLL.dig_osc.ctr [0];
assign _118_ = _117_ ^ \mchip.PLL.loop_fil.phase_corr [0];
assign _000_ = _116_ ? _117_ : _118_;
assign _119_ = io_in[4] & \mchip.PLL.dig_osc.ctr [0];
assign _120_ = io_in[5] ^ \mchip.PLL.dig_osc.ctr [1];
assign _121_ = _120_ ^ _119_;
assign _122_ = \mchip.PLL.loop_fil.phase_corr [0] & ~(_117_);
assign _123_ = ~\mchip.PLL.loop_fil.phase_corr [1];
assign _124_ = \mchip.PLL.loop_fil.phase_corr [1] ^ \mchip.PLL.loop_fil.phase_corr [0];
assign _125_ = ~_124_;
assign _126_ = ~(io_in[11] ^ \mchip.PLL.loop_fil.phase_corr [7]);
assign _127_ = io_in[10] ^ \mchip.PLL.loop_fil.phase_corr [6];
assign _128_ = _126_ & ~(_127_);
assign _129_ = \mchip.PLL.loop_fil.phase_corr [4] ^ io_in[8];
assign _130_ = io_in[9] ^ \mchip.PLL.loop_fil.phase_corr [5];
assign _131_ = _130_ | _129_;
assign _132_ = _128_ & ~(_131_);
assign _133_ = \mchip.PLL.loop_fil.phase_corr [0] ^ io_in[4];
assign _134_ = \mchip.PLL.loop_fil.phase_corr [1] ^ io_in[5];
assign _135_ = ~(_134_ | _133_);
assign _136_ = ~(io_in[6] ^ \mchip.PLL.loop_fil.phase_corr [2]);
assign _137_ = io_in[7] ^ \mchip.PLL.loop_fil.phase_corr [3];
assign _138_ = _136_ & ~(_137_);
assign _139_ = ~(_138_ & _135_);
assign _140_ = _132_ & ~(_139_);
assign _141_ = \mchip.PLL.loop_fil.phase_corr [7] | ~(io_in[11]);
assign _142_ = \mchip.PLL.loop_fil.phase_corr [6] | ~(io_in[10]);
assign _143_ = _126_ & ~(_142_);
assign _144_ = _141_ & ~(_143_);
assign _145_ = \mchip.PLL.loop_fil.phase_corr [5] | ~(io_in[9]);
assign _146_ = io_in[8] & ~(\mchip.PLL.loop_fil.phase_corr [4]);
assign _147_ = _146_ & ~(_130_);
assign _148_ = _145_ & ~(_147_);
assign _149_ = _128_ & ~(_148_);
assign _150_ = _144_ & ~(_149_);
assign _151_ = \mchip.PLL.loop_fil.phase_corr [3] | ~(io_in[7]);
assign _152_ = io_in[6] & ~(\mchip.PLL.loop_fil.phase_corr [2]);
assign _153_ = _152_ & ~(_137_);
assign _154_ = _151_ & ~(_153_);
assign _155_ = \mchip.PLL.loop_fil.phase_corr [1] | ~(io_in[5]);
assign _156_ = io_in[4] | ~(\mchip.PLL.loop_fil.phase_corr [0]);
assign _157_ = _156_ & ~(_134_);
assign _158_ = _155_ & ~(_157_);
assign _159_ = _138_ & ~(_158_);
assign _160_ = _154_ & ~(_159_);
assign _161_ = _132_ & ~(_160_);
assign _162_ = _150_ & ~(_161_);
assign _163_ = _162_ | _140_;
assign _014_ = \mchip.PLL.dig_osc.lead_or_lag & ~(_163_);
assign _015_ = _014_ ? _123_ : _125_;
assign _016_ = ~_121_;
assign _017_ = _016_ ^ _015_;
assign _018_ = _017_ ^ _122_;
assign _001_ = _116_ ? _121_ : _018_;
assign _019_ = io_in[5] & \mchip.PLL.dig_osc.ctr [1];
assign _020_ = _120_ & _119_;
assign _021_ = ~(_020_ | _019_);
assign _022_ = \mchip.PLL.dig_osc.ctr [2] ^ io_in[6];
assign _023_ = ~(_022_ ^ _021_);
assign _024_ = ~(_017_ | _122_);
assign _025_ = _015_ & ~(_016_);
assign _026_ = _025_ | _024_;
assign _027_ = ~(\mchip.PLL.loop_fil.phase_corr [1] | \mchip.PLL.loop_fil.phase_corr [0]);
assign _028_ = ~(_027_ ^ \mchip.PLL.loop_fil.phase_corr [2]);
assign _029_ = _014_ ? \mchip.PLL.loop_fil.phase_corr [2] : _028_;
assign _030_ = _023_ ^ _029_;
assign _031_ = ~(_030_ ^ _026_);
assign _002_ = _116_ ? _023_ : _031_;
assign _032_ = \mchip.PLL.dig_osc.ctr [2] & io_in[6];
assign _033_ = _022_ & ~(_021_);
assign _034_ = ~(_033_ | _032_);
assign _035_ = \mchip.PLL.dig_osc.ctr [3] ^ io_in[7];
assign _036_ = ~(_035_ ^ _034_);
assign _037_ = _023_ & ~(_029_);
assign _038_ = _026_ & ~(_030_);
assign _039_ = ~(_038_ | _037_);
assign _040_ = _027_ & ~(\mchip.PLL.loop_fil.phase_corr [2]);
assign _041_ = ~(_040_ ^ \mchip.PLL.loop_fil.phase_corr [3]);
assign _042_ = _014_ ? \mchip.PLL.loop_fil.phase_corr [3] : _041_;
assign _043_ = _036_ ^ _042_;
assign _044_ = _043_ ^ _039_;
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:34.22-36.53|d16_bgonzale_pll/src/chip.sv:112.3-123.6|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
always @(posedge io_in[12])
if (!io_in[13]) \mchip.PLL.dig_osc.ctr [0] <= 1'h0;
else \mchip.PLL.dig_osc.ctr [0] <= _000_;
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:34.22-36.53|d16_bgonzale_pll/src/chip.sv:112.3-123.6|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
always @(posedge io_in[12])
if (!io_in[13]) \mchip.PLL.dig_osc.ctr [1] <= 1'h0;
else \mchip.PLL.dig_osc.ctr [1] <= _001_;
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:34.22-36.53|d16_bgonzale_pll/src/chip.sv:112.3-123.6|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
always @(posedge io_in[12])
if (!io_in[13]) \mchip.PLL.dig_osc.ctr [2] <= 1'h0;
else \mchip.PLL.dig_osc.ctr [2] <= _002_;
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:34.22-36.53|d16_bgonzale_pll/src/chip.sv:112.3-123.6|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
always @(posedge io_in[12])
if (!io_in[13]) \mchip.PLL.dig_osc.ctr [3] <= 1'h0;
else \mchip.PLL.dig_osc.ctr [3] <= _003_;
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:34.22-36.53|d16_bgonzale_pll/src/chip.sv:112.3-123.6|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
always @(posedge io_in[12])
if (!io_in[13]) \mchip.PLL.dig_osc.ctr [4] <= 1'h0;
else \mchip.PLL.dig_osc.ctr [4] <= _004_;
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:34.22-36.53|d16_bgonzale_pll/src/chip.sv:112.3-123.6|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
always @(posedge io_in[12])
if (!io_in[13]) \mchip.PLL.dig_osc.ctr [5] <= 1'h0;
else \mchip.PLL.dig_osc.ctr [5] <= _005_;
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:34.22-36.53|d16_bgonzale_pll/src/chip.sv:112.3-123.6|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
always @(posedge io_in[12])
if (!io_in[13]) \mchip.PLL.dig_osc.ctr [6] <= 1'h0;
else \mchip.PLL.dig_osc.ctr [6] <= _006_;
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:34.22-36.53|d16_bgonzale_pll/src/chip.sv:112.3-123.6|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
always @(posedge io_in[12])
if (!io_in[13]) \mchip.PLL.dig_osc.ctr [7] <= 1'h0;
else \mchip.PLL.dig_osc.ctr [7] <= _007_;
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:25.18-26.88|d16_bgonzale_pll/src/chip.sv:62.3-68.6|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
always @(posedge io_in[12])
if (_008_) \mchip.PLL.phase_det.matched <= 1'h1;
else if (_009_) \mchip.PLL.phase_det.matched <= 1'h0;
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:30.15-31.57|d16_bgonzale_pll/src/chip.sv:92.3-93.48|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
always @(posedge io_in[12])
if (io_in[3]) \mchip.PLL.loop_fil.phase_corr [7] <= 1'h0;
else \mchip.PLL.loop_fil.phase_corr [7] <= _013_;
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:30.15-31.57|d16_bgonzale_pll/src/chip.sv:92.3-93.48|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
always @(posedge io_in[12])
if (!io_in[3]) \mchip.PLL.loop_fil.phase_corr [0] <= 1'h0;
else \mchip.PLL.loop_fil.phase_corr [0] <= _010_;
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:30.15-31.57|d16_bgonzale_pll/src/chip.sv:92.3-93.48|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
always @(posedge io_in[12])
if (!io_in[3]) \mchip.PLL.loop_fil.phase_corr [1] <= 1'h0;
else \mchip.PLL.loop_fil.phase_corr [1] <= _011_;
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:30.15-31.57|d16_bgonzale_pll/src/chip.sv:92.3-93.48|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
always @(posedge io_in[12])
if (!io_in[3]) \mchip.PLL.loop_fil.phase_corr [2] <= 1'h0;
else \mchip.PLL.loop_fil.phase_corr [2] <= _012_;
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:30.15-31.57|d16_bgonzale_pll/src/chip.sv:92.3-93.48|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
always @(posedge io_in[12])
if (!io_in[3]) \mchip.PLL.loop_fil.phase_corr [3] <= 1'h0;
else \mchip.PLL.loop_fil.phase_corr [3] <= _013_;
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:30.15-31.57|d16_bgonzale_pll/src/chip.sv:92.3-93.48|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
always @(posedge io_in[12])
if (io_in[3]) \mchip.PLL.loop_fil.phase_corr [4] <= 1'h0;
else \mchip.PLL.loop_fil.phase_corr [4] <= _010_;
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:30.15-31.57|d16_bgonzale_pll/src/chip.sv:92.3-93.48|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
always @(posedge io_in[12])
if (io_in[3]) \mchip.PLL.loop_fil.phase_corr [5] <= 1'h0;
else \mchip.PLL.loop_fil.phase_corr [5] <= _011_;
/* src = "d16_bgonzale_pll/src/toplevel_chip.v:9.13-14.6|d16_bgonzale_pll/src/chip.sv:30.15-31.57|d16_bgonzale_pll/src/chip.sv:92.3-93.48|d16_bgonzale_pll/src/chip.sv:138.20-145.32" */
always @(posedge io_in[12])
if (io_in[3]) \mchip.PLL.loop_fil.phase_corr [6] <= 1'h0;
else \mchip.PLL.loop_fil.phase_corr [6] <= _012_;
assign io_out = { 11'h000, \mchip.PLL.dig_osc.out_of_phase , \mchip.PLL.dig_osc.lead_or_lag , \mchip.PLL.dig_osc.ctr [7] };
assign \mchip.PLL.dig_osc.freq_step = io_in[11:4];
assign \mchip.PLL.dig_osc.i_sys_clk = io_in[12];
assign \mchip.PLL.dig_osc.phase_corr = \mchip.PLL.loop_fil.phase_corr ;
assign \mchip.PLL.dig_osc.rec_clk = \mchip.PLL.dig_osc.ctr [7];
assign \mchip.PLL.i_freq_step = io_in[11:4];
assign \mchip.PLL.i_loop_gain = io_in[3:1];
assign \mchip.PLL.i_ref_clk = io_in[0];
assign \mchip.PLL.i_sys_clk = io_in[12];
assign \mchip.PLL.lead_or_lag = \mchip.PLL.dig_osc.lead_or_lag ;
assign \mchip.PLL.loop_fil.i_sys_clk = io_in[12];
assign \mchip.PLL.loop_fil.loop_gain = io_in[3:1];
assign \mchip.PLL.o_lead_or_lag = \mchip.PLL.dig_osc.lead_or_lag ;
assign \mchip.PLL.o_phase_error = \mchip.PLL.dig_osc.out_of_phase ;
assign \mchip.PLL.o_rec_clk = \mchip.PLL.dig_osc.ctr [7];
assign \mchip.PLL.out_of_phase = \mchip.PLL.dig_osc.out_of_phase ;
assign \mchip.PLL.phase_corr = \mchip.PLL.loop_fil.phase_corr ;
assign \mchip.PLL.phase_det.i_sys_clk = io_in[12];
assign \mchip.PLL.phase_det.lead_or_lag = \mchip.PLL.dig_osc.lead_or_lag ;
assign \mchip.PLL.phase_det.out_of_phase = \mchip.PLL.dig_osc.out_of_phase ;
assign \mchip.PLL.phase_det.rec_clk = \mchip.PLL.dig_osc.ctr [7];
assign \mchip.PLL.phase_det.ref_clk = io_in[0];
assign \mchip.clock = io_in[12];
assign \mchip.io_in = io_in[11:0];
assign \mchip.io_out = { 9'h000, \mchip.PLL.dig_osc.out_of_phase , \mchip.PLL.dig_osc.lead_or_lag , \mchip.PLL.dig_osc.ctr [7] };
assign \mchip.reset = io_in[13];
endmodule