-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnios_system.vhd
3840 lines (3448 loc) · 258 KB
/
nios_system.vhd
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
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
--megafunction wizard: %Altera SOPC Builder%
--GENERATION: STANDARD
--VERSION: WM1.0
--Legal Notice: (C)2013 Altera Corporation. All rights reserved. Your
--use of Altera Corporation's design tools, logic functions and other
--software and tools, and its AMPP partner logic functions, and any
--output files any of the foregoing (including device programming or
--simulation files), and any associated documentation or information are
--expressly subject to the terms and conditions of the Altera Program
--License Subscription Agreement or other applicable license agreement,
--including, without limitation, that your use is for the sole purpose
--of programming logic devices manufactured by Altera and sold by Altera
--or its authorized distributors. Please refer to the applicable
--agreement for further details.
-- turn off superfluous VHDL processor warnings
-- altera message_level Level1
-- altera message_off 10034 10035 10036 10037 10230 10240 10030
library altera;
use altera.altera_europa_support_lib.all;
library altera_mf;
use altera_mf.altera_mf_components.all;
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
library std;
use std.textio.all;
entity cpu_0_jtag_debug_module_arbitrator is
port (
-- inputs:
signal clk : IN STD_LOGIC;
signal cpu_0_data_master_address_to_slave : IN STD_LOGIC_VECTOR (20 DOWNTO 0);
signal cpu_0_data_master_byteenable : IN STD_LOGIC_VECTOR (3 DOWNTO 0);
signal cpu_0_data_master_debugaccess : IN STD_LOGIC;
signal cpu_0_data_master_read : IN STD_LOGIC;
signal cpu_0_data_master_waitrequest : IN STD_LOGIC;
signal cpu_0_data_master_write : IN STD_LOGIC;
signal cpu_0_data_master_writedata : IN STD_LOGIC_VECTOR (31 DOWNTO 0);
signal cpu_0_instruction_master_address_to_slave : IN STD_LOGIC_VECTOR (20 DOWNTO 0);
signal cpu_0_instruction_master_read : IN STD_LOGIC;
signal cpu_0_jtag_debug_module_readdata : IN STD_LOGIC_VECTOR (31 DOWNTO 0);
signal cpu_0_jtag_debug_module_resetrequest : IN STD_LOGIC;
signal reset_n : IN STD_LOGIC;
-- outputs:
signal cpu_0_data_master_granted_cpu_0_jtag_debug_module : OUT STD_LOGIC;
signal cpu_0_data_master_qualified_request_cpu_0_jtag_debug_module : OUT STD_LOGIC;
signal cpu_0_data_master_read_data_valid_cpu_0_jtag_debug_module : OUT STD_LOGIC;
signal cpu_0_data_master_requests_cpu_0_jtag_debug_module : OUT STD_LOGIC;
signal cpu_0_instruction_master_granted_cpu_0_jtag_debug_module : OUT STD_LOGIC;
signal cpu_0_instruction_master_qualified_request_cpu_0_jtag_debug_module : OUT STD_LOGIC;
signal cpu_0_instruction_master_read_data_valid_cpu_0_jtag_debug_module : OUT STD_LOGIC;
signal cpu_0_instruction_master_requests_cpu_0_jtag_debug_module : OUT STD_LOGIC;
signal cpu_0_jtag_debug_module_address : OUT STD_LOGIC_VECTOR (8 DOWNTO 0);
signal cpu_0_jtag_debug_module_begintransfer : OUT STD_LOGIC;
signal cpu_0_jtag_debug_module_byteenable : OUT STD_LOGIC_VECTOR (3 DOWNTO 0);
signal cpu_0_jtag_debug_module_chipselect : OUT STD_LOGIC;
signal cpu_0_jtag_debug_module_debugaccess : OUT STD_LOGIC;
signal cpu_0_jtag_debug_module_readdata_from_sa : OUT STD_LOGIC_VECTOR (31 DOWNTO 0);
signal cpu_0_jtag_debug_module_reset_n : OUT STD_LOGIC;
signal cpu_0_jtag_debug_module_resetrequest_from_sa : OUT STD_LOGIC;
signal cpu_0_jtag_debug_module_write : OUT STD_LOGIC;
signal cpu_0_jtag_debug_module_writedata : OUT STD_LOGIC_VECTOR (31 DOWNTO 0);
signal d1_cpu_0_jtag_debug_module_end_xfer : OUT STD_LOGIC
);
end entity cpu_0_jtag_debug_module_arbitrator;
architecture europa of cpu_0_jtag_debug_module_arbitrator is
signal cpu_0_data_master_arbiterlock : STD_LOGIC;
signal cpu_0_data_master_arbiterlock2 : STD_LOGIC;
signal cpu_0_data_master_continuerequest : STD_LOGIC;
signal cpu_0_data_master_saved_grant_cpu_0_jtag_debug_module : STD_LOGIC;
signal cpu_0_instruction_master_arbiterlock : STD_LOGIC;
signal cpu_0_instruction_master_arbiterlock2 : STD_LOGIC;
signal cpu_0_instruction_master_continuerequest : STD_LOGIC;
signal cpu_0_instruction_master_saved_grant_cpu_0_jtag_debug_module : STD_LOGIC;
signal cpu_0_jtag_debug_module_allgrants : STD_LOGIC;
signal cpu_0_jtag_debug_module_allow_new_arb_cycle : STD_LOGIC;
signal cpu_0_jtag_debug_module_any_bursting_master_saved_grant : STD_LOGIC;
signal cpu_0_jtag_debug_module_any_continuerequest : STD_LOGIC;
signal cpu_0_jtag_debug_module_arb_addend : STD_LOGIC_VECTOR (1 DOWNTO 0);
signal cpu_0_jtag_debug_module_arb_counter_enable : STD_LOGIC;
signal cpu_0_jtag_debug_module_arb_share_counter : STD_LOGIC_VECTOR (2 DOWNTO 0);
signal cpu_0_jtag_debug_module_arb_share_counter_next_value : STD_LOGIC_VECTOR (2 DOWNTO 0);
signal cpu_0_jtag_debug_module_arb_share_set_values : STD_LOGIC_VECTOR (2 DOWNTO 0);
signal cpu_0_jtag_debug_module_arb_winner : STD_LOGIC_VECTOR (1 DOWNTO 0);
signal cpu_0_jtag_debug_module_arbitration_holdoff_internal : STD_LOGIC;
signal cpu_0_jtag_debug_module_beginbursttransfer_internal : STD_LOGIC;
signal cpu_0_jtag_debug_module_begins_xfer : STD_LOGIC;
signal cpu_0_jtag_debug_module_chosen_master_double_vector : STD_LOGIC_VECTOR (3 DOWNTO 0);
signal cpu_0_jtag_debug_module_chosen_master_rot_left : STD_LOGIC_VECTOR (1 DOWNTO 0);
signal cpu_0_jtag_debug_module_end_xfer : STD_LOGIC;
signal cpu_0_jtag_debug_module_firsttransfer : STD_LOGIC;
signal cpu_0_jtag_debug_module_grant_vector : STD_LOGIC_VECTOR (1 DOWNTO 0);
signal cpu_0_jtag_debug_module_in_a_read_cycle : STD_LOGIC;
signal cpu_0_jtag_debug_module_in_a_write_cycle : STD_LOGIC;
signal cpu_0_jtag_debug_module_master_qreq_vector : STD_LOGIC_VECTOR (1 DOWNTO 0);
signal cpu_0_jtag_debug_module_non_bursting_master_requests : STD_LOGIC;
signal cpu_0_jtag_debug_module_reg_firsttransfer : STD_LOGIC;
signal cpu_0_jtag_debug_module_saved_chosen_master_vector : STD_LOGIC_VECTOR (1 DOWNTO 0);
signal cpu_0_jtag_debug_module_slavearbiterlockenable : STD_LOGIC;
signal cpu_0_jtag_debug_module_slavearbiterlockenable2 : STD_LOGIC;
signal cpu_0_jtag_debug_module_unreg_firsttransfer : STD_LOGIC;
signal cpu_0_jtag_debug_module_waits_for_read : STD_LOGIC;
signal cpu_0_jtag_debug_module_waits_for_write : STD_LOGIC;
signal d1_reasons_to_wait : STD_LOGIC;
signal enable_nonzero_assertions : STD_LOGIC;
signal end_xfer_arb_share_counter_term_cpu_0_jtag_debug_module : STD_LOGIC;
signal in_a_read_cycle : STD_LOGIC;
signal in_a_write_cycle : STD_LOGIC;
signal internal_cpu_0_data_master_granted_cpu_0_jtag_debug_module : STD_LOGIC;
signal internal_cpu_0_data_master_qualified_request_cpu_0_jtag_debug_module : STD_LOGIC;
signal internal_cpu_0_data_master_requests_cpu_0_jtag_debug_module : STD_LOGIC;
signal internal_cpu_0_instruction_master_granted_cpu_0_jtag_debug_module : STD_LOGIC;
signal internal_cpu_0_instruction_master_qualified_request_cpu_0_jtag_debug_module : STD_LOGIC;
signal internal_cpu_0_instruction_master_requests_cpu_0_jtag_debug_module : STD_LOGIC;
signal last_cycle_cpu_0_data_master_granted_slave_cpu_0_jtag_debug_module : STD_LOGIC;
signal last_cycle_cpu_0_instruction_master_granted_slave_cpu_0_jtag_debug_module : STD_LOGIC;
signal shifted_address_to_cpu_0_jtag_debug_module_from_cpu_0_data_master : STD_LOGIC_VECTOR (20 DOWNTO 0);
signal shifted_address_to_cpu_0_jtag_debug_module_from_cpu_0_instruction_master : STD_LOGIC_VECTOR (20 DOWNTO 0);
signal wait_for_cpu_0_jtag_debug_module_counter : STD_LOGIC;
begin
process (clk, reset_n)
begin
if reset_n = '0' then
d1_reasons_to_wait <= std_logic'('0');
elsif clk'event and clk = '1' then
d1_reasons_to_wait <= NOT cpu_0_jtag_debug_module_end_xfer;
end if;
end process;
cpu_0_jtag_debug_module_begins_xfer <= NOT d1_reasons_to_wait AND ((internal_cpu_0_data_master_qualified_request_cpu_0_jtag_debug_module OR internal_cpu_0_instruction_master_qualified_request_cpu_0_jtag_debug_module));
--assign cpu_0_jtag_debug_module_readdata_from_sa = cpu_0_jtag_debug_module_readdata so that symbol knows where to group signals which may go to master only, which is an e_assign
cpu_0_jtag_debug_module_readdata_from_sa <= cpu_0_jtag_debug_module_readdata;
internal_cpu_0_data_master_requests_cpu_0_jtag_debug_module <= to_std_logic(((Std_Logic_Vector'(cpu_0_data_master_address_to_slave(20 DOWNTO 11) & std_logic_vector'("00000000000")) = std_logic_vector'("100000000100000000000")))) AND ((cpu_0_data_master_read OR cpu_0_data_master_write));
--cpu_0_jtag_debug_module_arb_share_counter set values, which is an e_mux
cpu_0_jtag_debug_module_arb_share_set_values <= std_logic_vector'("001");
--cpu_0_jtag_debug_module_non_bursting_master_requests mux, which is an e_mux
cpu_0_jtag_debug_module_non_bursting_master_requests <= ((internal_cpu_0_data_master_requests_cpu_0_jtag_debug_module OR internal_cpu_0_instruction_master_requests_cpu_0_jtag_debug_module) OR internal_cpu_0_data_master_requests_cpu_0_jtag_debug_module) OR internal_cpu_0_instruction_master_requests_cpu_0_jtag_debug_module;
--cpu_0_jtag_debug_module_any_bursting_master_saved_grant mux, which is an e_mux
cpu_0_jtag_debug_module_any_bursting_master_saved_grant <= std_logic'('0');
--cpu_0_jtag_debug_module_arb_share_counter_next_value assignment, which is an e_assign
cpu_0_jtag_debug_module_arb_share_counter_next_value <= A_EXT (A_WE_StdLogicVector((std_logic'(cpu_0_jtag_debug_module_firsttransfer) = '1'), (((std_logic_vector'("000000000000000000000000000000") & (cpu_0_jtag_debug_module_arb_share_set_values)) - std_logic_vector'("000000000000000000000000000000001"))), A_WE_StdLogicVector((std_logic'(or_reduce(cpu_0_jtag_debug_module_arb_share_counter)) = '1'), (((std_logic_vector'("000000000000000000000000000000") & (cpu_0_jtag_debug_module_arb_share_counter)) - std_logic_vector'("000000000000000000000000000000001"))), std_logic_vector'("000000000000000000000000000000000"))), 3);
--cpu_0_jtag_debug_module_allgrants all slave grants, which is an e_mux
cpu_0_jtag_debug_module_allgrants <= (((or_reduce(cpu_0_jtag_debug_module_grant_vector)) OR (or_reduce(cpu_0_jtag_debug_module_grant_vector))) OR (or_reduce(cpu_0_jtag_debug_module_grant_vector))) OR (or_reduce(cpu_0_jtag_debug_module_grant_vector));
--cpu_0_jtag_debug_module_end_xfer assignment, which is an e_assign
cpu_0_jtag_debug_module_end_xfer <= NOT ((cpu_0_jtag_debug_module_waits_for_read OR cpu_0_jtag_debug_module_waits_for_write));
--end_xfer_arb_share_counter_term_cpu_0_jtag_debug_module arb share counter enable term, which is an e_assign
end_xfer_arb_share_counter_term_cpu_0_jtag_debug_module <= cpu_0_jtag_debug_module_end_xfer AND (((NOT cpu_0_jtag_debug_module_any_bursting_master_saved_grant OR in_a_read_cycle) OR in_a_write_cycle));
--cpu_0_jtag_debug_module_arb_share_counter arbitration counter enable, which is an e_assign
cpu_0_jtag_debug_module_arb_counter_enable <= ((end_xfer_arb_share_counter_term_cpu_0_jtag_debug_module AND cpu_0_jtag_debug_module_allgrants)) OR ((end_xfer_arb_share_counter_term_cpu_0_jtag_debug_module AND NOT cpu_0_jtag_debug_module_non_bursting_master_requests));
--cpu_0_jtag_debug_module_arb_share_counter counter, which is an e_register
process (clk, reset_n)
begin
if reset_n = '0' then
cpu_0_jtag_debug_module_arb_share_counter <= std_logic_vector'("000");
elsif clk'event and clk = '1' then
if std_logic'(cpu_0_jtag_debug_module_arb_counter_enable) = '1' then
cpu_0_jtag_debug_module_arb_share_counter <= cpu_0_jtag_debug_module_arb_share_counter_next_value;
end if;
end if;
end process;
--cpu_0_jtag_debug_module_slavearbiterlockenable slave enables arbiterlock, which is an e_register
process (clk, reset_n)
begin
if reset_n = '0' then
cpu_0_jtag_debug_module_slavearbiterlockenable <= std_logic'('0');
elsif clk'event and clk = '1' then
if std_logic'((((or_reduce(cpu_0_jtag_debug_module_master_qreq_vector) AND end_xfer_arb_share_counter_term_cpu_0_jtag_debug_module)) OR ((end_xfer_arb_share_counter_term_cpu_0_jtag_debug_module AND NOT cpu_0_jtag_debug_module_non_bursting_master_requests)))) = '1' then
cpu_0_jtag_debug_module_slavearbiterlockenable <= or_reduce(cpu_0_jtag_debug_module_arb_share_counter_next_value);
end if;
end if;
end process;
--cpu_0/data_master cpu_0/jtag_debug_module arbiterlock, which is an e_assign
cpu_0_data_master_arbiterlock <= cpu_0_jtag_debug_module_slavearbiterlockenable AND cpu_0_data_master_continuerequest;
--cpu_0_jtag_debug_module_slavearbiterlockenable2 slave enables arbiterlock2, which is an e_assign
cpu_0_jtag_debug_module_slavearbiterlockenable2 <= or_reduce(cpu_0_jtag_debug_module_arb_share_counter_next_value);
--cpu_0/data_master cpu_0/jtag_debug_module arbiterlock2, which is an e_assign
cpu_0_data_master_arbiterlock2 <= cpu_0_jtag_debug_module_slavearbiterlockenable2 AND cpu_0_data_master_continuerequest;
--cpu_0/instruction_master cpu_0/jtag_debug_module arbiterlock, which is an e_assign
cpu_0_instruction_master_arbiterlock <= cpu_0_jtag_debug_module_slavearbiterlockenable AND cpu_0_instruction_master_continuerequest;
--cpu_0/instruction_master cpu_0/jtag_debug_module arbiterlock2, which is an e_assign
cpu_0_instruction_master_arbiterlock2 <= cpu_0_jtag_debug_module_slavearbiterlockenable2 AND cpu_0_instruction_master_continuerequest;
--cpu_0/instruction_master granted cpu_0/jtag_debug_module last time, which is an e_register
process (clk, reset_n)
begin
if reset_n = '0' then
last_cycle_cpu_0_instruction_master_granted_slave_cpu_0_jtag_debug_module <= std_logic'('0');
elsif clk'event and clk = '1' then
last_cycle_cpu_0_instruction_master_granted_slave_cpu_0_jtag_debug_module <= Vector_To_Std_Logic(A_WE_StdLogicVector((std_logic'(cpu_0_instruction_master_saved_grant_cpu_0_jtag_debug_module) = '1'), std_logic_vector'("00000000000000000000000000000001"), A_WE_StdLogicVector((std_logic'(((cpu_0_jtag_debug_module_arbitration_holdoff_internal OR NOT internal_cpu_0_instruction_master_requests_cpu_0_jtag_debug_module))) = '1'), std_logic_vector'("00000000000000000000000000000000"), (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(last_cycle_cpu_0_instruction_master_granted_slave_cpu_0_jtag_debug_module))))));
end if;
end process;
--cpu_0_instruction_master_continuerequest continued request, which is an e_mux
cpu_0_instruction_master_continuerequest <= last_cycle_cpu_0_instruction_master_granted_slave_cpu_0_jtag_debug_module AND internal_cpu_0_instruction_master_requests_cpu_0_jtag_debug_module;
--cpu_0_jtag_debug_module_any_continuerequest at least one master continues requesting, which is an e_mux
cpu_0_jtag_debug_module_any_continuerequest <= cpu_0_instruction_master_continuerequest OR cpu_0_data_master_continuerequest;
internal_cpu_0_data_master_qualified_request_cpu_0_jtag_debug_module <= internal_cpu_0_data_master_requests_cpu_0_jtag_debug_module AND NOT (((((NOT cpu_0_data_master_waitrequest) AND cpu_0_data_master_write)) OR cpu_0_instruction_master_arbiterlock));
--cpu_0_jtag_debug_module_writedata mux, which is an e_mux
cpu_0_jtag_debug_module_writedata <= cpu_0_data_master_writedata;
internal_cpu_0_instruction_master_requests_cpu_0_jtag_debug_module <= ((to_std_logic(((Std_Logic_Vector'(cpu_0_instruction_master_address_to_slave(20 DOWNTO 11) & std_logic_vector'("00000000000")) = std_logic_vector'("100000000100000000000")))) AND (cpu_0_instruction_master_read))) AND cpu_0_instruction_master_read;
--cpu_0/data_master granted cpu_0/jtag_debug_module last time, which is an e_register
process (clk, reset_n)
begin
if reset_n = '0' then
last_cycle_cpu_0_data_master_granted_slave_cpu_0_jtag_debug_module <= std_logic'('0');
elsif clk'event and clk = '1' then
last_cycle_cpu_0_data_master_granted_slave_cpu_0_jtag_debug_module <= Vector_To_Std_Logic(A_WE_StdLogicVector((std_logic'(cpu_0_data_master_saved_grant_cpu_0_jtag_debug_module) = '1'), std_logic_vector'("00000000000000000000000000000001"), A_WE_StdLogicVector((std_logic'(((cpu_0_jtag_debug_module_arbitration_holdoff_internal OR NOT internal_cpu_0_data_master_requests_cpu_0_jtag_debug_module))) = '1'), std_logic_vector'("00000000000000000000000000000000"), (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(last_cycle_cpu_0_data_master_granted_slave_cpu_0_jtag_debug_module))))));
end if;
end process;
--cpu_0_data_master_continuerequest continued request, which is an e_mux
cpu_0_data_master_continuerequest <= last_cycle_cpu_0_data_master_granted_slave_cpu_0_jtag_debug_module AND internal_cpu_0_data_master_requests_cpu_0_jtag_debug_module;
internal_cpu_0_instruction_master_qualified_request_cpu_0_jtag_debug_module <= internal_cpu_0_instruction_master_requests_cpu_0_jtag_debug_module AND NOT (cpu_0_data_master_arbiterlock);
--allow new arb cycle for cpu_0/jtag_debug_module, which is an e_assign
cpu_0_jtag_debug_module_allow_new_arb_cycle <= NOT cpu_0_data_master_arbiterlock AND NOT cpu_0_instruction_master_arbiterlock;
--cpu_0/instruction_master assignment into master qualified-requests vector for cpu_0/jtag_debug_module, which is an e_assign
cpu_0_jtag_debug_module_master_qreq_vector(0) <= internal_cpu_0_instruction_master_qualified_request_cpu_0_jtag_debug_module;
--cpu_0/instruction_master grant cpu_0/jtag_debug_module, which is an e_assign
internal_cpu_0_instruction_master_granted_cpu_0_jtag_debug_module <= cpu_0_jtag_debug_module_grant_vector(0);
--cpu_0/instruction_master saved-grant cpu_0/jtag_debug_module, which is an e_assign
cpu_0_instruction_master_saved_grant_cpu_0_jtag_debug_module <= cpu_0_jtag_debug_module_arb_winner(0) AND internal_cpu_0_instruction_master_requests_cpu_0_jtag_debug_module;
--cpu_0/data_master assignment into master qualified-requests vector for cpu_0/jtag_debug_module, which is an e_assign
cpu_0_jtag_debug_module_master_qreq_vector(1) <= internal_cpu_0_data_master_qualified_request_cpu_0_jtag_debug_module;
--cpu_0/data_master grant cpu_0/jtag_debug_module, which is an e_assign
internal_cpu_0_data_master_granted_cpu_0_jtag_debug_module <= cpu_0_jtag_debug_module_grant_vector(1);
--cpu_0/data_master saved-grant cpu_0/jtag_debug_module, which is an e_assign
cpu_0_data_master_saved_grant_cpu_0_jtag_debug_module <= cpu_0_jtag_debug_module_arb_winner(1) AND internal_cpu_0_data_master_requests_cpu_0_jtag_debug_module;
--cpu_0/jtag_debug_module chosen-master double-vector, which is an e_assign
cpu_0_jtag_debug_module_chosen_master_double_vector <= A_EXT (((std_logic_vector'("0") & ((cpu_0_jtag_debug_module_master_qreq_vector & cpu_0_jtag_debug_module_master_qreq_vector))) AND (((std_logic_vector'("0") & (Std_Logic_Vector'(NOT cpu_0_jtag_debug_module_master_qreq_vector & NOT cpu_0_jtag_debug_module_master_qreq_vector))) + (std_logic_vector'("000") & (cpu_0_jtag_debug_module_arb_addend))))), 4);
--stable onehot encoding of arb winner
cpu_0_jtag_debug_module_arb_winner <= A_WE_StdLogicVector((std_logic'(((cpu_0_jtag_debug_module_allow_new_arb_cycle AND or_reduce(cpu_0_jtag_debug_module_grant_vector)))) = '1'), cpu_0_jtag_debug_module_grant_vector, cpu_0_jtag_debug_module_saved_chosen_master_vector);
--saved cpu_0_jtag_debug_module_grant_vector, which is an e_register
process (clk, reset_n)
begin
if reset_n = '0' then
cpu_0_jtag_debug_module_saved_chosen_master_vector <= std_logic_vector'("00");
elsif clk'event and clk = '1' then
if std_logic'(cpu_0_jtag_debug_module_allow_new_arb_cycle) = '1' then
cpu_0_jtag_debug_module_saved_chosen_master_vector <= A_WE_StdLogicVector((std_logic'(or_reduce(cpu_0_jtag_debug_module_grant_vector)) = '1'), cpu_0_jtag_debug_module_grant_vector, cpu_0_jtag_debug_module_saved_chosen_master_vector);
end if;
end if;
end process;
--onehot encoding of chosen master
cpu_0_jtag_debug_module_grant_vector <= Std_Logic_Vector'(A_ToStdLogicVector(((cpu_0_jtag_debug_module_chosen_master_double_vector(1) OR cpu_0_jtag_debug_module_chosen_master_double_vector(3)))) & A_ToStdLogicVector(((cpu_0_jtag_debug_module_chosen_master_double_vector(0) OR cpu_0_jtag_debug_module_chosen_master_double_vector(2)))));
--cpu_0/jtag_debug_module chosen master rotated left, which is an e_assign
cpu_0_jtag_debug_module_chosen_master_rot_left <= A_EXT (A_WE_StdLogicVector((((A_SLL(cpu_0_jtag_debug_module_arb_winner,std_logic_vector'("00000000000000000000000000000001")))) /= std_logic_vector'("00")), (std_logic_vector'("000000000000000000000000000000") & ((A_SLL(cpu_0_jtag_debug_module_arb_winner,std_logic_vector'("00000000000000000000000000000001"))))), std_logic_vector'("00000000000000000000000000000001")), 2);
--cpu_0/jtag_debug_module's addend for next-master-grant
process (clk, reset_n)
begin
if reset_n = '0' then
cpu_0_jtag_debug_module_arb_addend <= std_logic_vector'("01");
elsif clk'event and clk = '1' then
if std_logic'(or_reduce(cpu_0_jtag_debug_module_grant_vector)) = '1' then
cpu_0_jtag_debug_module_arb_addend <= A_WE_StdLogicVector((std_logic'(cpu_0_jtag_debug_module_end_xfer) = '1'), cpu_0_jtag_debug_module_chosen_master_rot_left, cpu_0_jtag_debug_module_grant_vector);
end if;
end if;
end process;
cpu_0_jtag_debug_module_begintransfer <= cpu_0_jtag_debug_module_begins_xfer;
--cpu_0_jtag_debug_module_reset_n assignment, which is an e_assign
cpu_0_jtag_debug_module_reset_n <= reset_n;
--assign cpu_0_jtag_debug_module_resetrequest_from_sa = cpu_0_jtag_debug_module_resetrequest so that symbol knows where to group signals which may go to master only, which is an e_assign
cpu_0_jtag_debug_module_resetrequest_from_sa <= cpu_0_jtag_debug_module_resetrequest;
cpu_0_jtag_debug_module_chipselect <= internal_cpu_0_data_master_granted_cpu_0_jtag_debug_module OR internal_cpu_0_instruction_master_granted_cpu_0_jtag_debug_module;
--cpu_0_jtag_debug_module_firsttransfer first transaction, which is an e_assign
cpu_0_jtag_debug_module_firsttransfer <= A_WE_StdLogic((std_logic'(cpu_0_jtag_debug_module_begins_xfer) = '1'), cpu_0_jtag_debug_module_unreg_firsttransfer, cpu_0_jtag_debug_module_reg_firsttransfer);
--cpu_0_jtag_debug_module_unreg_firsttransfer first transaction, which is an e_assign
cpu_0_jtag_debug_module_unreg_firsttransfer <= NOT ((cpu_0_jtag_debug_module_slavearbiterlockenable AND cpu_0_jtag_debug_module_any_continuerequest));
--cpu_0_jtag_debug_module_reg_firsttransfer first transaction, which is an e_register
process (clk, reset_n)
begin
if reset_n = '0' then
cpu_0_jtag_debug_module_reg_firsttransfer <= std_logic'('1');
elsif clk'event and clk = '1' then
if std_logic'(cpu_0_jtag_debug_module_begins_xfer) = '1' then
cpu_0_jtag_debug_module_reg_firsttransfer <= cpu_0_jtag_debug_module_unreg_firsttransfer;
end if;
end if;
end process;
--cpu_0_jtag_debug_module_beginbursttransfer_internal begin burst transfer, which is an e_assign
cpu_0_jtag_debug_module_beginbursttransfer_internal <= cpu_0_jtag_debug_module_begins_xfer;
--cpu_0_jtag_debug_module_arbitration_holdoff_internal arbitration_holdoff, which is an e_assign
cpu_0_jtag_debug_module_arbitration_holdoff_internal <= cpu_0_jtag_debug_module_begins_xfer AND cpu_0_jtag_debug_module_firsttransfer;
--cpu_0_jtag_debug_module_write assignment, which is an e_mux
cpu_0_jtag_debug_module_write <= internal_cpu_0_data_master_granted_cpu_0_jtag_debug_module AND cpu_0_data_master_write;
shifted_address_to_cpu_0_jtag_debug_module_from_cpu_0_data_master <= cpu_0_data_master_address_to_slave;
--cpu_0_jtag_debug_module_address mux, which is an e_mux
cpu_0_jtag_debug_module_address <= A_EXT (A_WE_StdLogicVector((std_logic'((internal_cpu_0_data_master_granted_cpu_0_jtag_debug_module)) = '1'), (A_SRL(shifted_address_to_cpu_0_jtag_debug_module_from_cpu_0_data_master,std_logic_vector'("00000000000000000000000000000010"))), (A_SRL(shifted_address_to_cpu_0_jtag_debug_module_from_cpu_0_instruction_master,std_logic_vector'("00000000000000000000000000000010")))), 9);
shifted_address_to_cpu_0_jtag_debug_module_from_cpu_0_instruction_master <= cpu_0_instruction_master_address_to_slave;
--d1_cpu_0_jtag_debug_module_end_xfer register, which is an e_register
process (clk, reset_n)
begin
if reset_n = '0' then
d1_cpu_0_jtag_debug_module_end_xfer <= std_logic'('1');
elsif clk'event and clk = '1' then
d1_cpu_0_jtag_debug_module_end_xfer <= cpu_0_jtag_debug_module_end_xfer;
end if;
end process;
--cpu_0_jtag_debug_module_waits_for_read in a cycle, which is an e_mux
cpu_0_jtag_debug_module_waits_for_read <= cpu_0_jtag_debug_module_in_a_read_cycle AND cpu_0_jtag_debug_module_begins_xfer;
--cpu_0_jtag_debug_module_in_a_read_cycle assignment, which is an e_assign
cpu_0_jtag_debug_module_in_a_read_cycle <= ((internal_cpu_0_data_master_granted_cpu_0_jtag_debug_module AND cpu_0_data_master_read)) OR ((internal_cpu_0_instruction_master_granted_cpu_0_jtag_debug_module AND cpu_0_instruction_master_read));
--in_a_read_cycle assignment, which is an e_mux
in_a_read_cycle <= cpu_0_jtag_debug_module_in_a_read_cycle;
--cpu_0_jtag_debug_module_waits_for_write in a cycle, which is an e_mux
cpu_0_jtag_debug_module_waits_for_write <= Vector_To_Std_Logic(((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(cpu_0_jtag_debug_module_in_a_write_cycle))) AND std_logic_vector'("00000000000000000000000000000000")));
--cpu_0_jtag_debug_module_in_a_write_cycle assignment, which is an e_assign
cpu_0_jtag_debug_module_in_a_write_cycle <= internal_cpu_0_data_master_granted_cpu_0_jtag_debug_module AND cpu_0_data_master_write;
--in_a_write_cycle assignment, which is an e_mux
in_a_write_cycle <= cpu_0_jtag_debug_module_in_a_write_cycle;
wait_for_cpu_0_jtag_debug_module_counter <= std_logic'('0');
--cpu_0_jtag_debug_module_byteenable byte enable port mux, which is an e_mux
cpu_0_jtag_debug_module_byteenable <= A_EXT (A_WE_StdLogicVector((std_logic'((internal_cpu_0_data_master_granted_cpu_0_jtag_debug_module)) = '1'), (std_logic_vector'("0000000000000000000000000000") & (cpu_0_data_master_byteenable)), -SIGNED(std_logic_vector'("00000000000000000000000000000001"))), 4);
--debugaccess mux, which is an e_mux
cpu_0_jtag_debug_module_debugaccess <= Vector_To_Std_Logic(A_WE_StdLogicVector((std_logic'((internal_cpu_0_data_master_granted_cpu_0_jtag_debug_module)) = '1'), (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(cpu_0_data_master_debugaccess))), std_logic_vector'("00000000000000000000000000000000")));
--vhdl renameroo for output signals
cpu_0_data_master_granted_cpu_0_jtag_debug_module <= internal_cpu_0_data_master_granted_cpu_0_jtag_debug_module;
--vhdl renameroo for output signals
cpu_0_data_master_qualified_request_cpu_0_jtag_debug_module <= internal_cpu_0_data_master_qualified_request_cpu_0_jtag_debug_module;
--vhdl renameroo for output signals
cpu_0_data_master_requests_cpu_0_jtag_debug_module <= internal_cpu_0_data_master_requests_cpu_0_jtag_debug_module;
--vhdl renameroo for output signals
cpu_0_instruction_master_granted_cpu_0_jtag_debug_module <= internal_cpu_0_instruction_master_granted_cpu_0_jtag_debug_module;
--vhdl renameroo for output signals
cpu_0_instruction_master_qualified_request_cpu_0_jtag_debug_module <= internal_cpu_0_instruction_master_qualified_request_cpu_0_jtag_debug_module;
--vhdl renameroo for output signals
cpu_0_instruction_master_requests_cpu_0_jtag_debug_module <= internal_cpu_0_instruction_master_requests_cpu_0_jtag_debug_module;
--synthesis translate_off
--cpu_0/jtag_debug_module enable non-zero assertions, which is an e_register
process (clk, reset_n)
begin
if reset_n = '0' then
enable_nonzero_assertions <= std_logic'('0');
elsif clk'event and clk = '1' then
enable_nonzero_assertions <= std_logic'('1');
end if;
end process;
--grant signals are active simultaneously, which is an e_process
process (clk)
VARIABLE write_line : line;
begin
if clk'event and clk = '1' then
if (std_logic_vector'("000000000000000000000000000000") & (((std_logic_vector'("0") & (A_TOSTDLOGICVECTOR(internal_cpu_0_data_master_granted_cpu_0_jtag_debug_module))) + (std_logic_vector'("0") & (A_TOSTDLOGICVECTOR(internal_cpu_0_instruction_master_granted_cpu_0_jtag_debug_module))))))>std_logic_vector'("00000000000000000000000000000001") then
write(write_line, now);
write(write_line, string'(": "));
write(write_line, string'("> 1 of grant signals are active simultaneously"));
write(output, write_line.all);
deallocate (write_line);
assert false report "VHDL STOP" severity failure;
end if;
end if;
end process;
--saved_grant signals are active simultaneously, which is an e_process
process (clk)
VARIABLE write_line1 : line;
begin
if clk'event and clk = '1' then
if (std_logic_vector'("000000000000000000000000000000") & (((std_logic_vector'("0") & (A_TOSTDLOGICVECTOR(cpu_0_data_master_saved_grant_cpu_0_jtag_debug_module))) + (std_logic_vector'("0") & (A_TOSTDLOGICVECTOR(cpu_0_instruction_master_saved_grant_cpu_0_jtag_debug_module))))))>std_logic_vector'("00000000000000000000000000000001") then
write(write_line1, now);
write(write_line1, string'(": "));
write(write_line1, string'("> 1 of saved_grant signals are active simultaneously"));
write(output, write_line1.all);
deallocate (write_line1);
assert false report "VHDL STOP" severity failure;
end if;
end if;
end process;
--synthesis translate_on
end europa;
-- turn off superfluous VHDL processor warnings
-- altera message_level Level1
-- altera message_off 10034 10035 10036 10037 10230 10240 10030
library altera;
use altera.altera_europa_support_lib.all;
library altera_mf;
use altera_mf.altera_mf_components.all;
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
entity cpu_0_data_master_arbitrator is
port (
-- inputs:
signal clk : IN STD_LOGIC;
signal cpu_0_data_master_address : IN STD_LOGIC_VECTOR (20 DOWNTO 0);
signal cpu_0_data_master_byteenable_sram_avalon_slave_0 : IN STD_LOGIC_VECTOR (1 DOWNTO 0);
signal cpu_0_data_master_granted_cpu_0_jtag_debug_module : IN STD_LOGIC;
signal cpu_0_data_master_granted_jtag_uart_0_avalon_jtag_slave : IN STD_LOGIC;
signal cpu_0_data_master_granted_kanto_ctrl_avalon_slave_0 : IN STD_LOGIC;
signal cpu_0_data_master_granted_ps2_avalon_slave_0 : IN STD_LOGIC;
signal cpu_0_data_master_granted_sdbuf_avalon_slave_0 : IN STD_LOGIC;
signal cpu_0_data_master_granted_sram_avalon_slave_0 : IN STD_LOGIC;
signal cpu_0_data_master_granted_vga_vga : IN STD_LOGIC;
signal cpu_0_data_master_qualified_request_cpu_0_jtag_debug_module : IN STD_LOGIC;
signal cpu_0_data_master_qualified_request_jtag_uart_0_avalon_jtag_slave : IN STD_LOGIC;
signal cpu_0_data_master_qualified_request_kanto_ctrl_avalon_slave_0 : IN STD_LOGIC;
signal cpu_0_data_master_qualified_request_ps2_avalon_slave_0 : IN STD_LOGIC;
signal cpu_0_data_master_qualified_request_sdbuf_avalon_slave_0 : IN STD_LOGIC;
signal cpu_0_data_master_qualified_request_sram_avalon_slave_0 : IN STD_LOGIC;
signal cpu_0_data_master_qualified_request_vga_vga : IN STD_LOGIC;
signal cpu_0_data_master_read : IN STD_LOGIC;
signal cpu_0_data_master_read_data_valid_cpu_0_jtag_debug_module : IN STD_LOGIC;
signal cpu_0_data_master_read_data_valid_jtag_uart_0_avalon_jtag_slave : IN STD_LOGIC;
signal cpu_0_data_master_read_data_valid_kanto_ctrl_avalon_slave_0 : IN STD_LOGIC;
signal cpu_0_data_master_read_data_valid_ps2_avalon_slave_0 : IN STD_LOGIC;
signal cpu_0_data_master_read_data_valid_sdbuf_avalon_slave_0 : IN STD_LOGIC;
signal cpu_0_data_master_read_data_valid_sram_avalon_slave_0 : IN STD_LOGIC;
signal cpu_0_data_master_read_data_valid_vga_vga : IN STD_LOGIC;
signal cpu_0_data_master_requests_cpu_0_jtag_debug_module : IN STD_LOGIC;
signal cpu_0_data_master_requests_jtag_uart_0_avalon_jtag_slave : IN STD_LOGIC;
signal cpu_0_data_master_requests_kanto_ctrl_avalon_slave_0 : IN STD_LOGIC;
signal cpu_0_data_master_requests_ps2_avalon_slave_0 : IN STD_LOGIC;
signal cpu_0_data_master_requests_sdbuf_avalon_slave_0 : IN STD_LOGIC;
signal cpu_0_data_master_requests_sram_avalon_slave_0 : IN STD_LOGIC;
signal cpu_0_data_master_requests_vga_vga : IN STD_LOGIC;
signal cpu_0_data_master_write : IN STD_LOGIC;
signal cpu_0_data_master_writedata : IN STD_LOGIC_VECTOR (31 DOWNTO 0);
signal cpu_0_jtag_debug_module_readdata_from_sa : IN STD_LOGIC_VECTOR (31 DOWNTO 0);
signal d1_cpu_0_jtag_debug_module_end_xfer : IN STD_LOGIC;
signal d1_jtag_uart_0_avalon_jtag_slave_end_xfer : IN STD_LOGIC;
signal d1_kanto_ctrl_avalon_slave_0_end_xfer : IN STD_LOGIC;
signal d1_ps2_avalon_slave_0_end_xfer : IN STD_LOGIC;
signal d1_sdbuf_avalon_slave_0_end_xfer : IN STD_LOGIC;
signal d1_sram_avalon_slave_0_end_xfer : IN STD_LOGIC;
signal d1_vga_vga_end_xfer : IN STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_irq_from_sa : IN STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_readdata_from_sa : IN STD_LOGIC_VECTOR (31 DOWNTO 0);
signal jtag_uart_0_avalon_jtag_slave_waitrequest_from_sa : IN STD_LOGIC;
signal kanto_ctrl_avalon_slave_0_readdata_from_sa : IN STD_LOGIC_VECTOR (31 DOWNTO 0);
signal ps2_avalon_slave_0_readdata_from_sa : IN STD_LOGIC_VECTOR (7 DOWNTO 0);
signal reset_n : IN STD_LOGIC;
signal sdbuf_avalon_slave_0_readdata_from_sa : IN STD_LOGIC_VECTOR (15 DOWNTO 0);
signal sram_avalon_slave_0_readdata_from_sa : IN STD_LOGIC_VECTOR (15 DOWNTO 0);
signal vga_vga_readdata_from_sa : IN STD_LOGIC_VECTOR (31 DOWNTO 0);
-- outputs:
signal cpu_0_data_master_address_to_slave : OUT STD_LOGIC_VECTOR (20 DOWNTO 0);
signal cpu_0_data_master_dbs_address : OUT STD_LOGIC_VECTOR (1 DOWNTO 0);
signal cpu_0_data_master_dbs_write_16 : OUT STD_LOGIC_VECTOR (15 DOWNTO 0);
signal cpu_0_data_master_irq : OUT STD_LOGIC_VECTOR (31 DOWNTO 0);
signal cpu_0_data_master_no_byte_enables_and_last_term : OUT STD_LOGIC;
signal cpu_0_data_master_readdata : OUT STD_LOGIC_VECTOR (31 DOWNTO 0);
signal cpu_0_data_master_waitrequest : OUT STD_LOGIC
);
end entity cpu_0_data_master_arbitrator;
architecture europa of cpu_0_data_master_arbitrator is
signal cpu_0_data_master_dbs_increment : STD_LOGIC_VECTOR (1 DOWNTO 0);
signal cpu_0_data_master_run : STD_LOGIC;
signal dbs_16_reg_segment_0 : STD_LOGIC_VECTOR (15 DOWNTO 0);
signal dbs_8_reg_segment_0 : STD_LOGIC_VECTOR (7 DOWNTO 0);
signal dbs_8_reg_segment_1 : STD_LOGIC_VECTOR (7 DOWNTO 0);
signal dbs_8_reg_segment_2 : STD_LOGIC_VECTOR (7 DOWNTO 0);
signal dbs_count_enable : STD_LOGIC;
signal dbs_counter_overflow : STD_LOGIC;
signal internal_cpu_0_data_master_address_to_slave : STD_LOGIC_VECTOR (20 DOWNTO 0);
signal internal_cpu_0_data_master_dbs_address : STD_LOGIC_VECTOR (1 DOWNTO 0);
signal internal_cpu_0_data_master_no_byte_enables_and_last_term : STD_LOGIC;
signal internal_cpu_0_data_master_waitrequest : STD_LOGIC;
signal last_dbs_term_and_run : STD_LOGIC;
signal next_dbs_address : STD_LOGIC_VECTOR (1 DOWNTO 0);
signal p1_dbs_16_reg_segment_0 : STD_LOGIC_VECTOR (15 DOWNTO 0);
signal p1_dbs_8_reg_segment_0 : STD_LOGIC_VECTOR (7 DOWNTO 0);
signal p1_dbs_8_reg_segment_1 : STD_LOGIC_VECTOR (7 DOWNTO 0);
signal p1_dbs_8_reg_segment_2 : STD_LOGIC_VECTOR (7 DOWNTO 0);
signal p1_registered_cpu_0_data_master_readdata : STD_LOGIC_VECTOR (31 DOWNTO 0);
signal pre_dbs_count_enable : STD_LOGIC;
signal r_0 : STD_LOGIC;
signal r_1 : STD_LOGIC;
signal registered_cpu_0_data_master_readdata : STD_LOGIC_VECTOR (31 DOWNTO 0);
begin
--r_0 master_run cascaded wait assignment, which is an e_assign
r_0 <= Vector_To_Std_Logic((((((((((((((((((((std_logic_vector'("00000000000000000000000000000001") AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(((cpu_0_data_master_qualified_request_cpu_0_jtag_debug_module OR NOT cpu_0_data_master_requests_cpu_0_jtag_debug_module)))))) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(((cpu_0_data_master_granted_cpu_0_jtag_debug_module OR NOT cpu_0_data_master_qualified_request_cpu_0_jtag_debug_module)))))) AND (((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((NOT cpu_0_data_master_qualified_request_cpu_0_jtag_debug_module OR NOT cpu_0_data_master_read)))) OR (((std_logic_vector'("00000000000000000000000000000001") AND std_logic_vector'("00000000000000000000000000000001")) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(cpu_0_data_master_read)))))))) AND (((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((NOT cpu_0_data_master_qualified_request_cpu_0_jtag_debug_module OR NOT cpu_0_data_master_write)))) OR ((std_logic_vector'("00000000000000000000000000000001") AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(cpu_0_data_master_write)))))))) AND std_logic_vector'("00000000000000000000000000000001")) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(((cpu_0_data_master_qualified_request_jtag_uart_0_avalon_jtag_slave OR NOT cpu_0_data_master_requests_jtag_uart_0_avalon_jtag_slave)))))) AND (((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((NOT cpu_0_data_master_qualified_request_jtag_uart_0_avalon_jtag_slave OR NOT ((cpu_0_data_master_read OR cpu_0_data_master_write)))))) OR (((std_logic_vector'("00000000000000000000000000000001") AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(NOT jtag_uart_0_avalon_jtag_slave_waitrequest_from_sa)))) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(((cpu_0_data_master_read OR cpu_0_data_master_write)))))))))) AND (((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((NOT cpu_0_data_master_qualified_request_jtag_uart_0_avalon_jtag_slave OR NOT ((cpu_0_data_master_read OR cpu_0_data_master_write)))))) OR (((std_logic_vector'("00000000000000000000000000000001") AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(NOT jtag_uart_0_avalon_jtag_slave_waitrequest_from_sa)))) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(((cpu_0_data_master_read OR cpu_0_data_master_write)))))))))) AND std_logic_vector'("00000000000000000000000000000001")) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(((cpu_0_data_master_qualified_request_kanto_ctrl_avalon_slave_0 OR NOT cpu_0_data_master_requests_kanto_ctrl_avalon_slave_0)))))) AND (((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((NOT cpu_0_data_master_qualified_request_kanto_ctrl_avalon_slave_0 OR NOT cpu_0_data_master_read)))) OR (((std_logic_vector'("00000000000000000000000000000001") AND std_logic_vector'("00000000000000000000000000000001")) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(cpu_0_data_master_read)))))))) AND (((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((NOT cpu_0_data_master_qualified_request_kanto_ctrl_avalon_slave_0 OR NOT cpu_0_data_master_write)))) OR ((std_logic_vector'("00000000000000000000000000000001") AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(cpu_0_data_master_write)))))))) AND std_logic_vector'("00000000000000000000000000000001")) AND (((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((NOT cpu_0_data_master_qualified_request_ps2_avalon_slave_0 OR NOT cpu_0_data_master_read)))) OR ((((std_logic_vector'("00000000000000000000000000000001") AND std_logic_vector'("00000000000000000000000000000001")) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(((internal_cpu_0_data_master_dbs_address(1) AND internal_cpu_0_data_master_dbs_address(0))))))) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(cpu_0_data_master_read)))))))) AND (((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((NOT cpu_0_data_master_qualified_request_ps2_avalon_slave_0 OR NOT cpu_0_data_master_write)))) OR (((std_logic_vector'("00000000000000000000000000000001") AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(((internal_cpu_0_data_master_dbs_address(1) AND internal_cpu_0_data_master_dbs_address(0))))))) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(cpu_0_data_master_write)))))))) AND std_logic_vector'("00000000000000000000000000000001")) AND (((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((NOT cpu_0_data_master_qualified_request_sdbuf_avalon_slave_0 OR NOT cpu_0_data_master_read)))) OR ((((std_logic_vector'("00000000000000000000000000000001") AND std_logic_vector'("00000000000000000000000000000001")) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((internal_cpu_0_data_master_dbs_address(1)))))) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(cpu_0_data_master_read)))))))) AND (((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((NOT cpu_0_data_master_qualified_request_sdbuf_avalon_slave_0 OR NOT cpu_0_data_master_write)))) OR (((std_logic_vector'("00000000000000000000000000000001") AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((internal_cpu_0_data_master_dbs_address(1)))))) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(cpu_0_data_master_write)))))))) AND std_logic_vector'("00000000000000000000000000000001")));
--cascaded wait assignment, which is an e_assign
cpu_0_data_master_run <= r_0 AND r_1;
--r_1 master_run cascaded wait assignment, which is an e_assign
r_1 <= Vector_To_Std_Logic((((((((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(((((cpu_0_data_master_qualified_request_sram_avalon_slave_0 OR (((cpu_0_data_master_write AND NOT(or_reduce(cpu_0_data_master_byteenable_sram_avalon_slave_0))) AND internal_cpu_0_data_master_dbs_address(1)))) OR NOT cpu_0_data_master_requests_sram_avalon_slave_0)) AND ((cpu_0_data_master_granted_sram_avalon_slave_0 OR NOT cpu_0_data_master_qualified_request_sram_avalon_slave_0)))))) AND (((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((NOT cpu_0_data_master_qualified_request_sram_avalon_slave_0 OR NOT cpu_0_data_master_read)))) OR ((((std_logic_vector'("00000000000000000000000000000001") AND std_logic_vector'("00000000000000000000000000000001")) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((internal_cpu_0_data_master_dbs_address(1)))))) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(cpu_0_data_master_read)))))))) AND (((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((NOT cpu_0_data_master_qualified_request_sram_avalon_slave_0 OR NOT cpu_0_data_master_write)))) OR (((std_logic_vector'("00000000000000000000000000000001") AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((internal_cpu_0_data_master_dbs_address(1)))))) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(cpu_0_data_master_write)))))))) AND std_logic_vector'("00000000000000000000000000000001")) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(((cpu_0_data_master_qualified_request_vga_vga OR NOT cpu_0_data_master_requests_vga_vga)))))) AND (((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((NOT cpu_0_data_master_qualified_request_vga_vga OR NOT cpu_0_data_master_read)))) OR (((std_logic_vector'("00000000000000000000000000000001") AND std_logic_vector'("00000000000000000000000000000001")) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(cpu_0_data_master_read)))))))) AND (((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((NOT cpu_0_data_master_qualified_request_vga_vga OR NOT cpu_0_data_master_write)))) OR ((std_logic_vector'("00000000000000000000000000000001") AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(cpu_0_data_master_write)))))))));
--optimize select-logic by passing only those address bits which matter.
internal_cpu_0_data_master_address_to_slave <= cpu_0_data_master_address(20 DOWNTO 0);
--cpu_0/data_master readdata mux, which is an e_mux
cpu_0_data_master_readdata <= (((((((A_REP(NOT cpu_0_data_master_requests_cpu_0_jtag_debug_module, 32) OR cpu_0_jtag_debug_module_readdata_from_sa)) AND ((A_REP(NOT cpu_0_data_master_requests_jtag_uart_0_avalon_jtag_slave, 32) OR registered_cpu_0_data_master_readdata))) AND ((A_REP(NOT cpu_0_data_master_requests_kanto_ctrl_avalon_slave_0, 32) OR kanto_ctrl_avalon_slave_0_readdata_from_sa))) AND ((A_REP(NOT cpu_0_data_master_requests_ps2_avalon_slave_0, 32) OR Std_Logic_Vector'(ps2_avalon_slave_0_readdata_from_sa(7 DOWNTO 0) & dbs_8_reg_segment_2 & dbs_8_reg_segment_1 & dbs_8_reg_segment_0)))) AND ((A_REP(NOT cpu_0_data_master_requests_sdbuf_avalon_slave_0, 32) OR Std_Logic_Vector'(sdbuf_avalon_slave_0_readdata_from_sa(15 DOWNTO 0) & dbs_16_reg_segment_0)))) AND ((A_REP(NOT cpu_0_data_master_requests_sram_avalon_slave_0, 32) OR Std_Logic_Vector'(sram_avalon_slave_0_readdata_from_sa(15 DOWNTO 0) & dbs_16_reg_segment_0)))) AND ((A_REP(NOT cpu_0_data_master_requests_vga_vga, 32) OR vga_vga_readdata_from_sa));
--actual waitrequest port, which is an e_register
process (clk, reset_n)
begin
if reset_n = '0' then
internal_cpu_0_data_master_waitrequest <= Vector_To_Std_Logic(NOT std_logic_vector'("00000000000000000000000000000000"));
elsif clk'event and clk = '1' then
internal_cpu_0_data_master_waitrequest <= Vector_To_Std_Logic(NOT (A_WE_StdLogicVector((std_logic'((NOT ((cpu_0_data_master_read OR cpu_0_data_master_write)))) = '1'), std_logic_vector'("00000000000000000000000000000000"), (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(((cpu_0_data_master_run AND internal_cpu_0_data_master_waitrequest))))))));
end if;
end process;
--unpredictable registered wait state incoming data, which is an e_register
process (clk, reset_n)
begin
if reset_n = '0' then
registered_cpu_0_data_master_readdata <= std_logic_vector'("00000000000000000000000000000000");
elsif clk'event and clk = '1' then
registered_cpu_0_data_master_readdata <= p1_registered_cpu_0_data_master_readdata;
end if;
end process;
--registered readdata mux, which is an e_mux
p1_registered_cpu_0_data_master_readdata <= A_REP(NOT cpu_0_data_master_requests_jtag_uart_0_avalon_jtag_slave, 32) OR jtag_uart_0_avalon_jtag_slave_readdata_from_sa;
--irq assign, which is an e_assign
cpu_0_data_master_irq <= Std_Logic_Vector'(A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(std_logic'('0')) & A_ToStdLogicVector(jtag_uart_0_avalon_jtag_slave_irq_from_sa));
--input to dbs-8 stored 0, which is an e_mux
p1_dbs_8_reg_segment_0 <= ps2_avalon_slave_0_readdata_from_sa;
--dbs register for dbs-8 segment 0, which is an e_register
process (clk, reset_n)
begin
if reset_n = '0' then
dbs_8_reg_segment_0 <= std_logic_vector'("00000000");
elsif clk'event and clk = '1' then
if std_logic'((dbs_count_enable AND to_std_logic((((std_logic_vector'("000000000000000000000000000000") & ((internal_cpu_0_data_master_dbs_address(1 DOWNTO 0)))) = std_logic_vector'("00000000000000000000000000000000")))))) = '1' then
dbs_8_reg_segment_0 <= p1_dbs_8_reg_segment_0;
end if;
end if;
end process;
--input to dbs-8 stored 1, which is an e_mux
p1_dbs_8_reg_segment_1 <= ps2_avalon_slave_0_readdata_from_sa;
--dbs register for dbs-8 segment 1, which is an e_register
process (clk, reset_n)
begin
if reset_n = '0' then
dbs_8_reg_segment_1 <= std_logic_vector'("00000000");
elsif clk'event and clk = '1' then
if std_logic'((dbs_count_enable AND to_std_logic((((std_logic_vector'("000000000000000000000000000000") & ((internal_cpu_0_data_master_dbs_address(1 DOWNTO 0)))) = std_logic_vector'("00000000000000000000000000000001")))))) = '1' then
dbs_8_reg_segment_1 <= p1_dbs_8_reg_segment_1;
end if;
end if;
end process;
--input to dbs-8 stored 2, which is an e_mux
p1_dbs_8_reg_segment_2 <= ps2_avalon_slave_0_readdata_from_sa;
--dbs register for dbs-8 segment 2, which is an e_register
process (clk, reset_n)
begin
if reset_n = '0' then
dbs_8_reg_segment_2 <= std_logic_vector'("00000000");
elsif clk'event and clk = '1' then
if std_logic'((dbs_count_enable AND to_std_logic((((std_logic_vector'("000000000000000000000000000000") & ((internal_cpu_0_data_master_dbs_address(1 DOWNTO 0)))) = std_logic_vector'("00000000000000000000000000000010")))))) = '1' then
dbs_8_reg_segment_2 <= p1_dbs_8_reg_segment_2;
end if;
end if;
end process;
--dbs count increment, which is an e_mux
cpu_0_data_master_dbs_increment <= A_EXT (A_WE_StdLogicVector((std_logic'((cpu_0_data_master_requests_ps2_avalon_slave_0)) = '1'), std_logic_vector'("00000000000000000000000000000001"), A_WE_StdLogicVector((std_logic'((cpu_0_data_master_requests_sdbuf_avalon_slave_0)) = '1'), std_logic_vector'("00000000000000000000000000000010"), A_WE_StdLogicVector((std_logic'((cpu_0_data_master_requests_sram_avalon_slave_0)) = '1'), std_logic_vector'("00000000000000000000000000000010"), std_logic_vector'("00000000000000000000000000000000")))), 2);
--dbs counter overflow, which is an e_assign
dbs_counter_overflow <= internal_cpu_0_data_master_dbs_address(1) AND NOT((next_dbs_address(1)));
--next master address, which is an e_assign
next_dbs_address <= A_EXT (((std_logic_vector'("0") & (internal_cpu_0_data_master_dbs_address)) + (std_logic_vector'("0") & (cpu_0_data_master_dbs_increment))), 2);
--dbs count enable, which is an e_mux
dbs_count_enable <= ((pre_dbs_count_enable AND (NOT (((cpu_0_data_master_requests_ps2_avalon_slave_0 AND NOT internal_cpu_0_data_master_waitrequest) AND cpu_0_data_master_write)))) AND (NOT (((cpu_0_data_master_requests_sdbuf_avalon_slave_0 AND NOT internal_cpu_0_data_master_waitrequest) AND cpu_0_data_master_write)))) AND (NOT (((cpu_0_data_master_requests_sram_avalon_slave_0 AND NOT internal_cpu_0_data_master_waitrequest) AND cpu_0_data_master_write)));
--dbs counter, which is an e_register
process (clk, reset_n)
begin
if reset_n = '0' then
internal_cpu_0_data_master_dbs_address <= std_logic_vector'("00");
elsif clk'event and clk = '1' then
if std_logic'(dbs_count_enable) = '1' then
internal_cpu_0_data_master_dbs_address <= next_dbs_address;
end if;
end if;
end process;
--pre dbs count enable, which is an e_mux
pre_dbs_count_enable <= Vector_To_Std_Logic((((((((((((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((cpu_0_data_master_granted_ps2_avalon_slave_0 AND cpu_0_data_master_read)))) AND std_logic_vector'("00000000000000000000000000000001")) AND std_logic_vector'("00000000000000000000000000000001")) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(NOT d1_ps2_avalon_slave_0_end_xfer))))) OR ((((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((cpu_0_data_master_granted_ps2_avalon_slave_0 AND cpu_0_data_master_write)))) AND std_logic_vector'("00000000000000000000000000000001")) AND std_logic_vector'("00000000000000000000000000000001")))) OR (((((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((cpu_0_data_master_granted_sdbuf_avalon_slave_0 AND cpu_0_data_master_read)))) AND std_logic_vector'("00000000000000000000000000000001")) AND std_logic_vector'("00000000000000000000000000000001")) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(NOT d1_sdbuf_avalon_slave_0_end_xfer)))))) OR ((((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((cpu_0_data_master_granted_sdbuf_avalon_slave_0 AND cpu_0_data_master_write)))) AND std_logic_vector'("00000000000000000000000000000001")) AND std_logic_vector'("00000000000000000000000000000001")))) OR (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((((((NOT internal_cpu_0_data_master_no_byte_enables_and_last_term) AND cpu_0_data_master_requests_sram_avalon_slave_0) AND cpu_0_data_master_write) AND NOT(or_reduce(cpu_0_data_master_byteenable_sram_avalon_slave_0)))))))) OR (((((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((cpu_0_data_master_granted_sram_avalon_slave_0 AND cpu_0_data_master_read)))) AND std_logic_vector'("00000000000000000000000000000001")) AND std_logic_vector'("00000000000000000000000000000001")) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(NOT d1_sram_avalon_slave_0_end_xfer)))))) OR ((((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((cpu_0_data_master_granted_sram_avalon_slave_0 AND cpu_0_data_master_write)))) AND std_logic_vector'("00000000000000000000000000000001")) AND std_logic_vector'("00000000000000000000000000000001")))));
--input to dbs-16 stored 0, which is an e_mux
p1_dbs_16_reg_segment_0 <= A_WE_StdLogicVector((std_logic'((cpu_0_data_master_requests_sdbuf_avalon_slave_0)) = '1'), sdbuf_avalon_slave_0_readdata_from_sa, sram_avalon_slave_0_readdata_from_sa);
--dbs register for dbs-16 segment 0, which is an e_register
process (clk, reset_n)
begin
if reset_n = '0' then
dbs_16_reg_segment_0 <= std_logic_vector'("0000000000000000");
elsif clk'event and clk = '1' then
if std_logic'((dbs_count_enable AND to_std_logic((((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((internal_cpu_0_data_master_dbs_address(1))))) = std_logic_vector'("00000000000000000000000000000000")))))) = '1' then
dbs_16_reg_segment_0 <= p1_dbs_16_reg_segment_0;
end if;
end if;
end process;
--no_byte_enables_and_last_term, which is an e_register
process (clk, reset_n)
begin
if reset_n = '0' then
internal_cpu_0_data_master_no_byte_enables_and_last_term <= std_logic'('0');
elsif clk'event and clk = '1' then
internal_cpu_0_data_master_no_byte_enables_and_last_term <= last_dbs_term_and_run;
end if;
end process;
--compute the last dbs term, which is an e_mux
last_dbs_term_and_run <= (to_std_logic(((internal_cpu_0_data_master_dbs_address = std_logic_vector'("10")))) AND cpu_0_data_master_write) AND NOT(or_reduce(cpu_0_data_master_byteenable_sram_avalon_slave_0));
--mux write dbs 1, which is an e_mux
cpu_0_data_master_dbs_write_16 <= A_WE_StdLogicVector((std_logic'((internal_cpu_0_data_master_dbs_address(1))) = '1'), cpu_0_data_master_writedata(31 DOWNTO 16), cpu_0_data_master_writedata(15 DOWNTO 0));
--vhdl renameroo for output signals
cpu_0_data_master_address_to_slave <= internal_cpu_0_data_master_address_to_slave;
--vhdl renameroo for output signals
cpu_0_data_master_dbs_address <= internal_cpu_0_data_master_dbs_address;
--vhdl renameroo for output signals
cpu_0_data_master_no_byte_enables_and_last_term <= internal_cpu_0_data_master_no_byte_enables_and_last_term;
--vhdl renameroo for output signals
cpu_0_data_master_waitrequest <= internal_cpu_0_data_master_waitrequest;
end europa;
-- turn off superfluous VHDL processor warnings
-- altera message_level Level1
-- altera message_off 10034 10035 10036 10037 10230 10240 10030
library altera;
use altera.altera_europa_support_lib.all;
library altera_mf;
use altera_mf.altera_mf_components.all;
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
library std;
use std.textio.all;
entity cpu_0_instruction_master_arbitrator is
port (
-- inputs:
signal clk : IN STD_LOGIC;
signal cpu_0_instruction_master_address : IN STD_LOGIC_VECTOR (20 DOWNTO 0);
signal cpu_0_instruction_master_granted_cpu_0_jtag_debug_module : IN STD_LOGIC;
signal cpu_0_instruction_master_granted_sram_avalon_slave_0 : IN STD_LOGIC;
signal cpu_0_instruction_master_qualified_request_cpu_0_jtag_debug_module : IN STD_LOGIC;
signal cpu_0_instruction_master_qualified_request_sram_avalon_slave_0 : IN STD_LOGIC;
signal cpu_0_instruction_master_read : IN STD_LOGIC;
signal cpu_0_instruction_master_read_data_valid_cpu_0_jtag_debug_module : IN STD_LOGIC;
signal cpu_0_instruction_master_read_data_valid_sram_avalon_slave_0 : IN STD_LOGIC;
signal cpu_0_instruction_master_requests_cpu_0_jtag_debug_module : IN STD_LOGIC;
signal cpu_0_instruction_master_requests_sram_avalon_slave_0 : IN STD_LOGIC;
signal cpu_0_jtag_debug_module_readdata_from_sa : IN STD_LOGIC_VECTOR (31 DOWNTO 0);
signal d1_cpu_0_jtag_debug_module_end_xfer : IN STD_LOGIC;
signal d1_sram_avalon_slave_0_end_xfer : IN STD_LOGIC;
signal reset_n : IN STD_LOGIC;
signal sram_avalon_slave_0_readdata_from_sa : IN STD_LOGIC_VECTOR (15 DOWNTO 0);
-- outputs:
signal cpu_0_instruction_master_address_to_slave : OUT STD_LOGIC_VECTOR (20 DOWNTO 0);
signal cpu_0_instruction_master_dbs_address : OUT STD_LOGIC_VECTOR (1 DOWNTO 0);
signal cpu_0_instruction_master_readdata : OUT STD_LOGIC_VECTOR (31 DOWNTO 0);
signal cpu_0_instruction_master_waitrequest : OUT STD_LOGIC
);
end entity cpu_0_instruction_master_arbitrator;
architecture europa of cpu_0_instruction_master_arbitrator is
signal active_and_waiting_last_time : STD_LOGIC;
signal cpu_0_instruction_master_address_last_time : STD_LOGIC_VECTOR (20 DOWNTO 0);
signal cpu_0_instruction_master_dbs_increment : STD_LOGIC_VECTOR (1 DOWNTO 0);
signal cpu_0_instruction_master_read_last_time : STD_LOGIC;
signal cpu_0_instruction_master_run : STD_LOGIC;
signal dbs_16_reg_segment_0 : STD_LOGIC_VECTOR (15 DOWNTO 0);
signal dbs_count_enable : STD_LOGIC;
signal dbs_counter_overflow : STD_LOGIC;
signal internal_cpu_0_instruction_master_address_to_slave : STD_LOGIC_VECTOR (20 DOWNTO 0);
signal internal_cpu_0_instruction_master_dbs_address : STD_LOGIC_VECTOR (1 DOWNTO 0);
signal internal_cpu_0_instruction_master_waitrequest : STD_LOGIC;
signal next_dbs_address : STD_LOGIC_VECTOR (1 DOWNTO 0);
signal p1_dbs_16_reg_segment_0 : STD_LOGIC_VECTOR (15 DOWNTO 0);
signal pre_dbs_count_enable : STD_LOGIC;
signal r_0 : STD_LOGIC;
signal r_1 : STD_LOGIC;
begin
--r_0 master_run cascaded wait assignment, which is an e_assign
r_0 <= Vector_To_Std_Logic((((std_logic_vector'("00000000000000000000000000000001") AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(((cpu_0_instruction_master_qualified_request_cpu_0_jtag_debug_module OR NOT cpu_0_instruction_master_requests_cpu_0_jtag_debug_module)))))) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(((cpu_0_instruction_master_granted_cpu_0_jtag_debug_module OR NOT cpu_0_instruction_master_qualified_request_cpu_0_jtag_debug_module)))))) AND (((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((NOT cpu_0_instruction_master_qualified_request_cpu_0_jtag_debug_module OR NOT cpu_0_instruction_master_read)))) OR (((std_logic_vector'("00000000000000000000000000000001") AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(NOT d1_cpu_0_jtag_debug_module_end_xfer)))) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(cpu_0_instruction_master_read)))))))));
--cascaded wait assignment, which is an e_assign
cpu_0_instruction_master_run <= r_0 AND r_1;
--r_1 master_run cascaded wait assignment, which is an e_assign
r_1 <= Vector_To_Std_Logic((((std_logic_vector'("00000000000000000000000000000001") AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(((cpu_0_instruction_master_qualified_request_sram_avalon_slave_0 OR NOT cpu_0_instruction_master_requests_sram_avalon_slave_0)))))) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(((cpu_0_instruction_master_granted_sram_avalon_slave_0 OR NOT cpu_0_instruction_master_qualified_request_sram_avalon_slave_0)))))) AND (((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((NOT cpu_0_instruction_master_qualified_request_sram_avalon_slave_0 OR NOT cpu_0_instruction_master_read)))) OR ((((std_logic_vector'("00000000000000000000000000000001") AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(NOT d1_sram_avalon_slave_0_end_xfer)))) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((internal_cpu_0_instruction_master_dbs_address(1)))))) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(cpu_0_instruction_master_read)))))))));
--optimize select-logic by passing only those address bits which matter.
internal_cpu_0_instruction_master_address_to_slave <= cpu_0_instruction_master_address(20 DOWNTO 0);
--cpu_0/instruction_master readdata mux, which is an e_mux
cpu_0_instruction_master_readdata <= ((A_REP(NOT cpu_0_instruction_master_requests_cpu_0_jtag_debug_module, 32) OR cpu_0_jtag_debug_module_readdata_from_sa)) AND ((A_REP(NOT cpu_0_instruction_master_requests_sram_avalon_slave_0, 32) OR Std_Logic_Vector'(sram_avalon_slave_0_readdata_from_sa(15 DOWNTO 0) & dbs_16_reg_segment_0)));
--actual waitrequest port, which is an e_assign
internal_cpu_0_instruction_master_waitrequest <= NOT cpu_0_instruction_master_run;
--input to dbs-16 stored 0, which is an e_mux
p1_dbs_16_reg_segment_0 <= sram_avalon_slave_0_readdata_from_sa;
--dbs register for dbs-16 segment 0, which is an e_register
process (clk, reset_n)
begin
if reset_n = '0' then
dbs_16_reg_segment_0 <= std_logic_vector'("0000000000000000");
elsif clk'event and clk = '1' then
if std_logic'((dbs_count_enable AND to_std_logic((((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((internal_cpu_0_instruction_master_dbs_address(1))))) = std_logic_vector'("00000000000000000000000000000000")))))) = '1' then
dbs_16_reg_segment_0 <= p1_dbs_16_reg_segment_0;
end if;
end if;
end process;
--dbs count increment, which is an e_mux
cpu_0_instruction_master_dbs_increment <= A_EXT (A_WE_StdLogicVector((std_logic'((cpu_0_instruction_master_requests_sram_avalon_slave_0)) = '1'), std_logic_vector'("00000000000000000000000000000010"), std_logic_vector'("00000000000000000000000000000000")), 2);
--dbs counter overflow, which is an e_assign
dbs_counter_overflow <= internal_cpu_0_instruction_master_dbs_address(1) AND NOT((next_dbs_address(1)));
--next master address, which is an e_assign
next_dbs_address <= A_EXT (((std_logic_vector'("0") & (internal_cpu_0_instruction_master_dbs_address)) + (std_logic_vector'("0") & (cpu_0_instruction_master_dbs_increment))), 2);
--dbs count enable, which is an e_mux
dbs_count_enable <= pre_dbs_count_enable;
--dbs counter, which is an e_register
process (clk, reset_n)
begin
if reset_n = '0' then
internal_cpu_0_instruction_master_dbs_address <= std_logic_vector'("00");
elsif clk'event and clk = '1' then
if std_logic'(dbs_count_enable) = '1' then
internal_cpu_0_instruction_master_dbs_address <= next_dbs_address;
end if;
end if;
end process;
--pre dbs count enable, which is an e_mux
pre_dbs_count_enable <= Vector_To_Std_Logic(((((std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR((cpu_0_instruction_master_granted_sram_avalon_slave_0 AND cpu_0_instruction_master_read)))) AND std_logic_vector'("00000000000000000000000000000001")) AND std_logic_vector'("00000000000000000000000000000001")) AND (std_logic_vector'("0000000000000000000000000000000") & (A_TOSTDLOGICVECTOR(NOT d1_sram_avalon_slave_0_end_xfer)))));
--vhdl renameroo for output signals
cpu_0_instruction_master_address_to_slave <= internal_cpu_0_instruction_master_address_to_slave;
--vhdl renameroo for output signals
cpu_0_instruction_master_dbs_address <= internal_cpu_0_instruction_master_dbs_address;
--vhdl renameroo for output signals
cpu_0_instruction_master_waitrequest <= internal_cpu_0_instruction_master_waitrequest;
--synthesis translate_off
--cpu_0_instruction_master_address check against wait, which is an e_register
process (clk, reset_n)
begin
if reset_n = '0' then
cpu_0_instruction_master_address_last_time <= std_logic_vector'("000000000000000000000");
elsif clk'event and clk = '1' then
cpu_0_instruction_master_address_last_time <= cpu_0_instruction_master_address;
end if;
end process;
--cpu_0/instruction_master waited last time, which is an e_register
process (clk, reset_n)
begin
if reset_n = '0' then
active_and_waiting_last_time <= std_logic'('0');
elsif clk'event and clk = '1' then
active_and_waiting_last_time <= internal_cpu_0_instruction_master_waitrequest AND (cpu_0_instruction_master_read);
end if;
end process;
--cpu_0_instruction_master_address matches last port_name, which is an e_process
process (clk)
VARIABLE write_line2 : line;
begin
if clk'event and clk = '1' then
if std_logic'((active_and_waiting_last_time AND to_std_logic(((cpu_0_instruction_master_address /= cpu_0_instruction_master_address_last_time))))) = '1' then
write(write_line2, now);
write(write_line2, string'(": "));
write(write_line2, string'("cpu_0_instruction_master_address did not heed wait!!!"));
write(output, write_line2.all);
deallocate (write_line2);
assert false report "VHDL STOP" severity failure;
end if;
end if;
end process;
--cpu_0_instruction_master_read check against wait, which is an e_register
process (clk, reset_n)
begin
if reset_n = '0' then
cpu_0_instruction_master_read_last_time <= std_logic'('0');
elsif clk'event and clk = '1' then
cpu_0_instruction_master_read_last_time <= cpu_0_instruction_master_read;
end if;
end process;
--cpu_0_instruction_master_read matches last port_name, which is an e_process
process (clk)
VARIABLE write_line3 : line;
begin
if clk'event and clk = '1' then
if std_logic'((active_and_waiting_last_time AND to_std_logic(((std_logic'(cpu_0_instruction_master_read) /= std_logic'(cpu_0_instruction_master_read_last_time)))))) = '1' then
write(write_line3, now);
write(write_line3, string'(": "));
write(write_line3, string'("cpu_0_instruction_master_read did not heed wait!!!"));
write(output, write_line3.all);
deallocate (write_line3);
assert false report "VHDL STOP" severity failure;
end if;
end if;
end process;
--synthesis translate_on
end europa;
-- turn off superfluous VHDL processor warnings
-- altera message_level Level1
-- altera message_off 10034 10035 10036 10037 10230 10240 10030
library altera;
use altera.altera_europa_support_lib.all;
library altera_mf;
use altera_mf.altera_mf_components.all;
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
entity jtag_uart_0_avalon_jtag_slave_arbitrator is
port (
-- inputs:
signal clk : IN STD_LOGIC;
signal cpu_0_data_master_address_to_slave : IN STD_LOGIC_VECTOR (20 DOWNTO 0);
signal cpu_0_data_master_read : IN STD_LOGIC;
signal cpu_0_data_master_waitrequest : IN STD_LOGIC;
signal cpu_0_data_master_write : IN STD_LOGIC;
signal cpu_0_data_master_writedata : IN STD_LOGIC_VECTOR (31 DOWNTO 0);
signal jtag_uart_0_avalon_jtag_slave_dataavailable : IN STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_irq : IN STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_readdata : IN STD_LOGIC_VECTOR (31 DOWNTO 0);
signal jtag_uart_0_avalon_jtag_slave_readyfordata : IN STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_waitrequest : IN STD_LOGIC;
signal reset_n : IN STD_LOGIC;
-- outputs:
signal cpu_0_data_master_granted_jtag_uart_0_avalon_jtag_slave : OUT STD_LOGIC;
signal cpu_0_data_master_qualified_request_jtag_uart_0_avalon_jtag_slave : OUT STD_LOGIC;
signal cpu_0_data_master_read_data_valid_jtag_uart_0_avalon_jtag_slave : OUT STD_LOGIC;
signal cpu_0_data_master_requests_jtag_uart_0_avalon_jtag_slave : OUT STD_LOGIC;
signal d1_jtag_uart_0_avalon_jtag_slave_end_xfer : OUT STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_address : OUT STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_chipselect : OUT STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_dataavailable_from_sa : OUT STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_irq_from_sa : OUT STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_read_n : OUT STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_readdata_from_sa : OUT STD_LOGIC_VECTOR (31 DOWNTO 0);
signal jtag_uart_0_avalon_jtag_slave_readyfordata_from_sa : OUT STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_reset_n : OUT STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_waitrequest_from_sa : OUT STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_write_n : OUT STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_writedata : OUT STD_LOGIC_VECTOR (31 DOWNTO 0)
);
end entity jtag_uart_0_avalon_jtag_slave_arbitrator;
architecture europa of jtag_uart_0_avalon_jtag_slave_arbitrator is
signal cpu_0_data_master_arbiterlock : STD_LOGIC;
signal cpu_0_data_master_arbiterlock2 : STD_LOGIC;
signal cpu_0_data_master_continuerequest : STD_LOGIC;
signal cpu_0_data_master_saved_grant_jtag_uart_0_avalon_jtag_slave : STD_LOGIC;
signal d1_reasons_to_wait : STD_LOGIC;
signal enable_nonzero_assertions : STD_LOGIC;
signal end_xfer_arb_share_counter_term_jtag_uart_0_avalon_jtag_slave : STD_LOGIC;
signal in_a_read_cycle : STD_LOGIC;
signal in_a_write_cycle : STD_LOGIC;
signal internal_cpu_0_data_master_granted_jtag_uart_0_avalon_jtag_slave : STD_LOGIC;
signal internal_cpu_0_data_master_qualified_request_jtag_uart_0_avalon_jtag_slave : STD_LOGIC;
signal internal_cpu_0_data_master_requests_jtag_uart_0_avalon_jtag_slave : STD_LOGIC;
signal internal_jtag_uart_0_avalon_jtag_slave_waitrequest_from_sa : STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_allgrants : STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_allow_new_arb_cycle : STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_any_bursting_master_saved_grant : STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_any_continuerequest : STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_arb_counter_enable : STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_arb_share_counter : STD_LOGIC_VECTOR (2 DOWNTO 0);
signal jtag_uart_0_avalon_jtag_slave_arb_share_counter_next_value : STD_LOGIC_VECTOR (2 DOWNTO 0);
signal jtag_uart_0_avalon_jtag_slave_arb_share_set_values : STD_LOGIC_VECTOR (2 DOWNTO 0);
signal jtag_uart_0_avalon_jtag_slave_beginbursttransfer_internal : STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_begins_xfer : STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_end_xfer : STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_firsttransfer : STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_grant_vector : STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_in_a_read_cycle : STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_in_a_write_cycle : STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_master_qreq_vector : STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_non_bursting_master_requests : STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_reg_firsttransfer : STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_slavearbiterlockenable : STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_slavearbiterlockenable2 : STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_unreg_firsttransfer : STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_waits_for_read : STD_LOGIC;
signal jtag_uart_0_avalon_jtag_slave_waits_for_write : STD_LOGIC;
signal shifted_address_to_jtag_uart_0_avalon_jtag_slave_from_cpu_0_data_master : STD_LOGIC_VECTOR (20 DOWNTO 0);
signal wait_for_jtag_uart_0_avalon_jtag_slave_counter : STD_LOGIC;
begin
process (clk, reset_n)
begin
if reset_n = '0' then
d1_reasons_to_wait <= std_logic'('0');
elsif clk'event and clk = '1' then
d1_reasons_to_wait <= NOT jtag_uart_0_avalon_jtag_slave_end_xfer;
end if;
end process;
jtag_uart_0_avalon_jtag_slave_begins_xfer <= NOT d1_reasons_to_wait AND (internal_cpu_0_data_master_qualified_request_jtag_uart_0_avalon_jtag_slave);
--assign jtag_uart_0_avalon_jtag_slave_readdata_from_sa = jtag_uart_0_avalon_jtag_slave_readdata so that symbol knows where to group signals which may go to master only, which is an e_assign
jtag_uart_0_avalon_jtag_slave_readdata_from_sa <= jtag_uart_0_avalon_jtag_slave_readdata;
internal_cpu_0_data_master_requests_jtag_uart_0_avalon_jtag_slave <= to_std_logic(((Std_Logic_Vector'(cpu_0_data_master_address_to_slave(20 DOWNTO 3) & std_logic_vector'("000")) = std_logic_vector'("100000001001000100000")))) AND ((cpu_0_data_master_read OR cpu_0_data_master_write));
--assign jtag_uart_0_avalon_jtag_slave_dataavailable_from_sa = jtag_uart_0_avalon_jtag_slave_dataavailable so that symbol knows where to group signals which may go to master only, which is an e_assign
jtag_uart_0_avalon_jtag_slave_dataavailable_from_sa <= jtag_uart_0_avalon_jtag_slave_dataavailable;
--assign jtag_uart_0_avalon_jtag_slave_readyfordata_from_sa = jtag_uart_0_avalon_jtag_slave_readyfordata so that symbol knows where to group signals which may go to master only, which is an e_assign
jtag_uart_0_avalon_jtag_slave_readyfordata_from_sa <= jtag_uart_0_avalon_jtag_slave_readyfordata;
--assign jtag_uart_0_avalon_jtag_slave_waitrequest_from_sa = jtag_uart_0_avalon_jtag_slave_waitrequest so that symbol knows where to group signals which may go to master only, which is an e_assign
internal_jtag_uart_0_avalon_jtag_slave_waitrequest_from_sa <= jtag_uart_0_avalon_jtag_slave_waitrequest;
--jtag_uart_0_avalon_jtag_slave_arb_share_counter set values, which is an e_mux
jtag_uart_0_avalon_jtag_slave_arb_share_set_values <= std_logic_vector'("001");
--jtag_uart_0_avalon_jtag_slave_non_bursting_master_requests mux, which is an e_mux
jtag_uart_0_avalon_jtag_slave_non_bursting_master_requests <= internal_cpu_0_data_master_requests_jtag_uart_0_avalon_jtag_slave;
--jtag_uart_0_avalon_jtag_slave_any_bursting_master_saved_grant mux, which is an e_mux
jtag_uart_0_avalon_jtag_slave_any_bursting_master_saved_grant <= std_logic'('0');
--jtag_uart_0_avalon_jtag_slave_arb_share_counter_next_value assignment, which is an e_assign
jtag_uart_0_avalon_jtag_slave_arb_share_counter_next_value <= A_EXT (A_WE_StdLogicVector((std_logic'(jtag_uart_0_avalon_jtag_slave_firsttransfer) = '1'), (((std_logic_vector'("000000000000000000000000000000") & (jtag_uart_0_avalon_jtag_slave_arb_share_set_values)) - std_logic_vector'("000000000000000000000000000000001"))), A_WE_StdLogicVector((std_logic'(or_reduce(jtag_uart_0_avalon_jtag_slave_arb_share_counter)) = '1'), (((std_logic_vector'("000000000000000000000000000000") & (jtag_uart_0_avalon_jtag_slave_arb_share_counter)) - std_logic_vector'("000000000000000000000000000000001"))), std_logic_vector'("000000000000000000000000000000000"))), 3);
--jtag_uart_0_avalon_jtag_slave_allgrants all slave grants, which is an e_mux
jtag_uart_0_avalon_jtag_slave_allgrants <= jtag_uart_0_avalon_jtag_slave_grant_vector;
--jtag_uart_0_avalon_jtag_slave_end_xfer assignment, which is an e_assign
jtag_uart_0_avalon_jtag_slave_end_xfer <= NOT ((jtag_uart_0_avalon_jtag_slave_waits_for_read OR jtag_uart_0_avalon_jtag_slave_waits_for_write));
--end_xfer_arb_share_counter_term_jtag_uart_0_avalon_jtag_slave arb share counter enable term, which is an e_assign
end_xfer_arb_share_counter_term_jtag_uart_0_avalon_jtag_slave <= jtag_uart_0_avalon_jtag_slave_end_xfer AND (((NOT jtag_uart_0_avalon_jtag_slave_any_bursting_master_saved_grant OR in_a_read_cycle) OR in_a_write_cycle));
--jtag_uart_0_avalon_jtag_slave_arb_share_counter arbitration counter enable, which is an e_assign
jtag_uart_0_avalon_jtag_slave_arb_counter_enable <= ((end_xfer_arb_share_counter_term_jtag_uart_0_avalon_jtag_slave AND jtag_uart_0_avalon_jtag_slave_allgrants)) OR ((end_xfer_arb_share_counter_term_jtag_uart_0_avalon_jtag_slave AND NOT jtag_uart_0_avalon_jtag_slave_non_bursting_master_requests));
--jtag_uart_0_avalon_jtag_slave_arb_share_counter counter, which is an e_register
process (clk, reset_n)
begin
if reset_n = '0' then
jtag_uart_0_avalon_jtag_slave_arb_share_counter <= std_logic_vector'("000");
elsif clk'event and clk = '1' then
if std_logic'(jtag_uart_0_avalon_jtag_slave_arb_counter_enable) = '1' then
jtag_uart_0_avalon_jtag_slave_arb_share_counter <= jtag_uart_0_avalon_jtag_slave_arb_share_counter_next_value;
end if;
end if;