Skip to content

Commit

Permalink
Remove Xlnk reference in microblaze notebooks (#1151)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterOgden authored Oct 7, 2020
1 parent d0943a0 commit d7fb3a8
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Finally we can pass a `void` pointer which will allow the Microblaze to directly access the memory of the host processing system for transferring large quantities of data. In Python these blocks of memory should be allocated using the `Xlnk.cma_array` function and it is the responsibility of the programmer to make sure that the Python and C code agree on the types used."
"Finally we can pass a `void` pointer which will allow the Microblaze to directly access the memory of the host processing system for transferring large quantities of data. In Python these blocks of memory should be allocated using the `pynq.allocate` function and it is the responsibility of the programmer to make sure that the Python and C code agree on the types used."
]
},
{
Expand Down Expand Up @@ -217,10 +217,9 @@
}
],
"source": [
"from pynq import Xlnk\n",
"allocator = Xlnk()\n",
"from pynq import allocate\n",
"\n",
"buffer = allocator.cma_array(shape=(1024 * 1024), dtype='i4')\n",
"buffer = allocate(shape=(1024 * 1024), dtype='i4')\n",
"buffer[:] = range(1024*1024)\n",
"\n",
"big_sum(buffer, len(buffer))"
Expand Down

0 comments on commit d7fb3a8

Please sign in to comment.