Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for interrupts #6

Open
shalan opened this issue Nov 27, 2023 · 2 comments
Open

Add support for interrupts #6

shalan opened this issue Nov 27, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@shalan
Copy link
Owner

shalan commented Nov 27, 2023

Add support for receiving interrupts from peripherals. This way, the DMAC can transfer data from FIFO enabled peripherals every time the fifo is full w/o the need for interrupting the CPU. We are going to refer to the FIFO data as a frame.

@shalan shalan added the enhancement New feature or request label Jun 15, 2024
@shalan shalan self-assigned this Jun 15, 2024
@shalan
Copy link
Owner Author

shalan commented Jun 15, 2024

  1. Add a new port PIRQ[3:0]
  2. Add a register that specifies the number of frames to be transferred before issuing a CPU interrupt.
  3. Add a frame counter; the done signal will be used to decrement this counter. The CPU interrupt is generated on done & (frame_counter == 0).
  4. The trigger field bits specify the PIRQ source. If zero, it is SW trigger.

@shalan
Copy link
Owner Author

shalan commented Jun 17, 2024

Implemented in 5b4ab25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant