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

Fetch operator with opcode #3

Open
piranna opened this issue Mar 14, 2017 · 1 comment
Open

Fetch operator with opcode #3

piranna opened this issue Mar 14, 2017 · 1 comment

Comments

@piranna
Copy link
Owner

piranna commented Mar 14, 2017

Fetch the optional inmediate operator at the same time we search for the opcode to earn some CPU cycles, and ignore them in case they are not needed.

@piranna
Copy link
Owner Author

piranna commented Mar 15, 2017

Since all inmediate values fit under 5 or 10 bytes (except for br_table that are variable), and also they can have a variable length and it's easy to detect when it's needed more data, it could be used a standard bus width to comunicate with external off-the-shelf memories instead of use a custom one with non-power-of-two widths, reducing usage of FPGA resources and costs. varuint32 values need 5 bytes and varuint64 values require 10, so with a bus of 32 bits it could be possible to get varuint32 inmediates up to 21 bits with the operator, and with 64 bits it could be possible to get all varuint32 inmediates and the varuint64 inmediates up to 49 bits.

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