data/full_repos/permissive/418753455/E906_RTL_FACTORY/gen_rtl/pmp/rtl/pa_pmp_top.v
1: b"%Error: data/full_repos/permissive/418753455/E906_RTL_FACTORY/gen_rtl/pmp/rtl/pa_pmp_top.v:153: Cannot find file containing module: 'gated_clk_cell'\ngated_clk_cell  x_pmp_gated_clk (\n^~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/418753455/E906_RTL_FACTORY/gen_rtl/pmp/rtl,data/full_repos/permissive/418753455/gated_clk_cell\n             data/full_repos/permissive/418753455/E906_RTL_FACTORY/gen_rtl/pmp/rtl,data/full_repos/permissive/418753455/gated_clk_cell.v\n             data/full_repos/permissive/418753455/E906_RTL_FACTORY/gen_rtl/pmp/rtl,data/full_repos/permissive/418753455/gated_clk_cell.sv\n             gated_clk_cell\n             gated_clk_cell.v\n             gated_clk_cell.sv\n             obj_dir/gated_clk_cell\n             obj_dir/gated_clk_cell.v\n             obj_dir/gated_clk_cell.sv\n%Error: data/full_repos/permissive/418753455/E906_RTL_FACTORY/gen_rtl/pmp/rtl/pa_pmp_top.v:173: Cannot find file containing module: 'pa_pmp_enc'\npa_pmp_enc  x_pa_pmp_enc (\n^~~~~~~~~~\n%Error: data/full_repos/permissive/418753455/E906_RTL_FACTORY/gen_rtl/pmp/rtl/pa_pmp_top.v:228: Cannot find file containing module: 'pa_pmp_regs'\npa_pmp_regs  x_pa_pmp_regs (\n^~~~~~~~~~~\n%Error: data/full_repos/permissive/418753455/E906_RTL_FACTORY/gen_rtl/pmp/rtl/pa_pmp_top.v:299: Cannot find file containing module: 'pa_pmp_comp_hit'\npa_pmp_comp_hit  x_pa_pmp_comp_hit_0 (\n^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/418753455/E906_RTL_FACTORY/gen_rtl/pmp/rtl/pa_pmp_top.v:327: Cannot find file containing module: 'pa_pmp_comp_hit'\npa_pmp_comp_hit  x_pa_pmp_comp_hit_1 (\n^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/418753455/E906_RTL_FACTORY/gen_rtl/pmp/rtl/pa_pmp_top.v:355: Cannot find file containing module: 'pa_pmp_comp_hit'\npa_pmp_comp_hit  x_pa_pmp_comp_hit_2 (\n^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/418753455/E906_RTL_FACTORY/gen_rtl/pmp/rtl/pa_pmp_top.v:383: Cannot find file containing module: 'pa_pmp_comp_hit'\npa_pmp_comp_hit  x_pa_pmp_comp_hit_3 (\n^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/418753455/E906_RTL_FACTORY/gen_rtl/pmp/rtl/pa_pmp_top.v:411: Cannot find file containing module: 'pa_pmp_comp_hit'\npa_pmp_comp_hit  x_pa_pmp_comp_hit_4 (\n^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/418753455/E906_RTL_FACTORY/gen_rtl/pmp/rtl/pa_pmp_top.v:439: Cannot find file containing module: 'pa_pmp_comp_hit'\npa_pmp_comp_hit  x_pa_pmp_comp_hit_5 (\n^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/418753455/E906_RTL_FACTORY/gen_rtl/pmp/rtl/pa_pmp_top.v:467: Cannot find file containing module: 'pa_pmp_comp_hit'\npa_pmp_comp_hit  x_pa_pmp_comp_hit_6 (\n^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/418753455/E906_RTL_FACTORY/gen_rtl/pmp/rtl/pa_pmp_top.v:495: Cannot find file containing module: 'pa_pmp_comp_hit'\npa_pmp_comp_hit  x_pa_pmp_comp_hit_7 (\n^~~~~~~~~~~~~~~\n%Error: Exiting due to 11 error(s)\n"
module pa_pmp_top(
  cp0_pmp_csr_sel,
  cp0_pmp_csr_wen,
  cp0_pmp_icg_en,
  cp0_pmp_mstatus_mpp,
  cp0_pmp_mstatus_mprv,
  cp0_pmp_updt_data,
  cp0_yy_clk_en,
  cp0_yy_mach_mode,
  cpurst_b,
  forever_cpuclk,
  ifu_pmp_addr,
  ifu_pmp_machine_mode,
  lsu_pmp_addr,
  lsu_pmp_write,
  pad_yy_icg_scan_en,
  pmp_cp0_data,
  pmp_ifu_acc_deny,
  pmp_lsu_acc_deny
);


input   [19:0]  cp0_pmp_csr_sel;         
input           cp0_pmp_csr_wen;         
input           cp0_pmp_icg_en;          
input   [1 :0]  cp0_pmp_mstatus_mpp;     
input           cp0_pmp_mstatus_mprv;    
input   [31:0]  cp0_pmp_updt_data;       
input           cp0_yy_clk_en;           
input           cp0_yy_mach_mode;        
input           cpurst_b;                
input           forever_cpuclk;          
input   [31:0]  ifu_pmp_addr;            
input           ifu_pmp_machine_mode;    
input   [31:0]  lsu_pmp_addr;            
input           lsu_pmp_write;           
input           pad_yy_icg_scan_en;      
output  [31:0]  pmp_cp0_data;            
output          pmp_ifu_acc_deny;        
output          pmp_lsu_acc_deny;        




wire    [19:0]  cp0_pmp_csr_sel;         
wire            cp0_pmp_csr_wen;         
wire            cp0_pmp_icg_en;          
wire    [1 :0]  cp0_pmp_mstatus_mpp;     
wire            cp0_pmp_mstatus_mprv;    
wire    [31:0]  cp0_pmp_updt_data;       
wire            cp0_yy_clk_en;           
wire            cp0_yy_mach_mode;        
wire            cp0_yy_secu_mode_aft_dbg; 
wire            cpuclk;                  
wire            cpurst_b;                
wire            forever_cpuclk;          
wire    [7 :0]  ifu_addr_ge_bottom;      
wire    [31:0]  ifu_pmp_addr;            
wire            ifu_pmp_machine_mode;    
wire    [15:0]  lsu_4k_cross;            
wire    [7 :0]  lsu_addr_ge_bottom;      
wire    [31:0]  lsu_pmp_addr;            
wire            lsu_pmp_write;           
wire            pad_yy_icg_scan_en;      
wire    [31:0]  pmp_cp0_data;            
wire    [19:0]  pmp_csr_wen;             
wire    [15:0]  pmp_entry_lock;          
wire            pmp_ifu_acc_deny;        
wire    [7 :0]  pmp_ifu_hit;             
wire            pmp_lsu_acc_deny;        
wire    [7 :0]  pmp_lsu_hit;             
wire    [25:0]  pmpaddr0_value;          
wire    [25:0]  pmpaddr1_value;          
wire    [25:0]  pmpaddr2_value;          
wire    [25:0]  pmpaddr3_value;          
wire    [25:0]  pmpaddr4_value;          
wire    [25:0]  pmpaddr5_value;          
wire    [25:0]  pmpaddr6_value;          
wire    [25:0]  pmpaddr7_value;          
wire    [1 :0]  regs_comp_addr_mode0;    
wire    [1 :0]  regs_comp_addr_mode1;    
wire    [1 :0]  regs_comp_addr_mode2;    
wire    [1 :0]  regs_comp_addr_mode3;    
wire    [1 :0]  regs_comp_addr_mode4;    
wire    [1 :0]  regs_comp_addr_mode5;    
wire    [1 :0]  regs_comp_addr_mode6;    
wire    [1 :0]  regs_comp_addr_mode7;    
wire            regs_comp_excut0;        
wire            regs_comp_excut1;        
wire            regs_comp_excut2;        
wire            regs_comp_excut3;        
wire            regs_comp_excut4;        
wire            regs_comp_excut5;        
wire            regs_comp_excut6;        
wire            regs_comp_excut7;        
wire            regs_comp_lock0;         
wire            regs_comp_lock1;         
wire            regs_comp_lock10;        
wire            regs_comp_lock11;        
wire            regs_comp_lock12;        
wire            regs_comp_lock13;        
wire            regs_comp_lock14;        
wire            regs_comp_lock15;        
wire            regs_comp_lock2;         
wire            regs_comp_lock3;         
wire            regs_comp_lock4;         
wire            regs_comp_lock5;         
wire            regs_comp_lock6;         
wire            regs_comp_lock7;         
wire            regs_comp_lock8;         
wire            regs_comp_lock9;         
wire            regs_comp_read0;         
wire            regs_comp_read1;         
wire            regs_comp_read2;         
wire            regs_comp_read3;         
wire            regs_comp_read4;         
wire            regs_comp_read5;         
wire            regs_comp_read6;         
wire            regs_comp_read7;         
wire            regs_comp_write0;        
wire            regs_comp_write1;        
wire            regs_comp_write2;        
wire            regs_comp_write3;        
wire            regs_comp_write4;        
wire            regs_comp_write5;        
wire            regs_comp_write6;        
wire            regs_comp_write7;        
wire            wr_pmp_regs;             




assign pmp_csr_wen[19:0] = cp0_pmp_csr_sel[19:0] & {20{cp0_pmp_csr_wen}};

assign cp0_yy_secu_mode_aft_dbg = 1'b0;

assign wr_pmp_regs = |pmp_csr_wen[19:0];

gated_clk_cell  x_pmp_gated_clk (
  .clk_in             (forever_cpuclk    ),
  .clk_out            (cpuclk            ),
  .external_en        (1'b0              ),
  .global_en          (cp0_yy_clk_en     ),
  .local_en           (wr_pmp_regs       ),
  .module_en          (cp0_pmp_icg_en    ),
  .pad_yy_icg_scan_en (pad_yy_icg_scan_en)
);











pa_pmp_enc  x_pa_pmp_enc (
  .cp0_pmp_mstatus_mpp  (cp0_pmp_mstatus_mpp ),
  .cp0_pmp_mstatus_mprv (cp0_pmp_mstatus_mprv),
  .cp0_yy_mach_mode     (cp0_yy_mach_mode    ),
  .ifu_pmp_machine_mode (ifu_pmp_machine_mode),
  .lsu_4k_cross         (lsu_4k_cross        ),
  .lsu_pmp_write        (lsu_pmp_write       ),
  .pmp_entry_lock       (pmp_entry_lock      ),
  .pmp_ifu_acc_deny     (pmp_ifu_acc_deny    ),
  .pmp_ifu_hit          (pmp_ifu_hit         ),
  .pmp_lsu_acc_deny     (pmp_lsu_acc_deny    ),
  .pmp_lsu_hit          (pmp_lsu_hit         ),
  .regs_comp_excut0     (regs_comp_excut0    ),
  .regs_comp_excut1     (regs_comp_excut1    ),
  .regs_comp_excut2     (regs_comp_excut2    ),
  .regs_comp_excut3     (regs_comp_excut3    ),
  .regs_comp_excut4     (regs_comp_excut4    ),
  .regs_comp_excut5     (regs_comp_excut5    ),
  .regs_comp_excut6     (regs_comp_excut6    ),
  .regs_comp_excut7     (regs_comp_excut7    ),
  .regs_comp_lock0      (regs_comp_lock0     ),
  .regs_comp_lock1      (regs_comp_lock1     ),
  .regs_comp_lock10     (regs_comp_lock10    ),
  .regs_comp_lock11     (regs_comp_lock11    ),
  .regs_comp_lock12     (regs_comp_lock12    ),
  .regs_comp_lock13     (regs_comp_lock13    ),
  .regs_comp_lock14     (regs_comp_lock14    ),
  .regs_comp_lock15     (regs_comp_lock15    ),
  .regs_comp_lock2      (regs_comp_lock2     ),
  .regs_comp_lock3      (regs_comp_lock3     ),
  .regs_comp_lock4      (regs_comp_lock4     ),
  .regs_comp_lock5      (regs_comp_lock5     ),
  .regs_comp_lock6      (regs_comp_lock6     ),
  .regs_comp_lock7      (regs_comp_lock7     ),
  .regs_comp_lock8      (regs_comp_lock8     ),
  .regs_comp_lock9      (regs_comp_lock9     ),
  .regs_comp_read0      (regs_comp_read0     ),
  .regs_comp_read1      (regs_comp_read1     ),
  .regs_comp_read2      (regs_comp_read2     ),
  .regs_comp_read3      (regs_comp_read3     ),
  .regs_comp_read4      (regs_comp_read4     ),
  .regs_comp_read5      (regs_comp_read5     ),
  .regs_comp_read6      (regs_comp_read6     ),
  .regs_comp_read7      (regs_comp_read7     ),
  .regs_comp_write0     (regs_comp_write0    ),
  .regs_comp_write1     (regs_comp_write1    ),
  .regs_comp_write2     (regs_comp_write2    ),
  .regs_comp_write3     (regs_comp_write3    ),
  .regs_comp_write4     (regs_comp_write4    ),
  .regs_comp_write5     (regs_comp_write5    ),
  .regs_comp_write6     (regs_comp_write6    ),
  .regs_comp_write7     (regs_comp_write7    )
);


pa_pmp_regs  x_pa_pmp_regs (
  .cp0_pmp_csr_sel          (cp0_pmp_csr_sel         ),
  .cp0_pmp_updt_data        (cp0_pmp_updt_data       ),
  .cp0_yy_secu_mode_aft_dbg (cp0_yy_secu_mode_aft_dbg),
  .cpuclk                   (cpuclk                  ),
  .cpurst_b                 (cpurst_b                ),
  .pmp_cp0_data             (pmp_cp0_data            ),
  .pmp_csr_wen              (pmp_csr_wen             ),
  .pmpaddr0_value           (pmpaddr0_value          ),
  .pmpaddr1_value           (pmpaddr1_value          ),
  .pmpaddr2_value           (pmpaddr2_value          ),
  .pmpaddr3_value           (pmpaddr3_value          ),
  .pmpaddr4_value           (pmpaddr4_value          ),
  .pmpaddr5_value           (pmpaddr5_value          ),
  .pmpaddr6_value           (pmpaddr6_value          ),
  .pmpaddr7_value           (pmpaddr7_value          ),
  .regs_comp_addr_mode0     (regs_comp_addr_mode0    ),
  .regs_comp_addr_mode1     (regs_comp_addr_mode1    ),
  .regs_comp_addr_mode2     (regs_comp_addr_mode2    ),
  .regs_comp_addr_mode3     (regs_comp_addr_mode3    ),
  .regs_comp_addr_mode4     (regs_comp_addr_mode4    ),
  .regs_comp_addr_mode5     (regs_comp_addr_mode5    ),
  .regs_comp_addr_mode6     (regs_comp_addr_mode6    ),
  .regs_comp_addr_mode7     (regs_comp_addr_mode7    ),
  .regs_comp_excut0         (regs_comp_excut0        ),
  .regs_comp_excut1         (regs_comp_excut1        ),
  .regs_comp_excut2         (regs_comp_excut2        ),
  .regs_comp_excut3         (regs_comp_excut3        ),
  .regs_comp_excut4         (regs_comp_excut4        ),
  .regs_comp_excut5         (regs_comp_excut5        ),
  .regs_comp_excut6         (regs_comp_excut6        ),
  .regs_comp_excut7         (regs_comp_excut7        ),
  .regs_comp_lock0          (regs_comp_lock0         ),
  .regs_comp_lock1          (regs_comp_lock1         ),
  .regs_comp_lock10         (regs_comp_lock10        ),
  .regs_comp_lock11         (regs_comp_lock11        ),
  .regs_comp_lock12         (regs_comp_lock12        ),
  .regs_comp_lock13         (regs_comp_lock13        ),
  .regs_comp_lock14         (regs_comp_lock14        ),
  .regs_comp_lock15         (regs_comp_lock15        ),
  .regs_comp_lock2          (regs_comp_lock2         ),
  .regs_comp_lock3          (regs_comp_lock3         ),
  .regs_comp_lock4          (regs_comp_lock4         ),
  .regs_comp_lock5          (regs_comp_lock5         ),
  .regs_comp_lock6          (regs_comp_lock6         ),
  .regs_comp_lock7          (regs_comp_lock7         ),
  .regs_comp_lock8          (regs_comp_lock8         ),
  .regs_comp_lock9          (regs_comp_lock9         ),
  .regs_comp_read0          (regs_comp_read0         ),
  .regs_comp_read1          (regs_comp_read1         ),
  .regs_comp_read2          (regs_comp_read2         ),
  .regs_comp_read3          (regs_comp_read3         ),
  .regs_comp_read4          (regs_comp_read4         ),
  .regs_comp_read5          (regs_comp_read5         ),
  .regs_comp_read6          (regs_comp_read6         ),
  .regs_comp_read7          (regs_comp_read7         ),
  .regs_comp_write0         (regs_comp_write0        ),
  .regs_comp_write1         (regs_comp_write1        ),
  .regs_comp_write2         (regs_comp_write2        ),
  .regs_comp_write3         (regs_comp_write3        ),
  .regs_comp_write4         (regs_comp_write4        ),
  .regs_comp_write5         (regs_comp_write5        ),
  .regs_comp_write6         (regs_comp_write6        ),
  .regs_comp_write7         (regs_comp_write7        )
);






pa_pmp_comp_hit  x_pa_pmp_comp_hit_0 (
  .addr_match_mode           (regs_comp_addr_mode0[1:0]),
  .ifu_acc_addr              (ifu_pmp_addr[31:0]       ),
  .ifu_addr_ge_bottom        (1'b1                     ),
  .ifu_addr_ge_pmpaddr       (ifu_addr_ge_bottom[0]    ),
  .lsu_4k_cross              (lsu_4k_cross[0]          ),
  .lsu_acc_addr              (lsu_pmp_addr[31:0]       ),
  .lsu_addr_ge_bottom        (1'b1                     ),
  .lsu_addr_ge_pmpaddr       (lsu_addr_ge_bottom[0]    ),
  .pmp_ifu_hit               (pmp_ifu_hit[0]           ),
  .pmp_lsu_hit               (pmp_lsu_hit[0]           ),
  .pmpaddr                   (pmpaddr0_value[25:0]     )
);















pa_pmp_comp_hit  x_pa_pmp_comp_hit_1 (
  .addr_match_mode           (regs_comp_addr_mode1[1:0]),
  .ifu_acc_addr              (ifu_pmp_addr[31:0]       ),
  .ifu_addr_ge_bottom        (ifu_addr_ge_bottom[0]    ),
  .ifu_addr_ge_pmpaddr       (ifu_addr_ge_bottom[1]    ),
  .lsu_4k_cross              (lsu_4k_cross[1]          ),
  .lsu_acc_addr              (lsu_pmp_addr[31:0]       ),
  .lsu_addr_ge_bottom        (lsu_addr_ge_bottom[0]    ),
  .lsu_addr_ge_pmpaddr       (lsu_addr_ge_bottom[1]    ),
  .pmp_ifu_hit               (pmp_ifu_hit[1]           ),
  .pmp_lsu_hit               (pmp_lsu_hit[1]           ),
  .pmpaddr                   (pmpaddr1_value[25:0]     )
);















pa_pmp_comp_hit  x_pa_pmp_comp_hit_2 (
  .addr_match_mode           (regs_comp_addr_mode2[1:0]),
  .ifu_acc_addr              (ifu_pmp_addr[31:0]       ),
  .ifu_addr_ge_bottom        (ifu_addr_ge_bottom[1]    ),
  .ifu_addr_ge_pmpaddr       (ifu_addr_ge_bottom[2]    ),
  .lsu_4k_cross              (lsu_4k_cross[2]          ),
  .lsu_acc_addr              (lsu_pmp_addr[31:0]       ),
  .lsu_addr_ge_bottom        (lsu_addr_ge_bottom[1]    ),
  .lsu_addr_ge_pmpaddr       (lsu_addr_ge_bottom[2]    ),
  .pmp_ifu_hit               (pmp_ifu_hit[2]           ),
  .pmp_lsu_hit               (pmp_lsu_hit[2]           ),
  .pmpaddr                   (pmpaddr2_value[25:0]     )
);















pa_pmp_comp_hit  x_pa_pmp_comp_hit_3 (
  .addr_match_mode           (regs_comp_addr_mode3[1:0]),
  .ifu_acc_addr              (ifu_pmp_addr[31:0]       ),
  .ifu_addr_ge_bottom        (ifu_addr_ge_bottom[2]    ),
  .ifu_addr_ge_pmpaddr       (ifu_addr_ge_bottom[3]    ),
  .lsu_4k_cross              (lsu_4k_cross[3]          ),
  .lsu_acc_addr              (lsu_pmp_addr[31:0]       ),
  .lsu_addr_ge_bottom        (lsu_addr_ge_bottom[2]    ),
  .lsu_addr_ge_pmpaddr       (lsu_addr_ge_bottom[3]    ),
  .pmp_ifu_hit               (pmp_ifu_hit[3]           ),
  .pmp_lsu_hit               (pmp_lsu_hit[3]           ),
  .pmpaddr                   (pmpaddr3_value[25:0]     )
);















pa_pmp_comp_hit  x_pa_pmp_comp_hit_4 (
  .addr_match_mode           (regs_comp_addr_mode4[1:0]),
  .ifu_acc_addr              (ifu_pmp_addr[31:0]       ),
  .ifu_addr_ge_bottom        (ifu_addr_ge_bottom[3]    ),
  .ifu_addr_ge_pmpaddr       (ifu_addr_ge_bottom[4]    ),
  .lsu_4k_cross              (lsu_4k_cross[4]          ),
  .lsu_acc_addr              (lsu_pmp_addr[31:0]       ),
  .lsu_addr_ge_bottom        (lsu_addr_ge_bottom[3]    ),
  .lsu_addr_ge_pmpaddr       (lsu_addr_ge_bottom[4]    ),
  .pmp_ifu_hit               (pmp_ifu_hit[4]           ),
  .pmp_lsu_hit               (pmp_lsu_hit[4]           ),
  .pmpaddr                   (pmpaddr4_value[25:0]     )
);















pa_pmp_comp_hit  x_pa_pmp_comp_hit_5 (
  .addr_match_mode           (regs_comp_addr_mode5[1:0]),
  .ifu_acc_addr              (ifu_pmp_addr[31:0]       ),
  .ifu_addr_ge_bottom        (ifu_addr_ge_bottom[4]    ),
  .ifu_addr_ge_pmpaddr       (ifu_addr_ge_bottom[5]    ),
  .lsu_4k_cross              (lsu_4k_cross[5]          ),
  .lsu_acc_addr              (lsu_pmp_addr[31:0]       ),
  .lsu_addr_ge_bottom        (lsu_addr_ge_bottom[4]    ),
  .lsu_addr_ge_pmpaddr       (lsu_addr_ge_bottom[5]    ),
  .pmp_ifu_hit               (pmp_ifu_hit[5]           ),
  .pmp_lsu_hit               (pmp_lsu_hit[5]           ),
  .pmpaddr                   (pmpaddr5_value[25:0]     )
);















pa_pmp_comp_hit  x_pa_pmp_comp_hit_6 (
  .addr_match_mode           (regs_comp_addr_mode6[1:0]),
  .ifu_acc_addr              (ifu_pmp_addr[31:0]       ),
  .ifu_addr_ge_bottom        (ifu_addr_ge_bottom[5]    ),
  .ifu_addr_ge_pmpaddr       (ifu_addr_ge_bottom[6]    ),
  .lsu_4k_cross              (lsu_4k_cross[6]          ),
  .lsu_acc_addr              (lsu_pmp_addr[31:0]       ),
  .lsu_addr_ge_bottom        (lsu_addr_ge_bottom[5]    ),
  .lsu_addr_ge_pmpaddr       (lsu_addr_ge_bottom[6]    ),
  .pmp_ifu_hit               (pmp_ifu_hit[6]           ),
  .pmp_lsu_hit               (pmp_lsu_hit[6]           ),
  .pmpaddr                   (pmpaddr6_value[25:0]     )
);















pa_pmp_comp_hit  x_pa_pmp_comp_hit_7 (
  .addr_match_mode           (regs_comp_addr_mode7[1:0]),
  .ifu_acc_addr              (ifu_pmp_addr[31:0]       ),
  .ifu_addr_ge_bottom        (ifu_addr_ge_bottom[6]    ),
  .ifu_addr_ge_pmpaddr       (ifu_addr_ge_bottom[7]    ),
  .lsu_4k_cross              (lsu_4k_cross[7]          ),
  .lsu_acc_addr              (lsu_pmp_addr[31:0]       ),
  .lsu_addr_ge_bottom        (lsu_addr_ge_bottom[6]    ),
  .lsu_addr_ge_pmpaddr       (lsu_addr_ge_bottom[7]    ),
  .pmp_ifu_hit               (pmp_ifu_hit[7]           ),
  .pmp_lsu_hit               (pmp_lsu_hit[7]           ),
  .pmpaddr                   (pmpaddr7_value[25:0]     )
);






























































































































assign lsu_4k_cross[15:12] = 4'b0;
    assign lsu_4k_cross[11:8] = 4'b0;




endmodule
module pa_pmp_top(
  cp0_pmp_csr_sel,
  cp0_pmp_csr_wen,
  cp0_pmp_icg_en,
  cp0_pmp_mstatus_mpp,
  cp0_pmp_mstatus_mprv,
  cp0_pmp_updt_data,
  cp0_yy_clk_en,
  cp0_yy_mach_mode,
  cpurst_b,
  forever_cpuclk,
  ifu_pmp_addr,
  ifu_pmp_machine_mode,
  lsu_pmp_addr,
  lsu_pmp_write,
  pad_yy_icg_scan_en,
  pmp_cp0_data,
  pmp_ifu_acc_deny,
  pmp_lsu_acc_deny
);



input   [19:0]  cp0_pmp_csr_sel;         
input           cp0_pmp_csr_wen;         
input           cp0_pmp_icg_en;          
input   [1 :0]  cp0_pmp_mstatus_mpp;     
input           cp0_pmp_mstatus_mprv;    
input   [31:0]  cp0_pmp_updt_data;       
input           cp0_yy_clk_en;           
input           cp0_yy_mach_mode;        
input           cpurst_b;                
input           forever_cpuclk;          
input   [31:0]  ifu_pmp_addr;            
input           ifu_pmp_machine_mode;    
input   [31:0]  lsu_pmp_addr;            
input           lsu_pmp_write;           
input           pad_yy_icg_scan_en;      
output  [31:0]  pmp_cp0_data;            
output          pmp_ifu_acc_deny;        
output          pmp_lsu_acc_deny;        




wire    [19:0]  cp0_pmp_csr_sel;         
wire            cp0_pmp_csr_wen;         
wire            cp0_pmp_icg_en;          
wire    [1 :0]  cp0_pmp_mstatus_mpp;     
wire            cp0_pmp_mstatus_mprv;    
wire    [31:0]  cp0_pmp_updt_data;       
wire            cp0_yy_clk_en;           
wire            cp0_yy_mach_mode;        
wire            cp0_yy_secu_mode_aft_dbg; 
wire            cpuclk;                  
wire            cpurst_b;                
wire            forever_cpuclk;          
wire    [7 :0]  ifu_addr_ge_bottom;      
wire    [31:0]  ifu_pmp_addr;            
wire            ifu_pmp_machine_mode;    
wire    [15:0]  lsu_4k_cross;            
wire    [7 :0]  lsu_addr_ge_bottom;      
wire    [31:0]  lsu_pmp_addr;            
wire            lsu_pmp_write;           
wire            pad_yy_icg_scan_en;      
wire    [31:0]  pmp_cp0_data;            
wire    [19:0]  pmp_csr_wen;             
wire    [15:0]  pmp_entry_lock;          
wire            pmp_ifu_acc_deny;        
wire    [7 :0]  pmp_ifu_hit;             
wire            pmp_lsu_acc_deny;        
wire    [7 :0]  pmp_lsu_hit;             
wire    [25:0]  pmpaddr0_value;          
wire    [25:0]  pmpaddr1_value;          
wire    [25:0]  pmpaddr2_value;          
wire    [25:0]  pmpaddr3_value;          
wire    [25:0]  pmpaddr4_value;          
wire    [25:0]  pmpaddr5_value;          
wire    [25:0]  pmpaddr6_value;          
wire    [25:0]  pmpaddr7_value;          
wire    [1 :0]  regs_comp_addr_mode0;    
wire    [1 :0]  regs_comp_addr_mode1;    
wire    [1 :0]  regs_comp_addr_mode2;    
wire    [1 :0]  regs_comp_addr_mode3;    
wire    [1 :0]  regs_comp_addr_mode4;    
wire    [1 :0]  regs_comp_addr_mode5;    
wire    [1 :0]  regs_comp_addr_mode6;    
wire    [1 :0]  regs_comp_addr_mode7;    
wire            regs_comp_excut0;        
wire            regs_comp_excut1;        
wire            regs_comp_excut2;        
wire            regs_comp_excut3;        
wire            regs_comp_excut4;        
wire            regs_comp_excut5;        
wire            regs_comp_excut6;        
wire            regs_comp_excut7;        
wire            regs_comp_lock0;         
wire            regs_comp_lock1;         
wire            regs_comp_lock10;        
wire            regs_comp_lock11;        
wire            regs_comp_lock12;        
wire            regs_comp_lock13;        
wire            regs_comp_lock14;        
wire            regs_comp_lock15;        
wire            regs_comp_lock2;         
wire            regs_comp_lock3;         
wire            regs_comp_lock4;         
wire            regs_comp_lock5;         
wire            regs_comp_lock6;         
wire            regs_comp_lock7;         
wire            regs_comp_lock8;         
wire            regs_comp_lock9;         
wire            regs_comp_read0;         
wire            regs_comp_read1;         
wire            regs_comp_read2;         
wire            regs_comp_read3;         
wire            regs_comp_read4;         
wire            regs_comp_read5;         
wire            regs_comp_read6;         
wire            regs_comp_read7;         
wire            regs_comp_write0;        
wire            regs_comp_write1;        
wire            regs_comp_write2;        
wire            regs_comp_write3;        
wire            regs_comp_write4;        
wire            regs_comp_write5;        
wire            regs_comp_write6;        
wire            regs_comp_write7;        
wire            wr_pmp_regs;             




assign pmp_csr_wen[19:0] = cp0_pmp_csr_sel[19:0] & {20{cp0_pmp_csr_wen}};

assign cp0_yy_secu_mode_aft_dbg = 1'b0;

assign wr_pmp_regs = |pmp_csr_wen[19:0];

gated_clk_cell  x_pmp_gated_clk (
  .clk_in             (forever_cpuclk    ),
  .clk_out            (cpuclk            ),
  .external_en        (1'b0              ),
  .global_en          (cp0_yy_clk_en     ),
  .local_en           (wr_pmp_regs       ),
  .module_en          (cp0_pmp_icg_en    ),
  .pad_yy_icg_scan_en (pad_yy_icg_scan_en)
);











pa_pmp_enc  x_pa_pmp_enc (
  .cp0_pmp_mstatus_mpp  (cp0_pmp_mstatus_mpp ),
  .cp0_pmp_mstatus_mprv (cp0_pmp_mstatus_mprv),
  .cp0_yy_mach_mode     (cp0_yy_mach_mode    ),
  .ifu_pmp_machine_mode (ifu_pmp_machine_mode),
  .lsu_4k_cross         (lsu_4k_cross        ),
  .lsu_pmp_write        (lsu_pmp_write       ),
  .pmp_entry_lock       (pmp_entry_lock      ),
  .pmp_ifu_acc_deny     (pmp_ifu_acc_deny    ),
  .pmp_ifu_hit          (pmp_ifu_hit         ),
  .pmp_lsu_acc_deny     (pmp_lsu_acc_deny    ),
  .pmp_lsu_hit          (pmp_lsu_hit         ),
  .regs_comp_excut0     (regs_comp_excut0    ),
  .regs_comp_excut1     (regs_comp_excut1    ),
  .regs_comp_excut2     (regs_comp_excut2    ),
  .regs_comp_excut3     (regs_comp_excut3    ),
  .regs_comp_excut4     (regs_comp_excut4    ),
  .regs_comp_excut5     (regs_comp_excut5    ),
  .regs_comp_excut6     (regs_comp_excut6    ),
  .regs_comp_excut7     (regs_comp_excut7    ),
  .regs_comp_lock0      (regs_comp_lock0     ),
  .regs_comp_lock1      (regs_comp_lock1     ),
  .regs_comp_lock10     (regs_comp_lock10    ),
  .regs_comp_lock11     (regs_comp_lock11    ),
  .regs_comp_lock12     (regs_comp_lock12    ),
  .regs_comp_lock13     (regs_comp_lock13    ),
  .regs_comp_lock14     (regs_comp_lock14    ),
  .regs_comp_lock15     (regs_comp_lock15    ),
  .regs_comp_lock2      (regs_comp_lock2     ),
  .regs_comp_lock3      (regs_comp_lock3     ),
  .regs_comp_lock4      (regs_comp_lock4     ),
  .regs_comp_lock5      (regs_comp_lock5     ),
  .regs_comp_lock6      (regs_comp_lock6     ),
  .regs_comp_lock7      (regs_comp_lock7     ),
  .regs_comp_lock8      (regs_comp_lock8     ),
  .regs_comp_lock9      (regs_comp_lock9     ),
  .regs_comp_read0      (regs_comp_read0     ),
  .regs_comp_read1      (regs_comp_read1     ),
  .regs_comp_read2      (regs_comp_read2     ),
  .regs_comp_read3      (regs_comp_read3     ),
  .regs_comp_read4      (regs_comp_read4     ),
  .regs_comp_read5      (regs_comp_read5     ),
  .regs_comp_read6      (regs_comp_read6     ),
  .regs_comp_read7      (regs_comp_read7     ),
  .regs_comp_write0     (regs_comp_write0    ),
  .regs_comp_write1     (regs_comp_write1    ),
  .regs_comp_write2     (regs_comp_write2    ),
  .regs_comp_write3     (regs_comp_write3    ),
  .regs_comp_write4     (regs_comp_write4    ),
  .regs_comp_write5     (regs_comp_write5    ),
  .regs_comp_write6     (regs_comp_write6    ),
  .regs_comp_write7     (regs_comp_write7    )
);


pa_pmp_regs  x_pa_pmp_regs (
  .cp0_pmp_csr_sel          (cp0_pmp_csr_sel         ),
  .cp0_pmp_updt_data        (cp0_pmp_updt_data       ),
  .cp0_yy_secu_mode_aft_dbg (cp0_yy_secu_mode_aft_dbg),
  .cpuclk                   (cpuclk                  ),
  .cpurst_b                 (cpurst_b                ),
  .pmp_cp0_data             (pmp_cp0_data            ),
  .pmp_csr_wen              (pmp_csr_wen             ),
  .pmpaddr0_value           (pmpaddr0_value          ),
  .pmpaddr1_value           (pmpaddr1_value          ),
  .pmpaddr2_value           (pmpaddr2_value          ),
  .pmpaddr3_value           (pmpaddr3_value          ),
  .pmpaddr4_value           (pmpaddr4_value          ),
  .pmpaddr5_value           (pmpaddr5_value          ),
  .pmpaddr6_value           (pmpaddr6_value          ),
  .pmpaddr7_value           (pmpaddr7_value          ),
  .regs_comp_addr_mode0     (regs_comp_addr_mode0    ),
  .regs_comp_addr_mode1     (regs_comp_addr_mode1    ),
  .regs_comp_addr_mode2     (regs_comp_addr_mode2    ),
  .regs_comp_addr_mode3     (regs_comp_addr_mode3    ),
  .regs_comp_addr_mode4     (regs_comp_addr_mode4    ),
  .regs_comp_addr_mode5     (regs_comp_addr_mode5    ),
  .regs_comp_addr_mode6     (regs_comp_addr_mode6    ),
  .regs_comp_addr_mode7     (regs_comp_addr_mode7    ),
  .regs_comp_excut0         (regs_comp_excut0        ),
  .regs_comp_excut1         (regs_comp_excut1        ),
  .regs_comp_excut2         (regs_comp_excut2        ),
  .regs_comp_excut3         (regs_comp_excut3        ),
  .regs_comp_excut4         (regs_comp_excut4        ),
  .regs_comp_excut5         (regs_comp_excut5        ),
  .regs_comp_excut6         (regs_comp_excut6        ),
  .regs_comp_excut7         (regs_comp_excut7        ),
  .regs_comp_lock0          (regs_comp_lock0         ),
  .regs_comp_lock1          (regs_comp_lock1         ),
  .regs_comp_lock10         (regs_comp_lock10        ),
  .regs_comp_lock11         (regs_comp_lock11        ),
  .regs_comp_lock12         (regs_comp_lock12        ),
  .regs_comp_lock13         (regs_comp_lock13        ),
  .regs_comp_lock14         (regs_comp_lock14        ),
  .regs_comp_lock15         (regs_comp_lock15        ),
  .regs_comp_lock2          (regs_comp_lock2         ),
  .regs_comp_lock3          (regs_comp_lock3         ),
  .regs_comp_lock4          (regs_comp_lock4         ),
  .regs_comp_lock5          (regs_comp_lock5         ),
  .regs_comp_lock6          (regs_comp_lock6         ),
  .regs_comp_lock7          (regs_comp_lock7         ),
  .regs_comp_lock8          (regs_comp_lock8         ),
  .regs_comp_lock9          (regs_comp_lock9         ),
  .regs_comp_read0          (regs_comp_read0         ),
  .regs_comp_read1          (regs_comp_read1         ),
  .regs_comp_read2          (regs_comp_read2         ),
  .regs_comp_read3          (regs_comp_read3         ),
  .regs_comp_read4          (regs_comp_read4         ),
  .regs_comp_read5          (regs_comp_read5         ),
  .regs_comp_read6          (regs_comp_read6         ),
  .regs_comp_read7          (regs_comp_read7         ),
  .regs_comp_write0         (regs_comp_write0        ),
  .regs_comp_write1         (regs_comp_write1        ),
  .regs_comp_write2         (regs_comp_write2        ),
  .regs_comp_write3         (regs_comp_write3        ),
  .regs_comp_write4         (regs_comp_write4        ),
  .regs_comp_write5         (regs_comp_write5        ),
  .regs_comp_write6         (regs_comp_write6        ),
  .regs_comp_write7         (regs_comp_write7        )
);






pa_pmp_comp_hit  x_pa_pmp_comp_hit_0 (
  .addr_match_mode           (regs_comp_addr_mode0[1:0]),
  .ifu_acc_addr              (ifu_pmp_addr[31:0]       ),
  .ifu_addr_ge_bottom        (1'b1                     ),
  .ifu_addr_ge_pmpaddr       (ifu_addr_ge_bottom[0]    ),
  .lsu_4k_cross              (lsu_4k_cross[0]          ),
  .lsu_acc_addr              (lsu_pmp_addr[31:0]       ),
  .lsu_addr_ge_bottom        (1'b1                     ),
  .lsu_addr_ge_pmpaddr       (lsu_addr_ge_bottom[0]    ),
  .pmp_ifu_hit               (pmp_ifu_hit[0]           ),
  .pmp_lsu_hit               (pmp_lsu_hit[0]           ),
  .pmpaddr                   (pmpaddr0_value[25:0]     )
);















pa_pmp_comp_hit  x_pa_pmp_comp_hit_1 (
  .addr_match_mode           (regs_comp_addr_mode1[1:0]),
  .ifu_acc_addr              (ifu_pmp_addr[31:0]       ),
  .ifu_addr_ge_bottom        (ifu_addr_ge_bottom[0]    ),
  .ifu_addr_ge_pmpaddr       (ifu_addr_ge_bottom[1]    ),
  .lsu_4k_cross              (lsu_4k_cross[1]          ),
  .lsu_acc_addr              (lsu_pmp_addr[31:0]       ),
  .lsu_addr_ge_bottom        (lsu_addr_ge_bottom[0]    ),
  .lsu_addr_ge_pmpaddr       (lsu_addr_ge_bottom[1]    ),
  .pmp_ifu_hit               (pmp_ifu_hit[1]           ),
  .pmp_lsu_hit               (pmp_lsu_hit[1]           ),
  .pmpaddr                   (pmpaddr1_value[25:0]     )
);















pa_pmp_comp_hit  x_pa_pmp_comp_hit_2 (
  .addr_match_mode           (regs_comp_addr_mode2[1:0]),
  .ifu_acc_addr              (ifu_pmp_addr[31:0]       ),
  .ifu_addr_ge_bottom        (ifu_addr_ge_bottom[1]    ),
  .ifu_addr_ge_pmpaddr       (ifu_addr_ge_bottom[2]    ),
  .lsu_4k_cross              (lsu_4k_cross[2]          ),
  .lsu_acc_addr              (lsu_pmp_addr[31:0]       ),
  .lsu_addr_ge_bottom        (lsu_addr_ge_bottom[1]    ),
  .lsu_addr_ge_pmpaddr       (lsu_addr_ge_bottom[2]    ),
  .pmp_ifu_hit               (pmp_ifu_hit[2]           ),
  .pmp_lsu_hit               (pmp_lsu_hit[2]           ),
  .pmpaddr                   (pmpaddr2_value[25:0]     )
);















pa_pmp_comp_hit  x_pa_pmp_comp_hit_3 (
  .addr_match_mode           (regs_comp_addr_mode3[1:0]),
  .ifu_acc_addr              (ifu_pmp_addr[31:0]       ),
  .ifu_addr_ge_bottom        (ifu_addr_ge_bottom[2]    ),
  .ifu_addr_ge_pmpaddr       (ifu_addr_ge_bottom[3]    ),
  .lsu_4k_cross              (lsu_4k_cross[3]          ),
  .lsu_acc_addr              (lsu_pmp_addr[31:0]       ),
  .lsu_addr_ge_bottom        (lsu_addr_ge_bottom[2]    ),
  .lsu_addr_ge_pmpaddr       (lsu_addr_ge_bottom[3]    ),
  .pmp_ifu_hit               (pmp_ifu_hit[3]           ),
  .pmp_lsu_hit               (pmp_lsu_hit[3]           ),
  .pmpaddr                   (pmpaddr3_value[25:0]     )
);















pa_pmp_comp_hit  x_pa_pmp_comp_hit_4 (
  .addr_match_mode           (regs_comp_addr_mode4[1:0]),
  .ifu_acc_addr              (ifu_pmp_addr[31:0]       ),
  .ifu_addr_ge_bottom        (ifu_addr_ge_bottom[3]    ),
  .ifu_addr_ge_pmpaddr       (ifu_addr_ge_bottom[4]    ),
  .lsu_4k_cross              (lsu_4k_cross[4]          ),
  .lsu_acc_addr              (lsu_pmp_addr[31:0]       ),
  .lsu_addr_ge_bottom        (lsu_addr_ge_bottom[3]    ),
  .lsu_addr_ge_pmpaddr       (lsu_addr_ge_bottom[4]    ),
  .pmp_ifu_hit               (pmp_ifu_hit[4]           ),
  .pmp_lsu_hit               (pmp_lsu_hit[4]           ),
  .pmpaddr                   (pmpaddr4_value[25:0]     )
);















pa_pmp_comp_hit  x_pa_pmp_comp_hit_5 (
  .addr_match_mode           (regs_comp_addr_mode5[1:0]),
  .ifu_acc_addr              (ifu_pmp_addr[31:0]       ),
  .ifu_addr_ge_bottom        (ifu_addr_ge_bottom[4]    ),
  .ifu_addr_ge_pmpaddr       (ifu_addr_ge_bottom[5]    ),
  .lsu_4k_cross              (lsu_4k_cross[5]          ),
  .lsu_acc_addr              (lsu_pmp_addr[31:0]       ),
  .lsu_addr_ge_bottom        (lsu_addr_ge_bottom[4]    ),
  .lsu_addr_ge_pmpaddr       (lsu_addr_ge_bottom[5]    ),
  .pmp_ifu_hit               (pmp_ifu_hit[5]           ),
  .pmp_lsu_hit               (pmp_lsu_hit[5]           ),
  .pmpaddr                   (pmpaddr5_value[25:0]     )
);















pa_pmp_comp_hit  x_pa_pmp_comp_hit_6 (
  .addr_match_mode           (regs_comp_addr_mode6[1:0]),
  .ifu_acc_addr              (ifu_pmp_addr[31:0]       ),
  .ifu_addr_ge_bottom        (ifu_addr_ge_bottom[5]    ),
  .ifu_addr_ge_pmpaddr       (ifu_addr_ge_bottom[6]    ),
  .lsu_4k_cross              (lsu_4k_cross[6]          ),
  .lsu_acc_addr              (lsu_pmp_addr[31:0]       ),
  .lsu_addr_ge_bottom        (lsu_addr_ge_bottom[5]    ),
  .lsu_addr_ge_pmpaddr       (lsu_addr_ge_bottom[6]    ),
  .pmp_ifu_hit               (pmp_ifu_hit[6]           ),
  .pmp_lsu_hit               (pmp_lsu_hit[6]           ),
  .pmpaddr                   (pmpaddr6_value[25:0]     )
);















pa_pmp_comp_hit  x_pa_pmp_comp_hit_7 (
  .addr_match_mode           (regs_comp_addr_mode7[1:0]),
  .ifu_acc_addr              (ifu_pmp_addr[31:0]       ),
  .ifu_addr_ge_bottom        (ifu_addr_ge_bottom[6]    ),
  .ifu_addr_ge_pmpaddr       (ifu_addr_ge_bottom[7]    ),
  .lsu_4k_cross              (lsu_4k_cross[7]          ),
  .lsu_acc_addr              (lsu_pmp_addr[31:0]       ),
  .lsu_addr_ge_bottom        (lsu_addr_ge_bottom[6]    ),
  .lsu_addr_ge_pmpaddr       (lsu_addr_ge_bottom[7]    ),
  .pmp_ifu_hit               (pmp_ifu_hit[7]           ),
  .pmp_lsu_hit               (pmp_lsu_hit[7]           ),
  .pmpaddr                   (pmpaddr7_value[25:0]     )
);






























































































































assign lsu_4k_cross[15:12] = 4'b0;
    assign lsu_4k_cross[11:8] = 4'b0;




endmodule