Skip to content

Commit

Permalink
Merge pull request #19 from ReconfigureIO/fix/addition-reco-check
Browse files Browse the repository at this point in the history
move Add function so reco-check passes (workaround)
  • Loading branch information
CampGareth authored Feb 19, 2018
2 parents 3662ca2 + b51b84f commit 33e6ccb
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 33e6ccb

Please sign in to comment.