Skip to content

Adding Custom On-Chip Hardware Alongside Neorv32 #689

Answered by stnolting
DS-567 asked this question in Q&A
Discussion options

You must be logged in to vote

In the above code you have given for the interrupt triggering the DMA, can the software for setting up / enabling the external interrupt requests also be done in hardware like I am doing with the automatic DMA transfer instead of having to do it inside the main() function?

In theory this should work. Just enable the according channel right during the reset pulse:

irq_enable <= (others => '0');

But beware, this is not the intended functionality and I have never tested that 😅

asm volatile ("fence"); // make sure main memory is sync with d-cache

Also can this line be removed or what does it do exactly?

Where did y…

Replies: 1 comment 27 replies

Comment options

You must be logged in to vote
27 replies
@DS-567
Comment options

@stnolting
Comment options

@DS-567
Comment options

@stnolting
Comment options

Answer selected by DS-567
@DS-567
Comment options

@stnolting
Comment options

@DS-567
Comment options

@stnolting
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants