Skip to content

Commit

Permalink
Fix coflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
syifan committed Nov 25, 2024
1 parent 10f95c0 commit 618ae58
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 865 deletions.
4 changes: 0 additions & 4 deletions mem/cache/writearound/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@ var _ = Describe("Cache", func() {
cuPort.EXPECT().PeekOutgoing().Return(nil).AnyTimes()

engine = sim.NewSerialEngine()
<<<<<<< HEAD
connection = sim.NewDirectConnection("Conn", engine, 1*sim.GHz)
=======
connection = directconnection.MakeBuilder().WithEngine(engine).WithFreq(1 * sim.GHz).Build("Conn")
>>>>>>> origin/v4
dram = idealmemcontroller.MakeBuilder().
WithEngine(engine).
WithNewStorage(4 * mem.GB).
Expand Down
8 changes: 0 additions & 8 deletions mem/cache/writeevict/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,11 @@ var _ = Describe("Cache", func() {
cuPort.EXPECT().PeekOutgoing().Return(nil).AnyTimes()

engine = sim.NewSerialEngine()
<<<<<<< HEAD
connection = sim.NewDirectConnection("Conn", engine, 1*sim.GHz)
=======
connection = directconnection.MakeBuilder().WithEngine(engine).WithFreq(1 * sim.GHz).Build("Conn")
>>>>>>> origin/v4
dram = idealmemcontroller.MakeBuilder().
WithEngine(engine).
WithNewStorage(4 * mem.GB).
Build("DRAM")
<<<<<<< HEAD

=======
>>>>>>> origin/v4
lowModuleFinder = &mem.SingleLowModuleFinder{
LowModule: dram.GetPortByName("Top"),
}
Expand Down
4 changes: 0 additions & 4 deletions mem/cache/writethrough/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@ var _ = Describe("Cache", func() {
cuPort.EXPECT().PeekOutgoing().Return(nil).AnyTimes()

engine = sim.NewSerialEngine()
<<<<<<< HEAD
connection = sim.NewDirectConnection("Conn", engine, 1*sim.GHz)
=======
connection = directconnection.MakeBuilder().WithEngine(engine).WithFreq(1 * sim.GHz).Build("Conn")
>>>>>>> origin/v4
dram = idealmemcontroller.MakeBuilder().
WithEngine(engine).
WithNewStorage(4 * mem.GB).
Expand Down
32 changes: 0 additions & 32 deletions mem/idealmemcontroller/idealmemcontroller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,6 @@ var _ = Describe("Ideal Memory Controller", func() {
mockCtrl.Finish()
})

<<<<<<< HEAD
// It("should stall if too many transactions are running", func() {
// memController.currNumTransaction = 8

// madeProgress := memController.Tick(10)

// Expect(madeProgress).To(BeFalse())
// })

=======
>>>>>>> origin/v4
It("should process read request", func() {
readReq := mem.ReadReqBuilder{}.
WithDst(memController.topPort).
Expand All @@ -61,15 +50,7 @@ var _ = Describe("Ideal Memory Controller", func() {
engine.EXPECT().
Schedule(gomock.AssignableToTypeOf(&readRespondEvent{}))

<<<<<<< HEAD
madeProgress := memController.Tick(10)
// for i := 10; i < 20; i++ {
// madeProgress := memController.Tick(sim.VTimeInSec(i))
// Expect(madeProgress).To(BeTrue())
// }
=======
madeProgress := memController.Tick()
>>>>>>> origin/v4

Expect(madeProgress).To(BeTrue())
})
Expand Down Expand Up @@ -108,11 +89,6 @@ var _ = Describe("Ideal Memory Controller", func() {
engine.EXPECT().CurrentTime().Return(sim.VTimeInSec(10))

memController.Handle(event)
<<<<<<< HEAD

// Expect(memController.currNumTransaction).To(Equal(0))
=======
>>>>>>> origin/v4
})

It("should retry read if send DataReady failed", func() {
Expand Down Expand Up @@ -144,10 +120,6 @@ var _ = Describe("Ideal Memory Controller", func() {
WithData(data).
Build()
event := newWriteRespondEvent(11, memController, writeReq)
<<<<<<< HEAD
// memController.currNumTransaction = 1
=======
>>>>>>> origin/v4

engine.EXPECT().Schedule(gomock.Any())
port.EXPECT().Send(gomock.AssignableToTypeOf(&mem.WriteDoneRsp{}))
Expand All @@ -157,10 +129,6 @@ var _ = Describe("Ideal Memory Controller", func() {

retData, _ := memController.Storage.Read(0, 4)
Expect(retData).To(Equal([]byte{1, 2, 3, 4}))
<<<<<<< HEAD
// Expect(memController.currNumTransaction).To(Equal(0))
=======
>>>>>>> origin/v4
})

It("should handle write respond event", func() {
Expand Down
121 changes: 0 additions & 121 deletions mem/vm/gmmu/builder.go

This file was deleted.

Loading

0 comments on commit 618ae58

Please sign in to comment.