Forum Discussion
Altera_Forum
Honored Contributor
20 years agocustom instruction 'done' signal
I am working with self timed circuits, in which i need to pick the end of a multicycle operation (implemented in custom logic) to initiate further actions. To accomplish this task, i need both result...
Altera_Forum
Honored Contributor
20 years agoI think the done signal from the custom instruction is only used at processor level. Firing the custom instruction will cause the processor to wait until the done signal is there. You can compare it with inserting waitstates for memory access.
If you need a lot of time in the custom instruction, it is better to move the functionality in a custom avalon slave, and poll the slave every now and then on a certain address to look at the state (or use an interrupt). This way, the processor can go one doing other things.