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

mpw-9: user id bits reversed in gl verilog and layout. #516

Closed
d-m-bailey opened this issue Dec 5, 2023 · 1 comment · Fixed by #518
Closed

mpw-9: user id bits reversed in gl verilog and layout. #516

d-m-bailey opened this issue Dec 5, 2023 · 1 comment · Fixed by #518

Comments

@d-m-bailey
Copy link
Contributor

d-m-bailey commented Dec 5, 2023

For example, the rtl parameter in caravel_core.v is set to

    parameter USER_PROJECT_ID = 32'h23117f7b;

which is 0010_0011_0001_0001_0111_1111_0111_1011
However, the gl verilog and layout have the bits reversed because the id is split into a python array which indexes from 0 at the left most bit. This results in the reversed value 1101_1110_1111_1110_1000_1000_1100_0100.

@RTimothyEdwards
Copy link
Contributor

So scripts/set_user_id.py just needs line 173 to be user_id_bits = '{0:032b}'.format(user_id_int)[::-1]?

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