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 tags to all instructions also make them to clearly express their purpose #9

Closed
wants to merge 2 commits into from

Conversation

Sanket-0510
Copy link

Implements #4 #5

I have defined a helper function name extension in riscv_insts_helper and have included this function to check the extensions of the functions in riscv_insts_*.sail right now it covers "A" and "C" extensions but I will add others also after the feedback.

@ThinkOpenly tell me if I am on right track or not, I'll do the required changes in further commits.

ThinkOpenly and others added 2 commits November 10, 2023 13:26
In `model/riscv_insts_zfa.sail`, there are quite a few cases where
spaces (`spc()`) are utilized instead of separators (`sep()`) between operands:
```
mapping clause assembly = RISCV_FMAXM_D(rs2, rs1, rd)
  <-> "fmaxm.d" ^ spc() ^ freg_name(rd)
                ^ spc() ^ freg_name(rs1)
                ^ spc() ^ freg_name(rs2)
```

In the assembly representation, spaces are between the mnemonic and
its operands, and separators are between operands.

Fix the errant cases.

Signed-off-by: Paul A. Clarke <pclarke@ventanamicro.com>
@Sanket-0510 Sanket-0510 changed the base branch from main to JSON January 20, 2024 18:52
@Sanket-0510
Copy link
Author

Sanket-0510 commented Jan 20, 2024

@ThinkOpenly will you please resolve the conflicts and also review the extension function, I have added function into seperate file but I guess we can define the function in riscv_sys_regs.sail only.

correction - I missed out on the defined function, as I was working on the main branch only no need to define that again.

@Sanket-0510 Sanket-0510 force-pushed the main branch 2 times, most recently from 9a5d290 to 8a53dd0 Compare January 20, 2024 21:12
@Sanket-0510
Copy link
Author

I have made the required changes through PR #10 which right now covers check for extension C. In this PR, Facing conflicts as I overlooked the JSON branch. closing this PR.

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

Successfully merging this pull request may close these issues.

2 participants