Skip to content

Commit b51b84f

Browse files
committed
move Add function so reco-check passes (workaround)
1 parent 3662ca2 commit b51b84f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

addition/main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ import (
99
axiprotocol "github.com/ReconfigureIO/sdaccel/axi/protocol"
1010
)
1111

12+
// function to add two uint32s
13+
func Add(a uint32, b uint32) uint32 {
14+
return a + b
15+
}
16+
1217
func Top(
1318
// The first set of arguments to this function can be any number
1419
// of Go primitive types and can be provided via `SetArg` on the host.
@@ -38,8 +43,3 @@ func Top(
3843
aximemory.WriteUInt32(
3944
memWriteAddr, memWriteData, memWriteResp, false, addr, val)
4045
}
41-
42-
// function to add two uint32s
43-
func Add(a uint32, b uint32) uint32 {
44-
return a + b
45-
}

0 commit comments

Comments
 (0)