184.108.40.206. Specify Base Addresses and Interrupt Request Priorities
To specify how the components added in the design to interact to form a system, you need assign base addresses for each slave component, and assign interrupt request (IRQ) priorities for the JTAG UART and the interval timer.
provides the Assign Base Addresses command which makes assigning component base addresses easy. For many systems, including this design example, Assign Base Addresses is adequate. However, you can adjust the base addresses to suit your needs. Below are some guidelines for assigning base addresses:
- processor cores can address a 31-bit address span. You must assign base address between 0x00000000 and 0x7FFFFFFF.
Note: The Use most-significant address bit in processor to bypass data cache option is enable by default. If disabled, the processor cores supports full 32-bit address.
- programs use symbolic constants to refer to addresses. You do not have to choose address values that are easy to remember.
- Address values that differentiate components with only a one-bit address difference produce more efficient hardware. You do not have to compact all base addresses into the smallest possible address range, because this can create less efficient hardware.
- does not attempt to align separate memory components in a contiguous memory range. For example, if you want an on-chip RAM and an off-chip RAM to be addressable as one contiguous memory range, you must explicitly assign base addresses.
also provides an Assign Interrupt Numbers command which connects IRQ signals to produce valid hardware results. However, assigning IRQs effectively requires an understanding of how software responds to them. Because does not know the software behavior, cannot make educated guesses about the best IRQ assignment.
The HAL interprets low IRQ values as higher priority. The timer component must have the highest IRQ priority to maintain the accuracy of the system clock tick.
To assign appropriate base addresses and IRQs, perform the following steps:
- On the System menu, click Assign Base Addresses to make assign functional base addresses to each component in the system. Values in the Base and End columns might change, reflecting the addresses that reassigned.
- In the IRQ column, connect the processor to the JTAG UART and interval timer.
- Click the IRQ value for the jtag_uart component to select it.
- Type 16 and press Enter to assign a new IRQ value.
- Click the IRQ value for the sys_clk_timer component to select it.
- Type 1 and press Enter to assign a new IRQ value.