diff --git a/test/aie2xclbin/buffers_xclbin.mlir b/test/aie2xclbin/buffers_xclbin.mlir index 88d6ba9d4f..a1cd53df67 100644 --- a/test/aie2xclbin/buffers_xclbin.mlir +++ b/test/aie2xclbin/buffers_xclbin.mlir @@ -71,6 +71,13 @@ // CHECK: "name": "bo4", // CHECK: "offset": "0x34", // CHECK: "type": "void*" +// CHECK: }, +// CHECK: { +// CHECK: "address-qualifier": "GLOBAL", +// CHECK: "memory-connection": "HOST", +// CHECK: "name": "bo5", +// CHECK: "offset": "0x3c", +// CHECK: "type": "void*" // CHECK: } // CHECK: ], // CHECK: "extended-data": { diff --git a/tools/aie2xclbin/XCLBinGen.cpp b/tools/aie2xclbin/XCLBinGen.cpp index a36fad41a1..ebb0ba214c 100644 --- a/tools/aie2xclbin/XCLBinGen.cpp +++ b/tools/aie2xclbin/XCLBinGen.cpp @@ -432,7 +432,12 @@ static json::Object makeKernelJSON(std::string name, std::string id, {"memory-connection", "HOST"}, {"address-qualifier", "GLOBAL"}, {"type", "void*"}, - {"offset", "0x34"}}}}, + {"offset", "0x34"}}, + json::Object{{"name", "bo5"}, + {"memory-connection", "HOST"}, + {"address-qualifier", "GLOBAL"}, + {"type", "void*"}, + {"offset", "0x3c"}}}}, {"instances", json::Array{json::Object{{"name", instance}}}}}; }