Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Change SAIL code based on Ken's suggestion
Browse files Browse the repository at this point in the history
Made it so the read of rs1 is conditional based on rs2. This should remove the syntactic depency on rs1 in those cases.

Signed-off-by: Brendan Sweeney <brs@eecs.berkeley.edu>
  • Loading branch information
mehnadnerd authored and ptomsich committed Sep 5, 2023
1 parent 60ffef2 commit ae93493
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions zicondops.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,9 @@ Furthermore, implementations can predict the condition just as they might for br
SAIL code::
[source,sail]
--
let value = X(rs1);
let condition = X(rs2);
result : xlenbits = if (condition == zeros()) then zeros()
else value;
else X(rs1);
X(rd) = result;
--

Expand Down Expand Up @@ -153,10 +152,9 @@ Furthermore, implementations can predict the condition just as they might for br
SAIL code::
[source,sail]
--
let value = X(rs1);
let condition = X(rs2);
result : xlenbits = if (condition != zeros()) then zeros()
else value;
else X(rs1);
X(rd) = result;
--

Expand Down

0 comments on commit ae93493

Please sign in to comment.