Skip to content

Commit

Permalink
move Add function so reco-check passes (workaround)
Browse files Browse the repository at this point in the history
  • Loading branch information
CampGareth committed Feb 19, 2018
1 parent 3662ca2 commit b51b84f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions addition/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ import (
axiprotocol "github.com/ReconfigureIO/sdaccel/axi/protocol"
)

// function to add two uint32s
func Add(a uint32, b uint32) uint32 {
return a + b
}

func Top(
// The first set of arguments to this function can be any number
// of Go primitive types and can be provided via `SetArg` on the host.
Expand Down Expand Up @@ -38,8 +43,3 @@ func Top(
aximemory.WriteUInt32(
memWriteAddr, memWriteData, memWriteResp, false, addr, val)
}

// function to add two uint32s
func Add(a uint32, b uint32) uint32 {
return a + b
}

0 comments on commit b51b84f

Please sign in to comment.