- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is it right to do so?
if (rising_edge(CLK)) then
busy1 <= BUSY;
busy2 <= busy1;
if (busy1 = '1' and busy2 = '0') then
int <= '1';
else
int <= '0';
end if;
end if;
I thought to do (busy1 xor busy2) but this way I don't know on what edge was the interrupt - falling or rising.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Looks fine to me. You're looking for a rising edge on BUSY...
Cheers, Alex
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