Skip to content

Commit

Permalink
update flit
Browse files Browse the repository at this point in the history
  • Loading branch information
Mengyang He committed Mar 28, 2024
1 parent c05b8c8 commit 24eb7fc
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions noc/messaging/flit.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,11 @@ func (f *Flit) Meta() *sim.MsgMeta {

// FlitBuilder can build flits
type FlitBuilder struct {
sendTime sim.VTimeInSec
src, dst sim.Port
msg sim.Msg
seqID, numFlitInMsg int
}

// WithSendTime sets the send time of the request to build
func (b FlitBuilder) WithSendTime(t sim.VTimeInSec) FlitBuilder {
b.sendTime = t
return b
}

// WithSrc sets the src of the request to send
func (b FlitBuilder) WithSrc(src sim.Port) FlitBuilder {
b.src = src
Expand Down Expand Up @@ -70,7 +63,6 @@ func (b FlitBuilder) Build() *Flit {
f.ID = fmt.Sprintf("flit-%d-msg-%s-%s",
b.seqID, b.msg.Meta().ID,
sim.GetIDGenerator().Generate())
f.SendTime = b.sendTime
f.Src = b.src
f.Dst = b.dst
f.Msg = b.msg
Expand Down

0 comments on commit 24eb7fc

Please sign in to comment.