Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)

triggering nios

Altera_Forum
Honored Contributor II
1,323 Views

Hi guys 

 

I have some code that captures data from my dut. I need to load command instructions to memory so that my dut knows what to do. 

 

I was hoping to use start nios, have it monitor a certain on-chip memory address and if that address contains value X, trigger the capture. 

 

While the nios is monitoring that address, i want to use system console to use master_write_from_file to load up memory. once that write_from_file is complete, i want to use master_write_32 to issue trigger word and kick off capture. 

 

I am successful at using master_write_from file to both onchip mem and some external/onboard sram. verified write and readback 

 

I am successful at using master_write_32 to trigger the nios, and can write a few commands and then trigger the nios as well. 

 

My issue comes when i try to use master_write_from_file and then trigger. my code just freezes up. 

 

Is there some kind of contention between the nios monitoring the trigger address and trying to write a big chunk of memory with the master_write_from_file? 

 

I have made sure that the addresses do not overlap and even used that external mem just in case it was just the onchip mem limitation. 

 

Any ideas of why this is happening? 

 

Is there any other way to either trigger the nios or pause it while the big load is read. i have tried the "stop processor" and "run processor" commands from sys console and that doesnt seem to help 

 

thanks guys!
0 Kudos
0 Replies
Reply