From 14ba5f40bbd61a4a85054d789e0545a8b6e0e2ec Mon Sep 17 00:00:00 2001 From: DX990307 <101349164+DX990307@users.noreply.github.com> Date: Thu, 20 Jun 2024 11:37:13 +0800 Subject: [PATCH] modify control signal --- mem/mem/protocol.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/mem/mem/protocol.go b/mem/mem/protocol.go index bcfd70e..fe0a1ab 100644 --- a/mem/mem/protocol.go +++ b/mem/mem/protocol.go @@ -462,16 +462,6 @@ func (b ControlMsgBuilder) WithDrain(flag bool) ControlMsgBuilder { return b } -func (b ControlMsgBuilder) WithValid(flag bool) ControlMsgBuilder { - b.valid = flag - return b -} - -func (b ControlMsgBuilder) WithInvalid(flag bool) ControlMsgBuilder { - b.valid = flag - return b -} - func (b ControlMsgBuilder) WithEnable(flag bool) ControlMsgBuilder { b.enable = flag return b @@ -496,10 +486,6 @@ func (b *ControlMsgBuilder) checkconflits() { if b.disable == b.enable { panic("cannot set enable and disable with the same value") } - - if b.valid == b.invalid { - panic("cannot set valid and invalid with the same value") - } } // Build creates a new ControlMsg. @@ -517,8 +503,6 @@ func (b ControlMsgBuilder) Build() *ControlMsg { m.NotifyDone = b.notifyDone m.Pause = b.pause m.Drain = b.drain - m.Valid = b.valid - m.Invalid = b.invalid m.Enable = b.enable m.Disable = b.disable m.Reset = b.reset