forked from pulp-platform/pulp_soc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpulp_interfaces.sv
1399 lines (1122 loc) · 39 KB
/
pulp_interfaces.sv
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
// Copyright 2018 ETH Zurich and University of Bologna.
// Copyright and related rights are licensed under the Solderpad Hardware
// License, Version 0.51 (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the License at
// http://solderpad.org/licenses/SHL-0.51. Unless required by applicable law
// or agreed to in writing, software, hardware and materials distributed under
// this License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
// CONDITIONS OF ANY KIND, either express or implied. See the License for the
// specific language governing permissions and limitations under the License.
`include "pulp_soc_defines.sv"
//**********************************************************
//**************** XBAR TCDM BUS 64 ************************
//**********************************************************
interface XBAR_TCDM_BUS_64;
// REQUEST CHANNEL
//***************************************
logic req;
logic [31:0] add;
logic wen;
logic [63:0] wdata;
logic [7:0] be;
logic gnt;
// RESPONSE CHANNEL
logic r_opc;
logic [63:0] r_rdata;
logic r_valid;
// Master Side
//***************************************
modport Master
(
output req, output add, output wen, output wdata, output be,
input gnt, input r_rdata, input r_opc, input r_valid
);
// Slave Side
//***************************************
modport Slave
(
input req, input add, input wen, input wdata, input be,
output gnt, output r_rdata, output r_opc, output r_valid
);
endinterface // XBAR_TCDM_BUS_64
//**********************************************************
//**************** XBAR TCDM BUS ***************************
//**********************************************************
interface XBAR_TCDM_BUS;
// REQUEST CHANNEL
//***************************************
logic req;
logic [31:0] add;
logic wen;
logic [31:0] wdata;
logic [3:0] be;
logic gnt;
// RESPONSE CHANNEL
logic r_opc;
logic [31:0] r_rdata;
logic r_valid;
// Master Side
//***************************************
modport Master
(
output req, output add, output wen, output wdata, output be,
input gnt, input r_rdata, input r_opc, input r_valid
);
// Slave Side
//***************************************
modport Slave
(
input req, input add, input wen, input wdata, input be,
output gnt, output r_rdata, output r_opc, output r_valid
);
endinterface // XBAR_TCDM_BUS
//**********************************************************
//**************** XBAR PERIPHERAL BUS *********************
//**********************************************************
interface XBAR_PERIPH_BUS
#(
parameter ID_WIDTH = `NB_CORES+1
);
// REQUEST CHANNEL
logic req;
logic [31:0] add;
logic wen;
logic [31:0] wdata;
logic [3:0] be;
logic gnt;
logic [ID_WIDTH-1:0] id;
// RESPONSE CHANNEL
logic r_valid;
logic r_opc;
logic [ID_WIDTH-1:0] r_id;
logic [31:0] r_rdata;
// Master Side
//***************************************
modport Master
(
output req, output add, output wen, output wdata, output be, output id,
input gnt, input r_rdata, input r_opc, input r_id, input r_valid
);
// Slave Side
//***************************************
modport Slave
(
input req, input add, input wen, input wdata, input be, input id,
output gnt, output r_rdata, output r_opc, output r_id, output r_valid
);
endinterface
//**********************************************************
//**************** MESSAGE BUS -- TODO *********************
//**********************************************************
interface MESSAGE_BUS
#(
parameter ID_WIDTH = `NB_CORES+1
);
// REQUEST CHANNEL
logic req;
logic [31:0] add;
logic wen;
logic [31:0] wdata;
logic [3:0] be;
logic gnt;
logic [ID_WIDTH-1:0] id;
// RESPONSE CHANNEL
logic r_valid;
logic r_opc;
logic [ID_WIDTH-1:0] r_id;
logic [31:0] r_rdata;
// Master Side
//***************************************
modport Master
(
output req, output add, output wen, output wdata, output be, output id,
input gnt, input r_rdata, input r_opc, input r_id, input r_valid
);
// Slave Side
//***************************************
modport Slave
(
input req, input add, input wen, input wdata, input be, input id,
output gnt, output r_rdata, output r_opc, output r_id, output r_valid
);
endinterface
//**********************************************************
//******************** XBAR DEMUX BUS **********************
//**********************************************************
interface XBAR_DEMUX_BUS;
// REQUEST CHANNEL
logic barrier;
logic busy;
logic exec_cancel;
logic exec_stall;
logic req;
logic [31:0] add;
logic we;
logic [31:0] wdata;
logic [3:0] be;
logic gnt;
// RESPONSE CHANNEL
logic r_gnt;
logic r_valid;
logic [31:0] r_rdata;
// Master Side
//***************************************
modport Master
(
output barrier, input busy, output exec_cancel, output exec_stall,
output req, output add, output we, output wdata, output be, input gnt,
output r_gnt, input r_rdata, input r_valid
);
// Slave Side
//***************************************
modport Slave
(
input barrier, output busy, input exec_cancel, input exec_stall,
input req, input add, input we, input wdata, input be, output gnt,
input r_gnt, output r_rdata, output r_valid
);
endinterface // XBAR_DEMUX_BUS
//********************************************************
//**************** TCDM BANK MEM BUS *********************
//********************************************************
interface TCDM_BANK_MEM_BUS;
logic [31:0] wdata;
logic [31:0] add;
logic req;
logic wen;
logic [3:0] be;
logic [31:0] rdata;
modport Master
(
output wdata, output add, output req,
output wen, output be, input rdata
);
modport Slave
(
input wdata, input add, input req,
input wen, input be, output rdata
);
endinterface
//********************************************************
//**************** UNICAD MEMORY BUS *********************
//********************************************************
interface UNICAD_MEM_BUS_64;
logic [63:0] wdata;
logic [31:0] add;
logic csn;
logic wen;
logic [7:0] be;
logic [63:0] rdata;
modport Master
(
output wdata, output add, output csn,
output wen, output be, input rdata
);
modport Slave
(
input wdata, input add, input csn,
input wen, input be, output rdata
);
endinterface
//**********************************************************
//**************** UNICAD_MEM_BUS_32************************
//**********************************************************
interface UNICAD_MEM_BUS_32;
logic [31:0] wdata;
logic [31:0] add;
logic csn;
logic wen;
logic [3:0] be;
logic [31:0] rdata;
modport Master
(
output wdata, output add, output csn,
output wen, output be, input rdata
);
modport Slave
(
input wdata, input add, input csn,
input wen, input be, output rdata
);
endinterface
//********************************************************
//******************** TCDM BUS **************************
//********************************************************
interface TCDM_BUS;
logic [63:0] data;
logic [8:0] addr;
logic [3:0] csn;
logic [3:0] wen;
logic [63:0] wmn;
logic [3:0][63:0] qdata;
modport Master
(
output data, output addr, output csn,
output wen, output wmn, input qdata
);
modport Slave
(
input data, input addr, input csn,
input wen, input wmn, output qdata
);
endinterface
//********************************************************
//***************** BBMUX CONFIG BUS *********************
//********************************************************
interface BBMUX_CONFIG_BUS;
// REQUEST CHANNEL
//***************************************
logic [3:0][1:0] bbmux_tcdm;
logic [3:0][1:0] bbmux_core;
logic [1:0] bbmux_scm;
logic [1:0] bbmux_int;
logic bbmux_sel;
// RESPONSE CHANNEL
//***************************************
// Master Side
//***************************************
modport Master
(
output bbmux_tcdm,
output bbmux_core,
output bbmux_scm,
output bbmux_int,
output bbmux_sel
);
// Slave Side
//***************************************
modport Slave
(
input bbmux_tcdm,
input bbmux_core,
input bbmux_scm,
input bbmux_int,
input bbmux_sel
);
endinterface // BBMUX_CONFIG_BUS
interface AXI_BUS2
#(
parameter AXI_ADDR_WIDTH = 32,
parameter AXI_DATA_WIDTH = 64,
parameter AXI_ID_WIDTH = 10,
parameter AXI_USER_WIDTH = 6
);
localparam AXI_STRB_WIDTH = `EVAL_BE_WIDTH(AXI_DATA_WIDTH);
logic [AXI_ADDR_WIDTH-1:0] aw_addr;
logic [2:0] aw_prot;
logic [3:0] aw_region;
logic [7:0] aw_len;
logic [2:0] aw_size;
logic [1:0] aw_burst;
logic aw_lock;
logic [3:0] aw_cache;
logic [3:0] aw_qos;
logic [AXI_ID_WIDTH-1:0] aw_id;
logic [AXI_USER_WIDTH-1:0] aw_user;
logic aw_ready;
logic aw_valid;
logic [AXI_ADDR_WIDTH-1:0] ar_addr;
logic [2:0] ar_prot;
logic [3:0] ar_region;
logic [7:0] ar_len;
logic [2:0] ar_size;
logic [1:0] ar_burst;
logic ar_lock;
logic [3:0] ar_cache;
logic [3:0] ar_qos;
logic [AXI_ID_WIDTH-1:0] ar_id;
logic [AXI_USER_WIDTH-1:0] ar_user;
logic ar_ready;
logic ar_valid;
logic w_valid;
logic [AXI_DATA_WIDTH-1:0] w_data;
logic [AXI_STRB_WIDTH-1:0] w_strb;
logic [AXI_USER_WIDTH-1:0] w_user;
logic w_last;
logic w_ready;
logic [AXI_DATA_WIDTH-1:0] r_data;
logic [1:0] r_resp;
logic r_last;
logic [AXI_ID_WIDTH-1:0] r_id;
logic [AXI_USER_WIDTH-1:0] r_user;
logic r_ready;
logic r_valid;
logic [1:0] b_resp;
logic [AXI_ID_WIDTH-1:0] b_id;
logic [AXI_USER_WIDTH-1:0] b_user;
logic b_ready;
logic b_valid;
// Master Side
//***************************************
modport Master
(
output aw_valid, output aw_addr, output aw_prot, output aw_region,
output aw_len, output aw_size, output aw_burst, output aw_lock,
output aw_cache, output aw_qos, output aw_id, output aw_user,
input aw_ready,
output ar_valid, output ar_addr, output ar_prot, output ar_region,
output ar_len, output ar_size, output ar_burst, output ar_lock,
output ar_cache, output ar_qos, output ar_id, output ar_user,
input ar_ready,
output w_valid, output w_data, output w_strb, output w_user, output w_last,
input w_ready,
input r_valid, input r_data, input r_resp, input r_last, input r_id, input r_user,
output r_ready,
input b_valid, input b_resp, input b_id, input b_user,
output b_ready
);
// Master Side
//***************************************
modport Slave
(
input aw_valid, input aw_addr, input aw_prot, input aw_region,
input aw_len, input aw_size, input aw_burst, input aw_lock,
input aw_cache, input aw_qos, input aw_id, input aw_user,
output aw_ready,
input ar_valid, input ar_addr, input ar_prot, input ar_region,
input ar_len, input ar_size, input ar_burst, input ar_lock,
input ar_cache, input ar_qos, input ar_id, input ar_user,
output ar_ready,
input w_valid, input w_data, input w_strb, input w_user, input w_last,
output w_ready,
output r_valid, output r_data, output r_resp, output r_last, output r_id, output r_user,
input r_ready,
output b_valid, output b_resp, output b_id, output b_user,
input b_ready
);
endinterface
interface AXI_BUS_ASYNC2
#(
parameter AXI_ADDR_WIDTH = 32,
parameter AXI_DATA_WIDTH = 64,
parameter AXI_ID_WIDTH = 10,
parameter AXI_USER_WIDTH = 6,
parameter BUFFER_WIDTH = 8
);
localparam AXI_STRB_WIDTH = `EVAL_BE_WIDTH(AXI_DATA_WIDTH);
logic [AXI_ADDR_WIDTH-1:0] aw_addr;
logic [2:0] aw_prot;
logic [3:0] aw_region;
logic [7:0] aw_len;
logic [2:0] aw_size;
logic [1:0] aw_burst;
logic aw_lock;
logic [3:0] aw_cache;
logic [3:0] aw_qos;
logic [AXI_ID_WIDTH-1:0] aw_id;
logic [AXI_USER_WIDTH-1:0] aw_user;
logic [BUFFER_WIDTH-1:0] aw_writetoken;
logic [BUFFER_WIDTH-1:0] aw_readpointer;
logic [AXI_ADDR_WIDTH-1:0] ar_addr;
logic [2:0] ar_prot;
logic [3:0] ar_region;
logic [7:0] ar_len;
logic [2:0] ar_size;
logic [1:0] ar_burst;
logic ar_lock;
logic [3:0] ar_cache;
logic [3:0] ar_qos;
logic [AXI_ID_WIDTH-1:0] ar_id;
logic [AXI_USER_WIDTH-1:0] ar_user;
logic [BUFFER_WIDTH-1:0] ar_writetoken;
logic [BUFFER_WIDTH-1:0] ar_readpointer;
logic [AXI_DATA_WIDTH-1:0] w_data;
logic [AXI_STRB_WIDTH-1:0] w_strb;
logic [AXI_USER_WIDTH-1:0] w_user;
logic w_last;
logic [BUFFER_WIDTH-1:0] w_writetoken;
logic [BUFFER_WIDTH-1:0] w_readpointer;
logic [AXI_DATA_WIDTH-1:0] r_data;
logic [1:0] r_resp;
logic r_last;
logic [AXI_ID_WIDTH-1:0] r_id;
logic [AXI_USER_WIDTH-1:0] r_user;
logic [BUFFER_WIDTH-1:0] r_writetoken;
logic [BUFFER_WIDTH-1:0] r_readpointer;
logic [1:0] b_resp;
logic [AXI_ID_WIDTH-1:0] b_id;
logic [AXI_USER_WIDTH-1:0] b_user;
logic [BUFFER_WIDTH-1:0] b_writetoken;
logic [BUFFER_WIDTH-1:0] b_readpointer;
// Master Side
//***************************************
modport Master
(
output aw_addr, output aw_prot, output aw_region,
output aw_len, output aw_size, output aw_burst, output aw_lock,
output aw_cache, output aw_qos, output aw_id, output aw_user,
output aw_writetoken, input aw_readpointer,
output ar_addr, output ar_prot, output ar_region,
output ar_len, output ar_size, output ar_burst, output ar_lock,
output ar_cache, output ar_qos, output ar_id, output ar_user,
output ar_writetoken, input ar_readpointer,
output w_data, output w_strb, output w_user, output w_last,
output w_writetoken, input w_readpointer,
input r_data, input r_resp, input r_last, input r_id, input r_user,
input r_writetoken, output r_readpointer,
input b_resp, input b_id, input b_user,
input b_writetoken, output b_readpointer
);
// Master Side
//***************************************
modport Slave
(
input aw_addr, input aw_prot, input aw_region,
input aw_len, input aw_size, input aw_burst, input aw_lock,
input aw_cache, input aw_qos, input aw_id, input aw_user,
input aw_writetoken, output aw_readpointer,
input ar_addr, input ar_prot, input ar_region,
input ar_len, input ar_size, input ar_burst, input ar_lock,
input ar_cache, input ar_qos, input ar_id, input ar_user,
input ar_writetoken, output ar_readpointer,
input w_data, input w_strb, input w_user, input w_last,
input w_writetoken, output w_readpointer,
output r_data, output r_resp, output r_last, output r_id, output r_user,
output r_writetoken, input r_readpointer,
output b_resp, output b_id, output b_user,
output b_writetoken, input b_readpointer
);
endinterface
//********************************************************
//***************** CLKGATE CONFIG BUS *******************
//********************************************************
interface CLKGATE_CONFIG_BUS;
// REQUEST CHANNEL
//***************************************
logic [`NB_CORES-1:0] clkgate_tcdm;
logic [`NB_CORES-1:0] clkgate_core;
logic clkgate_scm;
logic clkgate_int;
logic clkgate_hwacc;
logic clkgate_sel;
// RESPONSE CHANNEL
//***************************************
//
// Master Side
//***************************************
modport Master
(
output clkgate_tcdm,
output clkgate_core,
output clkgate_scm,
output clkgate_int,
output clkgate_hwacc,
output clkgate_sel
);
// Slave Side
//***************************************
modport Slave
(
input clkgate_tcdm,
input clkgate_core,
input clkgate_scm,
input clkgate_int,
input clkgate_hwacc,
input clkgate_sel
);
endinterface // CLKGATE_CONFIG_BUS
//********************************************************
//***************** MMU CONFIG BUS ***********************
//********************************************************
interface MMU_CONFIG_BUS;
// size of section in SRAM that is mapped in sequential
// (non-interleaved) order for collision free private accesses,
// always starting at the top of the whole SRAM section
// n = 0: disable sequential section
// n > 0: seq. section of size 2^n * 32 Byte
logic [3:0] mmu_sram_seqsec_size;
// seperate section can be declared sindie the SCM part
// sizing works as above, the seq. section always starts
// at the top of the SCM section
logic [3:0] mmu_scm_seqsec_size;
// NOTE: address translation can be fully disabled setting
// both mmu_sram_seq_size and mmu_scm_seq_size to 0
// (this is the default reset value)
// Master Side
//***************************************
modport Master
(
output mmu_sram_seqsec_size,
output mmu_scm_seqsec_size
);
// Slave Side
//***************************************
modport Slave
(
input mmu_sram_seqsec_size,
input mmu_scm_seqsec_size
);
endinterface // MMU_CONFIG_BUS
//********************************************************
//***************** BIST IC BUS **************************
//********************************************************
interface BIST_BUS;
logic bist_en;
logic bist_done_even;
logic bist_done_odd;
logic bist_result_even;
logic bist_result_odd;
logic [31:0] bist_pattern;
// Master Side
//***************************************
modport Master
(
output bist_en,
input bist_done_even,
input bist_done_odd,
input bist_result_even,
input bist_result_odd,
output bist_pattern
);
// Slave Side
//***************************************
modport Slave
(
input bist_en,
output bist_done_even,
output bist_done_odd,
output bist_result_even,
output bist_result_odd,
input bist_pattern
);
endinterface // BIST_BUS
//********************************************************
//****************** BRAM PORT BUS ***********************
//********************************************************
interface BRAM_PORT;
logic clk;
logic rst;
logic en;
logic [ 7:0] we;
logic [14:0] addr;
logic [63:0] din;
logic [63:0] dout;
modport Master (
output clk,
output rst,
output en,
output we,
output addr,
output din,
input dout
);
modport Slave (
input clk,
input rst,
input en,
input we,
input addr,
input din,
output dout
);
endinterface // BRAM_PORT
interface SP_ICACHE_CTRL_UNIT_BUS;
// ICACHE_CTRL UNIT INTERFACE
//***************************************
logic ctrl_req_enable;
logic ctrl_ack_enable;
logic ctrl_req_disable;
logic ctrl_ack_disable;
logic ctrl_pending_trans;
logic ctrl_flush_req;
logic ctrl_flush_ack;
logic icache_is_private;
logic sel_flush_req;
logic [31:0] sel_flush_addr;
logic sel_flush_ack;
`ifdef FEATURE_ICACHE_STAT
logic [31:0] ctrl_hit_count;
logic [31:0] ctrl_trans_count;
logic [31:0] ctrl_miss_count;
logic ctrl_clear_regs;
logic ctrl_enable_regs;
`endif
// Master Side
//***************************************
modport Master
(
output ctrl_req_enable,
output ctrl_req_disable,
output ctrl_flush_req,
output icache_is_private,
input ctrl_flush_ack,
input ctrl_ack_enable,
input ctrl_ack_disable,
input ctrl_pending_trans,
output sel_flush_req,
output sel_flush_addr,
input sel_flush_ack
`ifdef FEATURE_ICACHE_STAT
,
input ctrl_hit_count,
input ctrl_trans_count,
input ctrl_miss_count,
output ctrl_clear_regs,
output ctrl_enable_regs
`endif
);
// Slave Side
//***************************************
modport Slave
(
input ctrl_req_enable,
input ctrl_req_disable,
input ctrl_flush_req,
input icache_is_private,
output ctrl_flush_ack,
output ctrl_ack_enable,
output ctrl_ack_disable,
output ctrl_pending_trans,
input sel_flush_req,
input sel_flush_addr,
output sel_flush_ack
`ifdef FEATURE_ICACHE_STAT
,
output ctrl_hit_count,
output ctrl_trans_count,
output ctrl_miss_count,
input ctrl_clear_regs,
input ctrl_enable_regs
`endif
);
endinterface //~ SP_ICACHE_CTRL_UNIT_BUS
interface MP_ICACHE_CTRL_UNIT_BUS;
// ICACHE_CTRL UNIT INTERFACE
//***************************************
logic bypass_req;
logic [`NB_CORES:0] bypass_ack; // NB_CORES + 1
logic flush_req;
logic flush_ack;
logic sel_flush_req;
logic [31:0] sel_flush_addr;
logic sel_flush_ack;
`ifdef FEATURE_ICACHE_STAT
logic [31:0] global_hit_count;
logic [31:0] global_trans_count;
logic [31:0] global_miss_count;
logic [`NB_CORES-1:0][31:0] bank_hit_count;
logic [`NB_CORES-1:0][31:0] bank_trans_count;
logic [`NB_CORES-1:0][31:0] bank_miss_count;
logic ctrl_clear_regs;
logic ctrl_enable_regs;
`endif
// Master Side
//***************************************
modport Master
(
output bypass_req,
output flush_req,
input bypass_ack,
input flush_ack,
output sel_flush_req,
output sel_flush_addr,
input sel_flush_ack
`ifdef FEATURE_ICACHE_STAT
,
input global_hit_count,
input global_trans_count,
input global_miss_count,
input bank_hit_count,
input bank_trans_count,
input bank_miss_count,
output ctrl_clear_regs,
output ctrl_enable_regs
`endif
);
// Slave Side
//***************************************
modport Slave
(
input bypass_req,
input flush_req,
output bypass_ack,
output flush_ack,
input sel_flush_req,
input sel_flush_addr,
output sel_flush_ack
`ifdef FEATURE_ICACHE_STAT
,
output global_hit_count,
output global_trans_count,
output global_miss_count,
output bank_hit_count,
output bank_trans_count,
output bank_miss_count,
input ctrl_clear_regs,
input ctrl_enable_regs
`endif
);
endinterface //~ MP_ICACHE_CTRL_UNIT_BUS
interface MP_PF_ICACHE_CTRL_UNIT_BUS;
// ICACHE_CTRL UNIT INTERFACE
//***************************************
logic bypass_req;
logic [`NB_CORES:0] bypass_ack; // NB_CORES + 1
logic flush_req;
logic flush_ack;
logic sel_flush_req;
logic [31:0] sel_flush_addr;
logic sel_flush_ack;
logic [31:0] pf_addr;
logic [7:0] pf_size;
logic pf_req;
logic pf_ack;
logic pf_done;
`ifdef FEATURE_ICACHE_STAT
logic [31:0] global_hit_count;
logic [31:0] global_trans_count;
logic [31:0] global_miss_count;
logic [`NB_CORES-1:0][31:0] bank_hit_count;
logic [`NB_CORES-1:0][31:0] bank_trans_count;
logic [`NB_CORES-1:0][31:0] bank_miss_count;
logic ctrl_clear_regs;
logic ctrl_enable_regs;
`endif
// Master Side
//***************************************
modport Master
(
output bypass_req,
output flush_req,
input bypass_ack,
input flush_ack,
output sel_flush_req,
output sel_flush_addr,
input sel_flush_ack,
output pf_addr, pf_size, pf_req,
input pf_ack, pf_done
`ifdef FEATURE_ICACHE_STAT
,
input global_hit_count,
input global_trans_count,
input global_miss_count,
input bank_hit_count,
input bank_trans_count,
input bank_miss_count,
output ctrl_clear_regs,
output ctrl_enable_regs
`endif
);
// Slave Side
//***************************************
modport Slave
(
input bypass_req,
input flush_req,
output bypass_ack,
output flush_ack,