Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Minor changes in formats
  • Loading branch information
syifan authored Nov 27, 2023
1 parent ae39027 commit f3b0b8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion timing/cu/issuearbiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ func (a *IssueArbiter) Arbitrate(
}
a.moveToNextSIMD(wfPools)
}
if len(wfPools[a.lastSIMDID].wfs) != 0 {

if len(wfPools[a.lastSIMDID].wfs) != 0 {
typeMask := make([]bool, 7)
wfPool := wfPools[a.lastSIMDID]
for _, wf := range wfPool.wfs {
Expand All @@ -49,6 +49,7 @@ func (a *IssueArbiter) Arbitrate(
}
}
}

if a.lastSIMDID == originalSIMDID {
break
}
Expand Down
1 change: 0 additions & 1 deletion timing/cu/vectormemoryunit.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ func (u *VectorMemoryUnit) insertTransactionToPipeline(
func (u *VectorMemoryUnit) execute(now sim.VTimeInSec) (madeProgress bool) {
item := u.postInstructionPipelineBuffer.Peek()
if item == nil {
u.postInstructionPipelineBuffer.Pop()
return false
}

Expand Down

0 comments on commit f3b0b8c

Please sign in to comment.