Skip to content

Commit

Permalink
merge PR #74,#77,#79
Browse files Browse the repository at this point in the history
  • Loading branch information
Mengyang He committed Apr 13, 2024
1 parent d08a02e commit dbc54d1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/akita_test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Akita Test

on: push
on: [push, pull_request]

jobs:
akitartm_compile:
Expand Down
2 changes: 1 addition & 1 deletion noc/networking/switching/endpoint/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (b Builder) Build(name string) *Comp {
fmt.Sprintf("%s.NetworkPort", ep.Name()))

for _, dp := range b.devicePorts {
ep.PlugIn(dp, 1)
ep.PlugIn(dp, ep.numInputChannels)
}

return ep
Expand Down
8 changes: 7 additions & 1 deletion noc/networking/switching/endpoint/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,17 +202,23 @@ func (c *Comp) recv() bool {
func (c *Comp) assemble() bool {
madeProgress := false

for e := c.assemblingMsgs.Front(); e != nil; e = e.Next() {
e := c.assemblingMsgs.Front()
for e != nil {
assemblingMsg := e.Value.(*msgToAssemble)

next := e.Next()

if assemblingMsg.numFlitArrived < assemblingMsg.numFlitRequired {
e = next
continue
}

c.assembledMsgs = append(c.assembledMsgs, assemblingMsg.msg)
c.assemblingMsgs.Remove(e)
delete(c.assemblingMsgTable, assemblingMsg.msg.Meta().ID)

e = next

// fmt.Printf("%.10f, %s, assembled, msg-%s\n",
// c.Engine.CurrentTime(), c.Name(), assemblingMsg.msg.Meta().ID)

Expand Down

0 comments on commit dbc54d1

Please sign in to comment.