Forum Discussion
Altera_Forum
Honored Contributor
19 years agoI hope not to be too much obvious...
--- Quote Start --- originally posted by acer_7@Feb 12 2007, 07:16 AM * first assumption is a memory location that is changed once the processing ends. the problem is the second processor can't read from the same memory the first processor is writing in. how can i make it using sopc?<div align='right'><{post_snapback}> (index.php?act=findpost&pid=21448)
--- quote end ---
--- Quote End --- You can set a flag in memory after finishing to write on it. For example, cpu_1 is writing whereas cpu_2 is doing something like "while(shared_memory->FLAG != AVALIABLE);". When cpu_1 finishs, it sets shared_memory->FLAG to AVALIABLE. Avalon Interface will warrant the shared memory flag won't be read and write in the same time by different processors. --- Quote Start --- originally posted by acer_7@Feb 12 2007, 07:16 AM * second assumption is: is there a ready-made function in nios ii functions that raises a flag when the operation ends and the second processor can see it while both running different programs ?
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=21448)
--- quote end ---
--- Quote End --- You can use interruptions to warn a cpu. PIO cores can solve it.