data/full_repos/permissive/418752214/C910_RTL_FACTORY/gen_rtl/ciu/rtl/ct_ebiu_lowpower.v
data/verilator_xmls/039d7e02-1a3b-4e67-8b03-867f43994c86.xml
module ct_ebiu_lowpower(
  clk_en,
  cpurst_b,
  ebiu_pad_cactive,
  ebiu_pad_csysack,
  ebiu_read_channel_no_op,
  ebiu_snoop_channel_no_op,
  ebiu_write_channel_no_op,
  ebiu_xx_no_op,
  forever_cpuclk,
  pad_ebiu_csysreq
);


input        clk_en;                  
input        cpurst_b;                
input        ebiu_read_channel_no_op; 
input        ebiu_snoop_channel_no_op; 
input        ebiu_write_channel_no_op; 
input        forever_cpuclk;          
input        pad_ebiu_csysreq;        
output       ebiu_pad_cactive;        
output       ebiu_pad_csysack;        
output       ebiu_xx_no_op;           


reg          ebiu_pad_csysack;        


wire         clk_en;                  
wire         cpurst_b;                
wire         ebiu_pad_cactive;        
wire         ebiu_read_channel_no_op; 
wire         ebiu_snoop_channel_no_op; 
wire         ebiu_write_channel_no_op; 
wire         ebiu_xx_no_op;           
wire         forever_cpuclk;          
wire         pad_ebiu_csysreq;        





assign ebiu_xx_no_op = ebiu_write_channel_no_op & ebiu_snoop_channel_no_op & ebiu_read_channel_no_op;




assign ebiu_pad_cactive = 1'b1;

always@(posedge forever_cpuclk or negedge cpurst_b)
begin
  if(~cpurst_b)
    ebiu_pad_csysack <= 1'b1;
  else if(clk_en)
  begin
    if(~pad_ebiu_csysreq)
      ebiu_pad_csysack <= 1'b0;
    else
      ebiu_pad_csysack <= 1'b1;
  end
end



endmodule
module ct_ebiu_lowpower(
  clk_en,
  cpurst_b,
  ebiu_pad_cactive,
  ebiu_pad_csysack,
  ebiu_read_channel_no_op,
  ebiu_snoop_channel_no_op,
  ebiu_write_channel_no_op,
  ebiu_xx_no_op,
  forever_cpuclk,
  pad_ebiu_csysreq
);



input        clk_en;                  
input        cpurst_b;                
input        ebiu_read_channel_no_op; 
input        ebiu_snoop_channel_no_op; 
input        ebiu_write_channel_no_op; 
input        forever_cpuclk;          
input        pad_ebiu_csysreq;        
output       ebiu_pad_cactive;        
output       ebiu_pad_csysack;        
output       ebiu_xx_no_op;           


reg          ebiu_pad_csysack;        


wire         clk_en;                  
wire         cpurst_b;                
wire         ebiu_pad_cactive;        
wire         ebiu_read_channel_no_op; 
wire         ebiu_snoop_channel_no_op; 
wire         ebiu_write_channel_no_op; 
wire         ebiu_xx_no_op;           
wire         forever_cpuclk;          
wire         pad_ebiu_csysreq;        





assign ebiu_xx_no_op = ebiu_write_channel_no_op & ebiu_snoop_channel_no_op & ebiu_read_channel_no_op;




assign ebiu_pad_cactive = 1'b1;

always@(posedge forever_cpuclk or negedge cpurst_b)
begin
  if(~cpurst_b)
    ebiu_pad_csysack <= 1'b1;
  else if(clk_en)
  begin
    if(~pad_ebiu_csysreq)
      ebiu_pad_csysack <= 1'b0;
    else
      ebiu_pad_csysack <= 1'b1;
  end
end



endmodule