data/full_repos/permissive/418750043/C906_RTL_FACTORY/gen_rtl/cpu/rtl/aq_sysio_kid.v
1: b"%Error: data/full_repos/permissive/418750043/C906_RTL_FACTORY/gen_rtl/cpu/rtl/aq_sysio_kid.v:98: Cannot find file containing module: 'gated_clk_cell'\ngated_clk_cell  x_sysio_kid_gated_clk (\n^~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/418750043/C906_RTL_FACTORY/gen_rtl/cpu/rtl,data/full_repos/permissive/418750043/gated_clk_cell\n             data/full_repos/permissive/418750043/C906_RTL_FACTORY/gen_rtl/cpu/rtl,data/full_repos/permissive/418750043/gated_clk_cell.v\n             data/full_repos/permissive/418750043/C906_RTL_FACTORY/gen_rtl/cpu/rtl,data/full_repos/permissive/418750043/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/418750043/C906_RTL_FACTORY/gen_rtl/cpu/rtl/aq_sysio_kid.v:138: Cannot find file containing module: 'gated_clk_cell'\ngated_clk_cell  x_sysio_kid_int_gated_clk (\n^~~~~~~~~~~~~~\n%Error: Exiting due to 2 error(s)\n"
module aq_sysio_kid(
  apb_clk_en,
  axim_clk_en,
  clint_core_ms_int,
  clint_core_mt_int,
  clint_core_ss_int,
  clint_core_st_int,
  core_pad_lpmd_b,
  core_sysio_lpmd_b,
  cpurst_b,
  forever_cpuclk,
  pad_yy_icg_scan_en,
  plic_core_me_int,
  plic_core_se_int,
  sysio_core_hartid,
  sysio_core_me_int,
  sysio_core_ms_int,
  sysio_core_mt_int,
  sysio_core_se_int,
  sysio_core_ss_int,
  sysio_core_st_int
);


input          apb_clk_en;           
input          axim_clk_en;          
input          clint_core_ms_int;    
input          clint_core_mt_int;    
input          clint_core_ss_int;    
input          clint_core_st_int;    
input   [1:0]  core_sysio_lpmd_b;    
input          cpurst_b;             
input          forever_cpuclk;       
input          pad_yy_icg_scan_en;   
input          plic_core_me_int;     
input          plic_core_se_int;     
output  [1:0]  core_pad_lpmd_b;      
output  [2:0]  sysio_core_hartid;    
output         sysio_core_me_int;    
output         sysio_core_ms_int;    
output         sysio_core_mt_int;    
output         sysio_core_se_int;    
output         sysio_core_ss_int;    
output         sysio_core_st_int;    


reg            clint_core_ms_int_cpu; 
reg            clint_core_mt_int_cpu; 
reg            clint_core_ss_int_cpu; 
reg            clint_core_st_int_cpu; 
reg     [1:0]  core_pad_lpmd_b;      
reg            plic_core_me_int_cpu; 
reg            plic_core_se_int_cpu; 


wire           apb_clk_en;           
wire           axim_clk_en;          
wire           clint_core_ms_int;    
wire           clint_core_mt_int;    
wire           clint_core_ss_int;    
wire           clint_core_st_int;    
wire    [1:0]  core_sysio_lpmd_b;    
wire           cpurst_b;             
wire           forever_cpuclk;       
wire           kid_int_clk;          
wire           kid_int_clk_en;       
wire           pad_yy_icg_scan_en;   
wire           plic_core_me_int;     
wire           plic_core_se_int;     
wire           sysio_clk_en;         
wire    [2:0]  sysio_core_hartid;    
wire           sysio_core_me_int;    
wire           sysio_core_ms_int;    
wire           sysio_core_mt_int;    
wire           sysio_core_se_int;    
wire           sysio_core_ss_int;    
wire           sysio_core_st_int;    
wire           sysio_kid_clk;        



assign sysio_clk_en = axim_clk_en;

gated_clk_cell  x_sysio_kid_gated_clk (
  .clk_in             (forever_cpuclk    ),
  .clk_out            (sysio_kid_clk     ),
  .external_en        (1'b0              ),
  .global_en          (1'b1              ),
  .local_en           (sysio_clk_en      ),
  .module_en          (1'b0              ),
  .pad_yy_icg_scan_en (pad_yy_icg_scan_en)
);










always @(posedge sysio_kid_clk or negedge cpurst_b)
begin
  if (!cpurst_b)
  begin
    core_pad_lpmd_b[1:0] <= 2'b11;
  end
  else if (axim_clk_en)
  begin
    core_pad_lpmd_b[1:0] <= core_sysio_lpmd_b[1:0];
  end
end








assign kid_int_clk_en = apb_clk_en;

gated_clk_cell  x_sysio_kid_int_gated_clk (
  .clk_in             (forever_cpuclk    ),
  .clk_out            (kid_int_clk       ),
  .external_en        (1'b0              ),
  .global_en          (1'b1              ),
  .local_en           (kid_int_clk_en    ),
  .module_en          (1'b0              ),
  .pad_yy_icg_scan_en (pad_yy_icg_scan_en)
);









always @(posedge kid_int_clk or negedge cpurst_b)
begin
  if (!cpurst_b)
  begin
    plic_core_me_int_cpu  <= 1'b0; 
    plic_core_se_int_cpu  <= 1'b0; 
    clint_core_ms_int_cpu <= 1'b0;
    clint_core_ss_int_cpu <= 1'b0;
    clint_core_mt_int_cpu <= 1'b0;
    clint_core_st_int_cpu <= 1'b0; 
  end
  else if (apb_clk_en)
  begin
    plic_core_me_int_cpu <= plic_core_me_int;
    plic_core_se_int_cpu <= plic_core_se_int;
    clint_core_ms_int_cpu <= clint_core_ms_int;
    clint_core_ss_int_cpu <= clint_core_ss_int;
    clint_core_mt_int_cpu <= clint_core_mt_int;
    clint_core_st_int_cpu <= clint_core_st_int;
  end
end

assign sysio_core_me_int =  plic_core_me_int_cpu;
assign sysio_core_se_int =  plic_core_se_int_cpu;
assign sysio_core_ms_int = clint_core_ms_int_cpu;
assign sysio_core_ss_int = clint_core_ss_int_cpu;
assign sysio_core_mt_int = clint_core_mt_int_cpu;
assign sysio_core_st_int = clint_core_st_int_cpu;

assign sysio_core_hartid[2:0] = 3'b0;



endmodule
module aq_sysio_kid(
  apb_clk_en,
  axim_clk_en,
  clint_core_ms_int,
  clint_core_mt_int,
  clint_core_ss_int,
  clint_core_st_int,
  core_pad_lpmd_b,
  core_sysio_lpmd_b,
  cpurst_b,
  forever_cpuclk,
  pad_yy_icg_scan_en,
  plic_core_me_int,
  plic_core_se_int,
  sysio_core_hartid,
  sysio_core_me_int,
  sysio_core_ms_int,
  sysio_core_mt_int,
  sysio_core_se_int,
  sysio_core_ss_int,
  sysio_core_st_int
);



input          apb_clk_en;           
input          axim_clk_en;          
input          clint_core_ms_int;    
input          clint_core_mt_int;    
input          clint_core_ss_int;    
input          clint_core_st_int;    
input   [1:0]  core_sysio_lpmd_b;    
input          cpurst_b;             
input          forever_cpuclk;       
input          pad_yy_icg_scan_en;   
input          plic_core_me_int;     
input          plic_core_se_int;     
output  [1:0]  core_pad_lpmd_b;      
output  [2:0]  sysio_core_hartid;    
output         sysio_core_me_int;    
output         sysio_core_ms_int;    
output         sysio_core_mt_int;    
output         sysio_core_se_int;    
output         sysio_core_ss_int;    
output         sysio_core_st_int;    


reg            clint_core_ms_int_cpu; 
reg            clint_core_mt_int_cpu; 
reg            clint_core_ss_int_cpu; 
reg            clint_core_st_int_cpu; 
reg     [1:0]  core_pad_lpmd_b;      
reg            plic_core_me_int_cpu; 
reg            plic_core_se_int_cpu; 


wire           apb_clk_en;           
wire           axim_clk_en;          
wire           clint_core_ms_int;    
wire           clint_core_mt_int;    
wire           clint_core_ss_int;    
wire           clint_core_st_int;    
wire    [1:0]  core_sysio_lpmd_b;    
wire           cpurst_b;             
wire           forever_cpuclk;       
wire           kid_int_clk;          
wire           kid_int_clk_en;       
wire           pad_yy_icg_scan_en;   
wire           plic_core_me_int;     
wire           plic_core_se_int;     
wire           sysio_clk_en;         
wire    [2:0]  sysio_core_hartid;    
wire           sysio_core_me_int;    
wire           sysio_core_ms_int;    
wire           sysio_core_mt_int;    
wire           sysio_core_se_int;    
wire           sysio_core_ss_int;    
wire           sysio_core_st_int;    
wire           sysio_kid_clk;        



assign sysio_clk_en = axim_clk_en;

gated_clk_cell  x_sysio_kid_gated_clk (
  .clk_in             (forever_cpuclk    ),
  .clk_out            (sysio_kid_clk     ),
  .external_en        (1'b0              ),
  .global_en          (1'b1              ),
  .local_en           (sysio_clk_en      ),
  .module_en          (1'b0              ),
  .pad_yy_icg_scan_en (pad_yy_icg_scan_en)
);










always @(posedge sysio_kid_clk or negedge cpurst_b)
begin
  if (!cpurst_b)
  begin
    core_pad_lpmd_b[1:0] <= 2'b11;
  end
  else if (axim_clk_en)
  begin
    core_pad_lpmd_b[1:0] <= core_sysio_lpmd_b[1:0];
  end
end








assign kid_int_clk_en = apb_clk_en;

gated_clk_cell  x_sysio_kid_int_gated_clk (
  .clk_in             (forever_cpuclk    ),
  .clk_out            (kid_int_clk       ),
  .external_en        (1'b0              ),
  .global_en          (1'b1              ),
  .local_en           (kid_int_clk_en    ),
  .module_en          (1'b0              ),
  .pad_yy_icg_scan_en (pad_yy_icg_scan_en)
);









always @(posedge kid_int_clk or negedge cpurst_b)
begin
  if (!cpurst_b)
  begin
    plic_core_me_int_cpu  <= 1'b0; 
    plic_core_se_int_cpu  <= 1'b0; 
    clint_core_ms_int_cpu <= 1'b0;
    clint_core_ss_int_cpu <= 1'b0;
    clint_core_mt_int_cpu <= 1'b0;
    clint_core_st_int_cpu <= 1'b0; 
  end
  else if (apb_clk_en)
  begin
    plic_core_me_int_cpu <= plic_core_me_int;
    plic_core_se_int_cpu <= plic_core_se_int;
    clint_core_ms_int_cpu <= clint_core_ms_int;
    clint_core_ss_int_cpu <= clint_core_ss_int;
    clint_core_mt_int_cpu <= clint_core_mt_int;
    clint_core_st_int_cpu <= clint_core_st_int;
  end
end

assign sysio_core_me_int =  plic_core_me_int_cpu;
assign sysio_core_se_int =  plic_core_se_int_cpu;
assign sysio_core_ms_int = clint_core_ms_int_cpu;
assign sysio_core_ss_int = clint_core_ss_int_cpu;
assign sysio_core_mt_int = clint_core_mt_int_cpu;
assign sysio_core_st_int = clint_core_st_int_cpu;

assign sysio_core_hartid[2:0] = 3'b0;



endmodule