Visible to Intel only — GUID: sam1411565462319
Ixiasoft
Visible to Intel only — GUID: sam1411565462319
Ixiasoft
5.6. ADC HAL Device Driver for Nios® Processor
The IP cores provide software files that define low-level access to the hardware. You can use the macros definition and functions in the software files to initialize the cores.
- altera_modular_adc_sequencer_regs.h—this file defines the register map for the sequencer core. It provides symbolic constants to access the low-level hardware.
- altera_modular_adc_sample_store_regs.h—this file defines the register for sample storage core. It provides symbolic constants to access the low-level hardware.
- altera_modular_adc.h or altera_modular_dual_adc.h—include this file into your application. It automatically includes the other header files and defines additional functions.
- altera_modular_adc.c or altera_modular_dual_adc.c—this file implements helper functions that are defined in the header file.
In the same design, there can only be a single type of IP core, either Modular ADC Core or Modular Dual ADC Core IP.
In Intel® Quartus® Prime Standard Edition software version 22.1, you need to apply the following software settings based on the IP core configuration (Core Variant).
- All instantiated IP core(s) apply Standard sequencer with external sample storage.
- Enable external_sample_storage in BSP Editor > BSP Driver tab.
- Instantiated IP cores have different Core Variant.
- Enable different_sample_storage in BSP Editor > BSP Driver tab.
- Modify alt_sys_init.c
- For Avalon-MM sample storage (_CORE_VARIANT = 0 or 1),
Change ALTERA_MODULAR_ADC_INSTANCE to ALTERA_MODULAR_ADC_INSTANCE_AVL_MEM
Change ALTERA_MODULAR_ADC_INIT to ALTERA_MODULAR_ADC_INIT_AVL_MEM - For external sample storage (_CORE_VARIANT = 2),
Change ALTERA_MODULAR_ADC_INSTANCE to ALTERA_MODULAR_ADC_INSTANCE_EXT
Change ALTERA_MODULAR_ADC_INIT to ALTERA_MODULAR_ADC_INIT_EXT
- For Avalon-MM sample storage (_CORE_VARIANT = 0 or 1),