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

Overlapping opcodes for certain order of instructions not detected #19

Open
rob-sch opened this issue Mar 1, 2018 · 0 comments
Open

Comments

@rob-sch
Copy link

rob-sch commented Mar 1, 2018

If you define a R-Type instruction with the same opcode and funct3 fields as a previously defined I-Type instruction, the parse-opcode script will not recognise the overlapping.

Example opcodes file (named opcodes-fail), that produces the error:

foo1  rd rs1 imm12            14..12=0 6..2=2 1..0=3
bar1  rd rs1 rs2     31..25=1 14..12=0 6..2=2 1..0=3

bar0  rd rs1 rs2     31..25=1 14..12=1 6..2=2 1..0=3
foo0  rd rs1 imm12            14..12=1 6..2=2 1..0=3

Shell command:

 cat opcodes-fail | ./parse-opcodes -c

Output:

foo0 and bar0 overlap
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