Knowledge Base Article
Error: Domain Error: Argument not in valid range while parameterizing Nios II/f Cores in Qsys
Description
The following error can occur in Qsys within the Quartus® Prime software while parameterizing a Nios II/f processor with a peripheral region set to 2 Gigabytes. The problem will persist even if the data cache is turned off.
Error: unsaved.: domain error: argument not in valid range
while executing
"expr int(ceil(log($NUMBER)/log(2)))"
(procedure "proc_num2sz" line 10)
invoked from within
"proc_num2sz $ioregionsize "
(procedure "sub_validate_check_module" line 774)
invoked from within
"sub_validate_check_module"
(procedure "validate_process" line 4)
invoked from within
"validate_process"
(procedure "validate" line 9)
invoked from within
"validate"
Resolution
If a peripheral region of 2 Gigabytes is required, check the box to “Use most-significant address bit in processor to bypass data cache”, map the peripherals in this region, and set the Peripheral Region size to None. Please note, a data cache of some size must be enabled to change the Peripheral Region size.
This problem is scheduled to be fixed is a future version of the Quartus® Prime software.