URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 1350 |
Rev 1358 |
Line 44... |
Line 44... |
if (config.test.baseaddr)
|
if (config.test.baseaddr)
|
register_memoryarea(config.test.baseaddr, 256, 4, 0, test_read32, test_write32);
|
register_memoryarea(config.test.baseaddr, 256, 4, 0, test_read32, test_write32);
|
}
|
}
|
}
|
}
|
|
|
No newline at end of file
|
No newline at end of file
|
|
/*---------------------------------------------------[ Test configuration ]---*/
|
|
void test_enabled(union param_val val, void *dat)
|
|
{
|
|
config.test.enabled = val.int_val;
|
|
}
|
|
|
|
void test_baseaddr(union param_val val, void *dat)
|
|
{
|
|
config.test.baseaddr = val.addr_val;
|
|
}
|
|
|
|
void reg_test_sec(void)
|
|
{
|
|
struct config_section *sec = reg_config_sec("test", NULL, NULL);
|
|
|
|
reg_config_param(sec, "enabled", paramt_int, test_enabled);
|
|
reg_config_param(sec, "baseaddr", paramt_addr, test_baseaddr);
|
|
}
|
|
|
No newline at end of file
|
No newline at end of file
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.