- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 and done signals to be returned from the custom instruction. I will be grateful if i am given to understand
1. how to receive the done signal into C program. 2. whether the done signal can be used to initiate further activities. 3. in an188.pdf, i cannot find the done signal in the multicycle operation list. 4. i cannot find any sample program that uses multicycle function (using clk, clk_en, start, done, dataa, datab, result). could you please privide me with one or with any other related resource.Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Add a 1-bit PIO to your system and feed the done signal into it. You can then either poll the bit or make it generate an irq. Banx.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I 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.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page