Forum Discussion
Altera_Forum
Honored Contributor
20 years ago<div class='quotetop'>QUOTE </div>
--- Quote Start --- my custom logic is made from hdls, schematics mixed... can these be supported by the interface with custom logic option?[/b] --- Quote End --- Base on my study, the component editor can't support schematics file. <div class='quotetop'>QUOTE </div> --- Quote Start --- How about software files? any register files needed? or only write direct to the address?[/b] --- Quote End --- In component editor, you can integrate software files and register files with component IP, then in NiosII IDE, you can use them directly. You should write register files by yourself. For example: #ifndef __ALTERA_AVALON_PIO_REGS_H__# define __ALTERA_AVALON_PIO_REGS_H__ # include <io.h> # define IOADDR_ALTERA_AVALON_PIO_DATA(base) __IO_CALC_ADDRESS_NATIVE(base, 0)# define IORD_ALTERA_AVALON_PIO_DATA(base) IORD(base, 0) # define IOWR_ALTERA_AVALON_PIO_DATA(base, data) IOWR(base, 0, data) # define IOADDR_ALTERA_AVALON_PIO_DIRECTION(base) __IO_CALC_ADDRESS_NATIVE(base, 1)# define IORD_ALTERA_AVALON_PIO_DIRECTION(base) IORD(base, 1) # define IOWR_ALTERA_AVALON_PIO_DIRECTION(base, data) IOWR(base, 1, data) # define IOADDR_ALTERA_AVALON_PIO_IRQ_MASK(base) __IO_CALC_ADDRESS_NATIVE(base, 2)# define IORD_ALTERA_AVALON_PIO_IRQ_MASK(base) IORD(base, 2) # define IOWR_ALTERA_AVALON_PIO_IRQ_MASK(base, data) IOWR(base, 2, data) # define IOADDR_ALTERA_AVALON_PIO_EDGE_CAP(base) __IO_CALC_ADDRESS_NATIVE(base, 3)# define IORD_ALTERA_AVALON_PIO_EDGE_CAP(base) IORD(base, 3) # define IOWR_ALTERA_AVALON_PIO_EDGE_CAP(base, data) IOWR(base, 3, data) # endif /* __ALTERA_AVALON_PIO_REGS_H__ */ FYI. regards, David