{"action":"created","comment":{"url":"https://api.github.com/repos/project-rig/rig_examples/pulls/comments/43572104","id":43572104,"diff_hunk":"@@ -0,0 +1,98 @@\n+Example 02: Reading and Writing SDRAM\n+=====================================\n+\n+Most interesting SpiNNaker applications require some sort of configuration data\n+to be loaded onto the machine or produce result data which must be read back\n+from the machine. Typically this is done by allocating and writing/reading\n+to/from the shared SDRAM on each SpiNNaker chip. In this example we'll write a\n+simple SpiNNaker application which, using a single core, adds two numbers\n+loaded in SDRAM and writes the answer back to SDRAM.\n+\n+Much of the code in this example is unchanged from the previous example so we\n+will only discuss the cahnges.\n+\n+`Example Source code on GitHub <https://github.com/project-rig/rig_examples/tree/master/02_using_sdram>`_\n+\n+Allocating SDRAM\n+----------------\n+\n+When both the host and SpiNNaker need to access the same block of SDRAM, such\n+as when loading configuration data or reading back results, the SDRAM is\n+typically allocated by the host.  In this example we'll allocate some SDRAM on","path":"02_using_sdram/README.rst","position":21,"original_position":21,"commit_id":"c502069020797e8e7ce64b1203aa0ede431b5d08","original_commit_id":"c502069020797e8e7ce64b1203aa0ede431b5d08","user":{"login":"mundya","id":3439837,"avatar_url":"https://avatars.githubusercontent.com/u/3439837?v=3","gravatar_id":"","url":"https://api.github.com/users/mundya","html_url":"https://github.com/mundya","followers_url":"https://api.github.com/users/mundya/followers","following_url":"https://api.github.com/users/mundya/following{/other_user}","gists_url":"https://api.github.com/users/mundya/gists{/gist_id}","starred_url":"https://api.github.com/users/mundya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mundya/subscriptions","organizations_url":"https://api.github.com/users/mundya/orgs","repos_url":"https://api.github.com/users/mundya/repos","events_url":"https://api.github.com/users/mundya/events{/privacy}","received_events_url":"https://api.github.com/users/mundya/received_events","type":"User","site_admin":false},"body":"\"the SDRAM is typically allocated by the host\" -> \"it is common the host to allocate the SDRAM\"?","created_at":"2015-10-31T14:12:21Z","updated_at":"2015-10-31T14:12:21Z","html_url":"https://github.com/project-rig/rig_examples/pull/2#discussion_r43572104","pull_request_url":"https://api.github.com/repos/project-rig/rig_examples/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/project-rig/rig_examples/pulls/comments/43572104"},"html":{"href":"https://github.com/project-rig/rig_examples/pull/2#discussion_r43572104"},"pull_request":{"href":"https://api.github.com/repos/project-rig/rig_examples/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/project-rig/rig_examples/pulls/2","id":49349763,"html_url":"https://github.com/project-rig/rig_examples/pull/2","diff_url":"https://github.com/project-rig/rig_examples/pull/2.diff","patch_url":"https://github.com/project-rig/rig_examples/pull/2.patch","issue_url":"https://api.github.com/repos/project-rig/rig_examples/issues/2","number":2,"state":"open","locked":false,"title":"Examples 02 and 03: Using sdram","user":{"login":"mossblaser","id":193514,"avatar_url":"https://avatars.githubusercontent.com/u/193514?v=3","gravatar_id":"","url":"https://api.github.com/users/mossblaser","html_url":"https://github.com/mossblaser","followers_url":"https://api.github.com/users/mossblaser/followers","following_url":"https://api.github.com/users/mossblaser/following{/other_user}","gists_url":"https://api.github.com/users/mossblaser/gists{/gist_id}","starred_url":"https://api.github.com/users/mossblaser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mossblaser/subscriptions","organizations_url":"https://api.github.com/users/mossblaser/orgs","repos_url":"https://api.github.com/users/mossblaser/repos","events_url":"https://api.github.com/users/mossblaser/events{/privacy}","received_events_url":"https://api.github.com/users/mossblaser/received_events","type":"User","site_admin":false},"body":"Includes two examples which first introduce SDRAM allocation (and tagging), reading and writing using the low-level interface and then introduces the application context manager and file-like IO.","created_at":"2015-10-31T13:49:59Z","updated_at":"2015-10-31T14:12:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9a184be0d6d4bf040d64c38a50feb4b9b15260f6","assignee":{"login":"mundya","id":3439837,"avatar_url":"https://avatars.githubusercontent.com/u/3439837?v=3","gravatar_id":"","url":"https://api.github.com/users/mundya","html_url":"https://github.com/mundya","followers_url":"https://api.github.com/users/mundya/followers","following_url":"https://api.github.com/users/mundya/following{/other_user}","gists_url":"https://api.github.com/users/mundya/gists{/gist_id}","starred_url":"https://api.github.com/users/mundya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mundya/subscriptions","organizations_url":"https://api.github.com/users/mundya/orgs","repos_url":"https://api.github.com/users/mundya/repos","events_url":"https://api.github.com/users/mundya/events{/privacy}","received_events_url":"https://api.github.com/users/mundya/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/project-rig/rig_examples/pulls/2/commits","review_comments_url":"https://api.github.com/repos/project-rig/rig_examples/pulls/2/comments","review_comment_url":"https://api.github.com/repos/project-rig/rig_examples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/project-rig/rig_examples/issues/2/comments","statuses_url":"https://api.github.com/repos/project-rig/rig_examples/statuses/c502069020797e8e7ce64b1203aa0ede431b5d08","head":{"label":"project-rig:02_using_sdram","ref":"02_using_sdram","sha":"c502069020797e8e7ce64b1203aa0ede431b5d08","user":{"login":"project-rig","id":11227885,"avatar_url":"https://avatars.githubusercontent.com/u/11227885?v=3","gravatar_id":"","url":"https://api.github.com/users/project-rig","html_url":"https://github.com/project-rig","followers_url":"https://api.github.com/users/project-rig/followers","following_url":"https://api.github.com/users/project-rig/following{/other_user}","gists_url":"https://api.github.com/users/project-rig/gists{/gist_id}","starred_url":"https://api.github.com/users/project-rig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/project-rig/subscriptions","organizations_url":"https://api.github.com/users/project-rig/orgs","repos_url":"https://api.github.com/users/project-rig/repos","events_url":"https://api.github.com/users/project-rig/events{/privacy}","received_events_url":"https://api.github.com/users/project-rig/received_events","type":"Organization","site_admin":false},"repo":{"id":44682620,"name":"rig_examples","full_name":"project-rig/rig_examples","owner":{"login":"project-rig","id":11227885,"avatar_url":"https://avatars.githubusercontent.com/u/11227885?v=3","gravatar_id":"","url":"https://api.github.com/users/project-rig","html_url":"https://github.com/project-rig","followers_url":"https://api.github.com/users/project-rig/followers","following_url":"https://api.github.com/users/project-rig/following{/other_user}","gists_url":"https://api.github.com/users/project-rig/gists{/gist_id}","starred_url":"https://api.github.com/users/project-rig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/project-rig/subscriptions","organizations_url":"https://api.github.com/users/project-rig/orgs","repos_url":"https://api.github.com/users/project-rig/repos","events_url":"https://api.github.com/users/project-rig/events{/privacy}","received_events_url":"https://api.github.com/users/project-rig/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/project-rig/rig_examples","description":"A collection of small example programs which demonstrate features of the Rig library. (Work in progress)","fork":false,"url":"https://api.github.com/repos/project-rig/rig_examples","forks_url":"https://api.github.com/repos/project-rig/rig_examples/forks","keys_url":"https://api.github.com/repos/project-rig/rig_examples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/project-rig/rig_examples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/project-rig/rig_examples/teams","hooks_url":"https://api.github.com/repos/project-rig/rig_examples/hooks","issue_events_url":"https://api.github.com/repos/project-rig/rig_examples/issues/events{/number}","events_url":"https://api.github.com/repos/project-rig/rig_examples/events","assignees_url":"https://api.github.com/repos/project-rig/rig_examples/assignees{/user}","branches_url":"https://api.github.com/repos/project-rig/rig_examples/branches{/branch}","tags_url":"https://api.github.com/repos/project-rig/rig_examples/tags","blobs_url":"https://api.github.com/repos/project-rig/rig_examples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/project-rig/rig_examples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/project-rig/rig_examples/git/refs{/sha}","trees_url":"https://api.github.com/repos/project-rig/rig_examples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/project-rig/rig_examples/statuses/{sha}","languages_url":"https://api.github.com/repos/project-rig/rig_examples/languages","stargazers_url":"https://api.github.com/repos/project-rig/rig_examples/stargazers","contributors_url":"https://api.github.com/repos/project-rig/rig_examples/contributors","subscribers_url":"https://api.github.com/repos/project-rig/rig_examples/subscribers","subscription_url":"https://api.github.com/repos/project-rig/rig_examples/subscription","commits_url":"https://api.github.com/repos/project-rig/rig_examples/commits{/sha}","git_commits_url":"https://api.github.com/repos/project-rig/rig_examples/git/commits{/sha}","comments_url":"https://api.github.com/repos/project-rig/rig_examples/comments{/number}","issue_comment_url":"https://api.github.com/repos/project-rig/rig_examples/issues/comments{/number}","contents_url":"https://api.github.com/repos/project-rig/rig_examples/contents/{+path}","compare_url":"https://api.github.com/repos/project-rig/rig_examples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/project-rig/rig_examples/merges","archive_url":"https://api.github.com/repos/project-rig/rig_examples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/project-rig/rig_examples/downloads","issues_url":"https://api.github.com/repos/project-rig/rig_examples/issues{/number}","pulls_url":"https://api.github.com/repos/project-rig/rig_examples/pulls{/number}","milestones_url":"https://api.github.com/repos/project-rig/rig_examples/milestones{/number}","notifications_url":"https://api.github.com/repos/project-rig/rig_examples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/project-rig/rig_examples/labels{/name}","releases_url":"https://api.github.com/repos/project-rig/rig_examples/releases{/id}","created_at":"2015-10-21T14:39:07Z","updated_at":"2015-10-21T14:39:41Z","pushed_at":"2015-10-31T13:49:59Z","git_url":"git://github.com/project-rig/rig_examples.git","ssh_url":"git@github.com:project-rig/rig_examples.git","clone_url":"https://github.com/project-rig/rig_examples.git","svn_url":"https://github.com/project-rig/rig_examples","homepage":null,"size":248,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"project-rig:master","ref":"master","sha":"7a383154147eb8c2692c087fc84a265ad7cf0732","user":{"login":"project-rig","id":11227885,"avatar_url":"https://avatars.githubusercontent.com/u/11227885?v=3","gravatar_id":"","url":"https://api.github.com/users/project-rig","html_url":"https://github.com/project-rig","followers_url":"https://api.github.com/users/project-rig/followers","following_url":"https://api.github.com/users/project-rig/following{/other_user}","gists_url":"https://api.github.com/users/project-rig/gists{/gist_id}","starred_url":"https://api.github.com/users/project-rig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/project-rig/subscriptions","organizations_url":"https://api.github.com/users/project-rig/orgs","repos_url":"https://api.github.com/users/project-rig/repos","events_url":"https://api.github.com/users/project-rig/events{/privacy}","received_events_url":"https://api.github.com/users/project-rig/received_events","type":"Organization","site_admin":false},"repo":{"id":44682620,"name":"rig_examples","full_name":"project-rig/rig_examples","owner":{"login":"project-rig","id":11227885,"avatar_url":"https://avatars.githubusercontent.com/u/11227885?v=3","gravatar_id":"","url":"https://api.github.com/users/project-rig","html_url":"https://github.com/project-rig","followers_url":"https://api.github.com/users/project-rig/followers","following_url":"https://api.github.com/users/project-rig/following{/other_user}","gists_url":"https://api.github.com/users/project-rig/gists{/gist_id}","starred_url":"https://api.github.com/users/project-rig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/project-rig/subscriptions","organizations_url":"https://api.github.com/users/project-rig/orgs","repos_url":"https://api.github.com/users/project-rig/repos","events_url":"https://api.github.com/users/project-rig/events{/privacy}","received_events_url":"https://api.github.com/users/project-rig/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/project-rig/rig_examples","description":"A collection of small example programs which demonstrate features of the Rig library. (Work in progress)","fork":false,"url":"https://api.github.com/repos/project-rig/rig_examples","forks_url":"https://api.github.com/repos/project-rig/rig_examples/forks","keys_url":"https://api.github.com/repos/project-rig/rig_examples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/project-rig/rig_examples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/project-rig/rig_examples/teams","hooks_url":"https://api.github.com/repos/project-rig/rig_examples/hooks","issue_events_url":"https://api.github.com/repos/project-rig/rig_examples/issues/events{/number}","events_url":"https://api.github.com/repos/project-rig/rig_examples/events","assignees_url":"https://api.github.com/repos/project-rig/rig_examples/assignees{/user}","branches_url":"https://api.github.com/repos/project-rig/rig_examples/branches{/branch}","tags_url":"https://api.github.com/repos/project-rig/rig_examples/tags","blobs_url":"https://api.github.com/repos/project-rig/rig_examples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/project-rig/rig_examples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/project-rig/rig_examples/git/refs{/sha}","trees_url":"https://api.github.com/repos/project-rig/rig_examples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/project-rig/rig_examples/statuses/{sha}","languages_url":"https://api.github.com/repos/project-rig/rig_examples/languages","stargazers_url":"https://api.github.com/repos/project-rig/rig_examples/stargazers","contributors_url":"https://api.github.com/repos/project-rig/rig_examples/contributors","subscribers_url":"https://api.github.com/repos/project-rig/rig_examples/subscribers","subscription_url":"https://api.github.com/repos/project-rig/rig_examples/subscription","commits_url":"https://api.github.com/repos/project-rig/rig_examples/commits{/sha}","git_commits_url":"https://api.github.com/repos/project-rig/rig_examples/git/commits{/sha}","comments_url":"https://api.github.com/repos/project-rig/rig_examples/comments{/number}","issue_comment_url":"https://api.github.com/repos/project-rig/rig_examples/issues/comments{/number}","contents_url":"https://api.github.com/repos/project-rig/rig_examples/contents/{+path}","compare_url":"https://api.github.com/repos/project-rig/rig_examples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/project-rig/rig_examples/merges","archive_url":"https://api.github.com/repos/project-rig/rig_examples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/project-rig/rig_examples/downloads","issues_url":"https://api.github.com/repos/project-rig/rig_examples/issues{/number}","pulls_url":"https://api.github.com/repos/project-rig/rig_examples/pulls{/number}","milestones_url":"https://api.github.com/repos/project-rig/rig_examples/milestones{/number}","notifications_url":"https://api.github.com/repos/project-rig/rig_examples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/project-rig/rig_examples/labels{/name}","releases_url":"https://api.github.com/repos/project-rig/rig_examples/releases{/id}","created_at":"2015-10-21T14:39:07Z","updated_at":"2015-10-21T14:39:41Z","pushed_at":"2015-10-31T13:49:59Z","git_url":"git://github.com/project-rig/rig_examples.git","ssh_url":"git@github.com:project-rig/rig_examples.git","clone_url":"https://github.com/project-rig/rig_examples.git","svn_url":"https://github.com/project-rig/rig_examples","homepage":null,"size":248,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/project-rig/rig_examples/pulls/2"},"html":{"href":"https://github.com/project-rig/rig_examples/pull/2"},"issue":{"href":"https://api.github.com/repos/project-rig/rig_examples/issues/2"},"comments":{"href":"https://api.github.com/repos/project-rig/rig_examples/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/project-rig/rig_examples/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/project-rig/rig_examples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/project-rig/rig_examples/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/project-rig/rig_examples/statuses/c502069020797e8e7ce64b1203aa0ede431b5d08"}}}}