Skip to content

Commit

Permalink
Fix SRSW atomic -> MRSW atomic
Browse files Browse the repository at this point in the history
  • Loading branch information
shilangyu committed Jan 28, 2024
1 parent b67841b commit af01b65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/transformations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,13 +248,13 @@ const transformations: Transformations = [
(t[0], x[0]) := WReg[i].read()
(t', x') := highest(t, x)
for j in 1..N
RReg[i, j].write((t', x'))
RReg[j, i].write((t', x'))
return x
func Write(v)
t := t + 1
for j in 1..N
WReg.write((t, v))
WReg[j].write((t, v))
`,
},
{
Expand Down

0 comments on commit af01b65

Please sign in to comment.