-
Notifications
You must be signed in to change notification settings - Fork 18
/
write_header_func.v
653 lines (590 loc) · 19.7 KB
/
write_header_func.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
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
module write_header_func(input [0:0] clk, input [0:0] rst, output [0:0] valid, output [47:0] arg_0_raddr, input [47:0] arg_0_rdata, output [47:0] arg_0_waddr, output [47:0] arg_0_wdata, output [0:0] arg_0_wen, output [47:0] arg_1_raddr, input [47:0] arg_1_rdata, output [47:0] arg_1_waddr, output [47:0] arg_1_wdata, output [0:0] arg_1_wen, output [15:0] arg_2_raddr, input [15:0] arg_2_rdata, output [15:0] arg_2_waddr, output [15:0] arg_2_wdata, output [0:0] arg_2_wen, input [0:0] arg_3_busy, output [0:0] arg_3_m_axis_tready, output [47:0] arg_3_s_eth_dest_mac, input [0:0] arg_3_s_eth_hdr_ready, output [0:0] arg_3_s_eth_hdr_valid, output [7:0] arg_3_s_eth_payload_axis_tdata, output [0:0] arg_3_s_eth_payload_axis_tlast, input [0:0] arg_3_s_eth_payload_axis_tready, output [0:0] arg_3_s_eth_payload_axis_tuser, output [0:0] arg_3_s_eth_payload_axis_tvalid, output [47:0] arg_3_s_eth_src_mac, output [15:0] arg_3_s_eth_type);
reg [0:0] valid_reg;
reg [47:0] arg_0_raddr_reg;
reg [47:0] arg_0_waddr_reg;
reg [47:0] arg_0_wdata_reg;
reg [0:0] arg_0_wen_reg;
reg [47:0] arg_1_raddr_reg;
reg [47:0] arg_1_waddr_reg;
reg [47:0] arg_1_wdata_reg;
reg [0:0] arg_1_wen_reg;
reg [15:0] arg_2_raddr_reg;
reg [15:0] arg_2_waddr_reg;
reg [15:0] arg_2_wdata_reg;
reg [0:0] arg_2_wen_reg;
reg [0:0] arg_3_m_axis_tready_reg;
reg [47:0] arg_3_s_eth_dest_mac_reg;
reg [0:0] arg_3_s_eth_hdr_valid_reg;
reg [7:0] arg_3_s_eth_payload_axis_tdata_reg;
reg [0:0] arg_3_s_eth_payload_axis_tlast_reg;
reg [0:0] arg_3_s_eth_payload_axis_tuser_reg;
reg [0:0] arg_3_s_eth_payload_axis_tvalid_reg;
reg [47:0] arg_3_s_eth_src_mac_reg;
reg [15:0] arg_3_s_eth_type_reg;
assign valid = valid_reg;
assign arg_0_raddr = arg_0_raddr_reg;
assign arg_0_waddr = arg_0_waddr_reg;
assign arg_0_wdata = arg_0_wdata_reg;
assign arg_0_wen = arg_0_wen_reg;
assign arg_1_raddr = arg_1_raddr_reg;
assign arg_1_waddr = arg_1_waddr_reg;
assign arg_1_wdata = arg_1_wdata_reg;
assign arg_1_wen = arg_1_wen_reg;
assign arg_2_raddr = arg_2_raddr_reg;
assign arg_2_waddr = arg_2_waddr_reg;
assign arg_2_wdata = arg_2_wdata_reg;
assign arg_2_wen = arg_2_wen_reg;
assign arg_3_m_axis_tready = arg_3_m_axis_tready_reg;
assign arg_3_s_eth_dest_mac = arg_3_s_eth_dest_mac_reg;
assign arg_3_s_eth_hdr_valid = arg_3_s_eth_hdr_valid_reg;
assign arg_3_s_eth_payload_axis_tdata = arg_3_s_eth_payload_axis_tdata_reg;
assign arg_3_s_eth_payload_axis_tlast = arg_3_s_eth_payload_axis_tlast_reg;
assign arg_3_s_eth_payload_axis_tuser = arg_3_s_eth_payload_axis_tuser_reg;
assign arg_3_s_eth_payload_axis_tvalid = arg_3_s_eth_payload_axis_tvalid_reg;
assign arg_3_s_eth_src_mac = arg_3_s_eth_src_mac_reg;
assign arg_3_s_eth_type = arg_3_s_eth_type_reg;
// Start debug wires and ports
initial begin
end
// End debug wires and ports
// Start Functional Units
add call0();
reg [0:0] bb_0_active_in_state_0_in_data;
wire [0:0] bb_0_active_in_state_0_out_data;
hls_wire #(.WIDTH(1)) bb_0_active_in_state_0(.in_data(bb_0_active_in_state_0_in_data), .out_data(bb_0_active_in_state_0_out_data));
reg [31:0] bb_0_predecessor_in_state_0_in_data;
wire [31:0] bb_0_predecessor_in_state_0_out_data;
hls_wire #(.WIDTH(32)) bb_0_predecessor_in_state_0(.in_data(bb_0_predecessor_in_state_0_in_data), .out_data(bb_0_predecessor_in_state_0_out_data));
reg [0:0] bb_0_active_in_state_1_in_data;
wire [0:0] bb_0_active_in_state_1_out_data;
hls_wire #(.WIDTH(1)) bb_0_active_in_state_1(.in_data(bb_0_active_in_state_1_in_data), .out_data(bb_0_active_in_state_1_out_data));
reg [31:0] bb_0_predecessor_in_state_1_in_data;
wire [31:0] bb_0_predecessor_in_state_1_out_data;
hls_wire #(.WIDTH(32)) bb_0_predecessor_in_state_1(.in_data(bb_0_predecessor_in_state_1_in_data), .out_data(bb_0_predecessor_in_state_1_out_data));
reg [0:0] bb_0_active_in_state_2_in_data;
wire [0:0] bb_0_active_in_state_2_out_data;
hls_wire #(.WIDTH(1)) bb_0_active_in_state_2(.in_data(bb_0_active_in_state_2_in_data), .out_data(bb_0_active_in_state_2_out_data));
reg [31:0] bb_0_predecessor_in_state_2_in_data;
wire [31:0] bb_0_predecessor_in_state_2_out_data;
hls_wire #(.WIDTH(32)) bb_0_predecessor_in_state_2(.in_data(bb_0_predecessor_in_state_2_in_data), .out_data(bb_0_predecessor_in_state_2_out_data));
wire [31:0] eq_0_in0;
wire [31:0] eq_0_in1;
wire [0:0] eq_0_out;
eq #(.WIDTH(32)) eq_0(.in0(eq_0_in0), .in1(eq_0_in1), .out(eq_0_out));
wire [31:0] eq_1_in0;
wire [31:0] eq_1_in1;
wire [0:0] eq_1_out;
eq #(.WIDTH(32)) eq_1(.in0(eq_1_in0), .in1(eq_1_in1), .out(eq_1_out));
wire [31:0] eq_2_in0;
wire [31:0] eq_2_in1;
wire [0:0] eq_2_out;
eq #(.WIDTH(32)) eq_2(.in0(eq_2_in0), .in1(eq_2_in1), .out(eq_2_out));
wire [31:0] eq_3_in0;
wire [31:0] eq_3_in1;
wire [0:0] eq_3_out;
eq #(.WIDTH(32)) eq_3(.in0(eq_3_in0), .in1(eq_3_in1), .out(eq_3_out));
wire [31:0] eq_4_in0;
wire [31:0] eq_4_in1;
wire [0:0] eq_4_out;
eq #(.WIDTH(32)) eq_4(.in0(eq_4_in0), .in1(eq_4_in1), .out(eq_4_out));
wire [31:0] eq_5_in0;
wire [31:0] eq_5_in1;
wire [0:0] eq_5_out;
eq #(.WIDTH(32)) eq_5(.in0(eq_5_in0), .in1(eq_5_in1), .out(eq_5_out));
wire [0:0] andOp_6_in0;
wire [0:0] andOp_6_in1;
wire [0:0] andOp_6_out;
andOp #(.WIDTH(1)) andOp_6(.in0(andOp_6_in0), .in1(andOp_6_in1), .out(andOp_6_out));
wire [0:0] andOp_7_in0;
wire [0:0] andOp_7_in1;
wire [0:0] andOp_7_out;
andOp #(.WIDTH(1)) andOp_7(.in0(andOp_7_in0), .in1(andOp_7_in1), .out(andOp_7_out));
wire [0:0] andOp_8_in0;
wire [0:0] andOp_8_in1;
wire [0:0] andOp_8_out;
andOp #(.WIDTH(1)) andOp_8(.in0(andOp_8_in0), .in1(andOp_8_in1), .out(andOp_8_out));
wire [0:0] andOp_9_in0;
wire [0:0] andOp_9_in1;
wire [0:0] andOp_9_out;
andOp #(.WIDTH(1)) andOp_9(.in0(andOp_9_in0), .in1(andOp_9_in1), .out(andOp_9_out));
wire [0:0] andOp_10_in0;
wire [0:0] andOp_10_in1;
wire [0:0] andOp_10_out;
andOp #(.WIDTH(1)) andOp_10(.in0(andOp_10_in0), .in1(andOp_10_in1), .out(andOp_10_out));
wire [0:0] andOp_11_in0;
wire [0:0] andOp_11_in1;
wire [0:0] andOp_11_out;
andOp #(.WIDTH(1)) andOp_11(.in0(andOp_11_in0), .in1(andOp_11_in1), .out(andOp_11_out));
wire [0:0] andOp_12_in0;
wire [0:0] andOp_12_in1;
wire [0:0] andOp_12_out;
andOp #(.WIDTH(1)) andOp_12(.in0(andOp_12_in0), .in1(andOp_12_in1), .out(andOp_12_out));
wire [0:0] andOp_13_in0;
wire [0:0] andOp_13_in1;
wire [0:0] andOp_13_out;
andOp #(.WIDTH(1)) andOp_13(.in0(andOp_13_in0), .in1(andOp_13_in1), .out(andOp_13_out));
wire [0:0] andOp_14_in0;
wire [0:0] andOp_14_in1;
wire [0:0] andOp_14_out;
andOp #(.WIDTH(1)) andOp_14(.in0(andOp_14_in0), .in1(andOp_14_in1), .out(andOp_14_out));
wire [0:0] andOp_15_in0;
wire [0:0] andOp_15_in1;
wire [0:0] andOp_15_out;
andOp #(.WIDTH(1)) andOp_15(.in0(andOp_15_in0), .in1(andOp_15_in1), .out(andOp_15_out));
wire [0:0] andOp_16_in0;
wire [0:0] andOp_16_in1;
wire [0:0] andOp_16_out;
andOp #(.WIDTH(1)) andOp_16(.in0(andOp_16_in0), .in1(andOp_16_in1), .out(andOp_16_out));
wire [0:0] andOp_17_in0;
wire [0:0] andOp_17_in1;
wire [0:0] andOp_17_out;
andOp #(.WIDTH(1)) andOp_17(.in0(andOp_17_in0), .in1(andOp_17_in1), .out(andOp_17_out));
wire [0:0] andOp_18_in0;
wire [0:0] andOp_18_in1;
wire [0:0] andOp_18_out;
andOp #(.WIDTH(1)) andOp_18(.in0(andOp_18_in0), .in1(andOp_18_in1), .out(andOp_18_out));
wire [0:0] notOp_19_in0;
wire [0:0] notOp_19_out;
notOp #(.WIDTH(1)) notOp_19(.in(notOp_19_in0), .out(notOp_19_out));
wire [0:0] andOp_20_in0;
wire [0:0] andOp_20_in1;
wire [0:0] andOp_20_out;
andOp #(.WIDTH(1)) andOp_20(.in0(andOp_20_in0), .in1(andOp_20_in1), .out(andOp_20_out));
wire [0:0] notOp_21_in0;
wire [0:0] notOp_21_out;
notOp #(.WIDTH(1)) notOp_21(.in(notOp_21_in0), .out(notOp_21_out));
wire [0:0] andOp_22_in0;
wire [0:0] andOp_22_in1;
wire [0:0] andOp_22_out;
andOp #(.WIDTH(1)) andOp_22(.in0(andOp_22_in0), .in1(andOp_22_in1), .out(andOp_22_out));
wire [0:0] notOp_23_in0;
wire [0:0] notOp_23_out;
notOp #(.WIDTH(1)) notOp_23(.in(notOp_23_in0), .out(notOp_23_out));
wire [0:0] andOp_24_in0;
wire [0:0] andOp_24_in1;
wire [0:0] andOp_24_out;
andOp #(.WIDTH(1)) andOp_24(.in0(andOp_24_in0), .in1(andOp_24_in1), .out(andOp_24_out));
wire [31:0] eq_25_in0;
wire [31:0] eq_25_in1;
wire [0:0] eq_25_out;
eq #(.WIDTH(32)) eq_25(.in0(eq_25_in0), .in1(eq_25_in1), .out(eq_25_out));
wire [31:0] eq_26_in0;
wire [31:0] eq_26_in1;
wire [0:0] eq_26_out;
eq #(.WIDTH(32)) eq_26(.in0(eq_26_in0), .in1(eq_26_in1), .out(eq_26_out));
wire [31:0] eq_27_in0;
wire [31:0] eq_27_in1;
wire [0:0] eq_27_out;
eq #(.WIDTH(32)) eq_27(.in0(eq_27_in0), .in1(eq_27_in1), .out(eq_27_out));
wire [31:0] eq_28_in0;
wire [31:0] eq_28_in1;
wire [0:0] eq_28_out;
eq #(.WIDTH(32)) eq_28(.in0(eq_28_in0), .in1(eq_28_in1), .out(eq_28_out));
wire [31:0] eq_29_in0;
wire [31:0] eq_29_in1;
wire [0:0] eq_29_out;
eq #(.WIDTH(32)) eq_29(.in0(eq_29_in0), .in1(eq_29_in1), .out(eq_29_out));
// End Functional Units
reg [31:0] global_state;
reg [31:0] state_0_entry_BB_reg;
reg [0:0] state_0_is_active;
reg [31:0] state_0_last_BB_reg;
reg [31:0] state_0_last_state;
reg [31:0] state_1_entry_BB_reg;
reg [0:0] state_1_is_active;
reg [31:0] state_1_last_BB_reg;
reg [31:0] state_1_last_state;
reg [31:0] state_2_entry_BB_reg;
reg [0:0] state_2_is_active;
reg [31:0] state_2_last_BB_reg;
reg [31:0] state_2_last_state;
// controller for andOp_10.andOp_10_in0
// controller for andOp_10.andOp_10_in1
// Insensitive connections
assign andOp_10_in0 = bb_0_active_in_state_1_out_data;
assign andOp_10_in1 = state_1_is_active;
// controller for andOp_11.andOp_11_in0
// controller for andOp_11.andOp_11_in1
// Insensitive connections
assign andOp_11_in0 = bb_0_active_in_state_1_out_data;
assign andOp_11_in1 = state_1_is_active;
// controller for andOp_12.andOp_12_in0
// controller for andOp_12.andOp_12_in1
// Insensitive connections
assign andOp_12_in0 = bb_0_active_in_state_1_out_data;
assign andOp_12_in1 = state_1_is_active;
// controller for andOp_13.andOp_13_in0
// controller for andOp_13.andOp_13_in1
// Insensitive connections
assign andOp_13_in0 = bb_0_active_in_state_1_out_data;
assign andOp_13_in1 = state_1_is_active;
// controller for andOp_14.andOp_14_in0
// controller for andOp_14.andOp_14_in1
// Insensitive connections
assign andOp_14_in0 = bb_0_active_in_state_1_out_data;
assign andOp_14_in1 = state_1_is_active;
// controller for andOp_15.andOp_15_in0
// controller for andOp_15.andOp_15_in1
// Insensitive connections
assign andOp_15_in0 = bb_0_active_in_state_2_out_data;
assign andOp_15_in1 = state_2_is_active;
// controller for andOp_16.andOp_16_in0
// controller for andOp_16.andOp_16_in1
// Insensitive connections
assign andOp_16_in0 = bb_0_active_in_state_0_out_data;
assign andOp_16_in1 = state_0_is_active;
// controller for andOp_17.andOp_17_in0
// controller for andOp_17.andOp_17_in1
// Insensitive connections
assign andOp_17_in0 = bb_0_active_in_state_1_out_data;
assign andOp_17_in1 = state_1_is_active;
// controller for andOp_18.andOp_18_in0
// controller for andOp_18.andOp_18_in1
// Insensitive connections
assign andOp_18_in0 = bb_0_active_in_state_2_out_data;
assign andOp_18_in1 = state_2_is_active;
// controller for andOp_20.andOp_20_in0
// controller for andOp_20.andOp_20_in1
// Insensitive connections
assign andOp_20_in0 = notOp_19_out;
assign andOp_20_in1 = 1'd1;
// controller for andOp_22.andOp_22_in0
// controller for andOp_22.andOp_22_in1
// Insensitive connections
assign andOp_22_in0 = notOp_21_out;
assign andOp_22_in1 = 1'd1;
// controller for andOp_24.andOp_24_in0
// controller for andOp_24.andOp_24_in1
// Insensitive connections
assign andOp_24_in0 = notOp_23_out;
assign andOp_24_in1 = andOp_22_out;
// controller for andOp_6.andOp_6_in0
// controller for andOp_6.andOp_6_in1
// Insensitive connections
assign andOp_6_in0 = bb_0_active_in_state_0_out_data;
assign andOp_6_in1 = state_0_is_active;
// controller for andOp_7.andOp_7_in0
// controller for andOp_7.andOp_7_in1
// Insensitive connections
assign andOp_7_in0 = bb_0_active_in_state_0_out_data;
assign andOp_7_in1 = state_0_is_active;
// controller for andOp_8.andOp_8_in0
// controller for andOp_8.andOp_8_in1
// Insensitive connections
assign andOp_8_in0 = bb_0_active_in_state_1_out_data;
assign andOp_8_in1 = state_1_is_active;
// controller for andOp_9.andOp_9_in0
// controller for andOp_9.andOp_9_in1
// Insensitive connections
assign andOp_9_in0 = bb_0_active_in_state_1_out_data;
assign andOp_9_in1 = state_1_is_active;
// controller for arg_0.arg_0_raddr_reg
always @(*) begin
if (andOp_13_out) begin
arg_0_raddr_reg = arg_0_rdata;
end else begin
arg_0_raddr_reg = 0;
end
end
// controller for arg_1.arg_1_raddr_reg
always @(*) begin
if (andOp_12_out) begin
arg_1_raddr_reg = arg_1_rdata;
end else begin
arg_1_raddr_reg = 0;
end
end
// controller for arg_2.arg_2_raddr_reg
always @(*) begin
if (andOp_14_out) begin
arg_2_raddr_reg = arg_2_rdata;
end else begin
arg_2_raddr_reg = 0;
end
end
// controller for arg_3.arg_3_s_eth_dest_mac_reg
always @(*) begin
if (andOp_11_out) begin
arg_3_s_eth_dest_mac_reg = arg_0_rdata;
end else begin
arg_3_s_eth_dest_mac_reg = 0;
end
end
// controller for arg_3.arg_3_s_eth_hdr_valid_reg
always @(*) begin
if (andOp_10_out) begin
arg_3_s_eth_hdr_valid_reg = 32'd1;
end else begin
arg_3_s_eth_hdr_valid_reg = 0;
end
end
// controller for arg_3.arg_3_s_eth_src_mac_reg
always @(*) begin
if (andOp_8_out) begin
arg_3_s_eth_src_mac_reg = arg_1_rdata;
end else begin
arg_3_s_eth_src_mac_reg = 0;
end
end
// controller for arg_3.arg_3_s_eth_type_reg
always @(*) begin
if (andOp_9_out) begin
arg_3_s_eth_type_reg = arg_2_rdata;
end else begin
arg_3_s_eth_type_reg = 0;
end
end
// controller for bb_0_active_in_state_0.bb_0_active_in_state_0_in_data
always @(*) begin
if (1'd1) begin
bb_0_active_in_state_0_in_data = eq_0_out;
end else begin
bb_0_active_in_state_0_in_data = 0;
end
end
// controller for bb_0_active_in_state_1.bb_0_active_in_state_1_in_data
always @(*) begin
if (1'd1) begin
bb_0_active_in_state_1_in_data = eq_1_out;
end else begin
bb_0_active_in_state_1_in_data = 0;
end
end
// controller for bb_0_active_in_state_2.bb_0_active_in_state_2_in_data
always @(*) begin
if (1'd1) begin
bb_0_active_in_state_2_in_data = eq_2_out;
end else begin
bb_0_active_in_state_2_in_data = 0;
end
end
// controller for bb_0_predecessor_in_state_0.bb_0_predecessor_in_state_0_in_data
always @(*) begin
if (eq_3_out) begin
bb_0_predecessor_in_state_0_in_data = state_0_last_BB_reg;
end else begin
bb_0_predecessor_in_state_0_in_data = 0;
end
end
// controller for bb_0_predecessor_in_state_1.bb_0_predecessor_in_state_1_in_data
always @(*) begin
if (eq_4_out) begin
bb_0_predecessor_in_state_1_in_data = state_1_last_BB_reg;
end else begin
bb_0_predecessor_in_state_1_in_data = 0;
end
end
// controller for bb_0_predecessor_in_state_2.bb_0_predecessor_in_state_2_in_data
always @(*) begin
if (eq_5_out) begin
bb_0_predecessor_in_state_2_in_data = state_2_last_BB_reg;
end else begin
bb_0_predecessor_in_state_2_in_data = 0;
end
end
// controller for eq_0.eq_0_in0
// controller for eq_0.eq_0_in1
// Insensitive connections
assign eq_0_in0 = 32'd0;
assign eq_0_in1 = state_0_entry_BB_reg;
// controller for eq_1.eq_1_in0
// controller for eq_1.eq_1_in1
// Insensitive connections
assign eq_1_in0 = 32'd0;
assign eq_1_in1 = state_1_entry_BB_reg;
// controller for eq_2.eq_2_in0
// controller for eq_2.eq_2_in1
// Insensitive connections
assign eq_2_in0 = 32'd0;
assign eq_2_in1 = state_2_entry_BB_reg;
// controller for eq_25.eq_25_in0
// controller for eq_25.eq_25_in1
// Insensitive connections
assign eq_25_in0 = 32'd0;
assign eq_25_in1 = state_0_last_state;
// controller for eq_26.eq_26_in0
// controller for eq_26.eq_26_in1
// Insensitive connections
assign eq_26_in0 = 32'd0;
assign eq_26_in1 = state_1_last_state;
// controller for eq_27.eq_27_in0
// controller for eq_27.eq_27_in1
// Insensitive connections
assign eq_27_in0 = 32'd1;
assign eq_27_in1 = state_1_last_state;
// controller for eq_28.eq_28_in0
// controller for eq_28.eq_28_in1
// Insensitive connections
assign eq_28_in0 = 32'd1;
assign eq_28_in1 = state_2_last_state;
// controller for eq_29.eq_29_in0
// controller for eq_29.eq_29_in1
// Insensitive connections
assign eq_29_in0 = 32'd2;
assign eq_29_in1 = state_2_last_state;
// controller for eq_3.eq_3_in0
// controller for eq_3.eq_3_in1
// Insensitive connections
assign eq_3_in0 = 32'd0;
assign eq_3_in1 = state_0_entry_BB_reg;
// controller for eq_4.eq_4_in0
// controller for eq_4.eq_4_in1
// Insensitive connections
assign eq_4_in0 = 32'd0;
assign eq_4_in1 = state_1_entry_BB_reg;
// controller for eq_5.eq_5_in0
// controller for eq_5.eq_5_in1
// Insensitive connections
assign eq_5_in0 = 32'd0;
assign eq_5_in1 = state_2_entry_BB_reg;
// controller for notOp_19.notOp_19_in0
// Insensitive connections
assign notOp_19_in0 = andOp_16_out;
// controller for notOp_21.notOp_21_in0
// Insensitive connections
assign notOp_21_in0 = andOp_17_out;
// controller for notOp_23.notOp_23_in0
// Insensitive connections
assign notOp_23_in0 = andOp_18_out;
// controller for ret9.valid_reg
always @(*) begin
if (andOp_15_out) begin
valid_reg = 1'd1;
end else begin
valid_reg = 0;
end
end
// Register controllers
always @(posedge clk) begin
if (rst) begin
global_state <= 0;
end else begin
if (andOp_16_out) begin
global_state <= 32'd1;
end
if (andOp_17_out) begin
global_state <= 32'd2;
end
if (andOp_18_out) begin
global_state <= 32'd2;
end
end
end
always @(posedge clk) begin
if (rst) begin
state_0_entry_BB_reg <= 0;
end else begin
end
end
always @(posedge clk) begin
if (rst) begin
state_0_is_active <= 1;
end else begin
if (1'd1) begin
state_0_is_active <= 1'd0;
end
end
end
always @(posedge clk) begin
if (rst) begin
state_0_last_BB_reg <= 0;
end else begin
end
end
always @(posedge clk) begin
if (rst) begin
state_0_last_state <= 0;
end else begin
end
end
always @(posedge clk) begin
if (rst) begin
state_1_entry_BB_reg <= 0;
end else begin
if (andOp_16_out) begin
state_1_entry_BB_reg <= 32'd0;
end
end
end
always @(posedge clk) begin
if (rst) begin
state_1_is_active <= 0;
end else begin
if (andOp_16_out) begin
state_1_is_active <= 1'd1;
end
if (andOp_20_out) begin
state_1_is_active <= 1'd0;
end
end
end
always @(posedge clk) begin
if (rst) begin
state_1_last_BB_reg <= 0;
end else begin
if (andOp_16_out) begin
state_1_last_BB_reg <= bb_0_predecessor_in_state_0_out_data;
end
end
end
always @(posedge clk) begin
if (rst) begin
state_1_last_state <= 0;
end else begin
if (andOp_16_out) begin
state_1_last_state <= 32'd0;
end
end
end
always @(posedge clk) begin
if (rst) begin
state_2_entry_BB_reg <= 0;
end else begin
if (andOp_17_out) begin
state_2_entry_BB_reg <= 32'd0;
end
if (andOp_18_out) begin
state_2_entry_BB_reg <= 32'd0;
end
end
end
always @(posedge clk) begin
if (rst) begin
state_2_is_active <= 0;
end else begin
if (andOp_17_out) begin
state_2_is_active <= 1'd1;
end
if (andOp_18_out) begin
state_2_is_active <= 1'd1;
end
if (andOp_24_out) begin
state_2_is_active <= 1'd0;
end
end
end
always @(posedge clk) begin
if (rst) begin
state_2_last_BB_reg <= 0;
end else begin
if (andOp_17_out) begin
state_2_last_BB_reg <= bb_0_predecessor_in_state_1_out_data;
end
if (andOp_18_out) begin
state_2_last_BB_reg <= bb_0_predecessor_in_state_2_out_data;
end
end
end
always @(posedge clk) begin
if (rst) begin
state_2_last_state <= 0;
end else begin
if (andOp_17_out) begin
state_2_last_state <= 32'd1;
end
if (andOp_18_out) begin
state_2_last_state <= 32'd2;
end
end
end
endmodule