OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [stable_0_2_0_rc3/] [or1ksim/] [sim-config.c] - Diff between revs 1550 and 1555

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 1550 Rev 1555
Line 440... Line 440...
  reg_config_param(sec, "superscalar", paramt_int, cpu_superscalar);
  reg_config_param(sec, "superscalar", paramt_int, cpu_superscalar);
  reg_config_param(sec, "dependstats", paramt_int, cpu_dependstats);
  reg_config_param(sec, "dependstats", paramt_int, cpu_dependstats);
  reg_config_param(sec, "sbuf_len", paramt_int, cpu_sbuf_len);
  reg_config_param(sec, "sbuf_len", paramt_int, cpu_sbuf_len);
}
}
 
 
int is_power2 (int x) {
 
  while (!(x & 1))
 
    x >>= 1;
 
  return x == 1;
 
}
 
 
 
int log2 (int x) {
 
  int log=-1;
 
  while (x)
 
  {
 
    x >>= 1;
 
    log++;
 
  }
 
  return log;
 
}
 
 
 
void reg_config_secs(void)
void reg_config_secs(void)
{
{
  reg_config_param(reg_config_sec("base", NULL, NULL), "include", paramt_str,
  reg_config_param(reg_config_sec("base", NULL, NULL), "include", paramt_str,
                   base_include);
                   base_include);
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.