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

Missing IO ports #7

Open
sameo opened this issue Mar 19, 2021 · 0 comments
Open

Missing IO ports #7

sameo opened this issue Mar 19, 2021 · 0 comments

Comments

@sameo
Copy link
Collaborator

sameo commented Mar 19, 2021

The do-core architecture does not support IO ports.
This is needed for implementing a debug port.

Although x86 has specific instructions (inb, outb) for handling IO port based communication, but this is mostly for legacy reasons.

Another option is to do memory mapped IO ports, where a small, fixed memory region is dedicated to IO port devices.

I propose we go with the latter option and dedicate 32 bytes of the do-core address space for that purpose. With that approach, all devices are memory mapped and don't need a special set of instructions to be accessed.

The 32 bytes would be in the `[0x0 0x1f] range in memory and would represent 16 2 bytes wide ports.

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

No branches or pull requests

1 participant