Visible to Intel only — GUID: vhm1740981815797
Ixiasoft
Visible to Intel only — GUID: vhm1740981815797
Ixiasoft
4.3.2.1.3. CLIC with Number of CLIC interrupt levels – 1 Option
While the Number of CLIC interrupt levels represents a conventional approach of dedicated register files for each level, Number of CLIC interrupt levels – 1 offers an optimized approach that efficiently uses memory blocks. The Number of CLIC interrupt levels approach requires an odd number of register files. Implementing Number of CLIC interrupt levels – 1 approach can reduce it by 1 to an even number, which fits perfectly into memory block as such:
- Eight register file sets into M20K
- Four register file sets into M9K
Similar as the example from before, if the processor supports five interrupt levels, you have:
- Application level 0
- Interrupt level 63, 127, 191 and 255
When Shadow Register Files is configured to Number of CLIC interrupt levels – 1 , three SRFs and one GPR are used. There are 4 register sets, which collates to “5 minus 1 = 4” concept. Nios V processor allocates shadow register set to pre-empting interrupt handlers only using “first come first serve” basis starting from SRF1, while initial interrupt and Application Level share a single GPR.
Shadow Register Implementation | Number of CLIC Interrupt Levels | Number of SRF | Number of GPR | Total Register Sets | Number of M9K Needed |
---|---|---|---|---|---|
Number of CLIC interrupt levels | 5 | 4 | 1 | 5 | 2 M9K |
Number of CLIC interrupt levels - 1 | 5 | 3 | 1 | 4 | 1 M9K |