Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Xlnk reference in microblaze notebooks #1151

Merged
merged 1 commit into from
Oct 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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