{"action":"created","comment":{"url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/pulls/comments/67592574","id":67592574,"diff_hunk":"@@ -0,0 +1,64 @@\n+''' testbench for entropy coder '''\n+\n+from myhdl import block, delay\n+from myhdl import instance\n+from myhdl import intbv, ResetSignal, Signal, StopSimulation\n+from jpegenc.subblocks.RLE.RLECore.entropycoder import entropycoder\n+\n+# declared constants\n+WIDTH = 12\n+SIZE = 4\n+\n+\n+@block\n+def test():\n+\n+    '''sequential block for testing entropy coder '''\n+\n+    clock = Signal(bool(0))\n+    reset = ResetSignal(0, active=True, async=True)\n+    data_in = Signal(intbv(0)[(WIDTH+1):].signed())\n+    size = Signal(intbv(0)[SIZE:])\n+    amplitude = Signal(intbv(0)[(WIDTH+1):].signed())\n+\n+    inst = entropycoder(clock, reset, data_in, size, amplitude)\n+\n+    @instance\n+    def tbclock():\n+\n+        ''' instance that generates clock '''","path":"test_jpeg/test/test_entropycoder.py","position":29,"original_position":29,"commit_id":"143651632c034b0552e6072ea226a3fc3acfbf98","original_commit_id":"143651632c034b0552e6072ea226a3fc3acfbf98","user":{"login":"cfelton","id":766391,"avatar_url":"https://avatars.githubusercontent.com/u/766391?v=3","gravatar_id":"","url":"https://api.github.com/users/cfelton","html_url":"https://github.com/cfelton","followers_url":"https://api.github.com/users/cfelton/followers","following_url":"https://api.github.com/users/cfelton/following{/other_user}","gists_url":"https://api.github.com/users/cfelton/gists{/gist_id}","starred_url":"https://api.github.com/users/cfelton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfelton/subscriptions","organizations_url":"https://api.github.com/users/cfelton/orgs","repos_url":"https://api.github.com/users/cfelton/repos","events_url":"https://api.github.com/users/cfelton/events{/privacy}","received_events_url":"https://api.github.com/users/cfelton/received_events","type":"User","site_admin":false},"body":"Used `\"\"\"` above and `'''` here, I think the other code in test_jpeg use `\"\"\"`, use `\"\"\"` to be consistent.","created_at":"2016-06-18T01:16:19Z","updated_at":"2016-06-18T01:16:19Z","html_url":"https://github.com/Vikram9866/JPEGEncV1/pull/5#discussion_r67592574","pull_request_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/Vikram9866/JPEGEncV1/pulls/comments/67592574"},"html":{"href":"https://github.com/Vikram9866/JPEGEncV1/pull/5#discussion_r67592574"},"pull_request":{"href":"https://api.github.com/repos/Vikram9866/JPEGEncV1/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/pulls/5","id":74139305,"html_url":"https://github.com/Vikram9866/JPEGEncV1/pull/5","diff_url":"https://github.com/Vikram9866/JPEGEncV1/pull/5.diff","patch_url":"https://github.com/Vikram9866/JPEGEncV1/pull/5.patch","issue_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/issues/5","number":5,"state":"open","locked":false,"title":"Rlefinal","user":{"login":"Vikram9866","id":17692383,"avatar_url":"https://avatars.githubusercontent.com/u/17692383?v=3","gravatar_id":"","url":"https://api.github.com/users/Vikram9866","html_url":"https://github.com/Vikram9866","followers_url":"https://api.github.com/users/Vikram9866/followers","following_url":"https://api.github.com/users/Vikram9866/following{/other_user}","gists_url":"https://api.github.com/users/Vikram9866/gists{/gist_id}","starred_url":"https://api.github.com/users/Vikram9866/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vikram9866/subscriptions","organizations_url":"https://api.github.com/users/Vikram9866/orgs","repos_url":"https://api.github.com/users/Vikram9866/repos","events_url":"https://api.github.com/users/Vikram9866/events{/privacy}","received_events_url":"https://api.github.com/users/Vikram9866/received_events","type":"User","site_admin":false},"body":"1. Need to add conversion tests.\r\n2. Make the code more clean","created_at":"2016-06-16T19:37:49Z","updated_at":"2016-06-18T01:16:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d20103db643bc0d62e588a8ea1ffeb949e41f443","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/pulls/5/commits","review_comments_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/pulls/5/comments","review_comment_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/issues/5/comments","statuses_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/statuses/143651632c034b0552e6072ea226a3fc3acfbf98","head":{"label":"Vikram9866:rlefinal","ref":"rlefinal","sha":"143651632c034b0552e6072ea226a3fc3acfbf98","user":{"login":"Vikram9866","id":17692383,"avatar_url":"https://avatars.githubusercontent.com/u/17692383?v=3","gravatar_id":"","url":"https://api.github.com/users/Vikram9866","html_url":"https://github.com/Vikram9866","followers_url":"https://api.github.com/users/Vikram9866/followers","following_url":"https://api.github.com/users/Vikram9866/following{/other_user}","gists_url":"https://api.github.com/users/Vikram9866/gists{/gist_id}","starred_url":"https://api.github.com/users/Vikram9866/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vikram9866/subscriptions","organizations_url":"https://api.github.com/users/Vikram9866/orgs","repos_url":"https://api.github.com/users/Vikram9866/repos","events_url":"https://api.github.com/users/Vikram9866/events{/privacy}","received_events_url":"https://api.github.com/users/Vikram9866/received_events","type":"User","site_admin":false},"repo":{"id":58268928,"name":"JPEGEncV1","full_name":"Vikram9866/JPEGEncV1","owner":{"login":"Vikram9866","id":17692383,"avatar_url":"https://avatars.githubusercontent.com/u/17692383?v=3","gravatar_id":"","url":"https://api.github.com/users/Vikram9866","html_url":"https://github.com/Vikram9866","followers_url":"https://api.github.com/users/Vikram9866/followers","following_url":"https://api.github.com/users/Vikram9866/following{/other_user}","gists_url":"https://api.github.com/users/Vikram9866/gists{/gist_id}","starred_url":"https://api.github.com/users/Vikram9866/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vikram9866/subscriptions","organizations_url":"https://api.github.com/users/Vikram9866/orgs","repos_url":"https://api.github.com/users/Vikram9866/repos","events_url":"https://api.github.com/users/Vikram9866/events{/privacy}","received_events_url":"https://api.github.com/users/Vikram9866/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Vikram9866/JPEGEncV1","description":"","fork":false,"url":"https://api.github.com/repos/Vikram9866/JPEGEncV1","forks_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/forks","keys_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/teams","hooks_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/hooks","issue_events_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/issues/events{/number}","events_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/events","assignees_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/assignees{/user}","branches_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/branches{/branch}","tags_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/tags","blobs_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/statuses/{sha}","languages_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/languages","stargazers_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/stargazers","contributors_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/contributors","subscribers_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/subscribers","subscription_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/subscription","commits_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/contents/{+path}","compare_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/merges","archive_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/downloads","issues_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/issues{/number}","pulls_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/pulls{/number}","milestones_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/milestones{/number}","notifications_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/labels{/name}","releases_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/releases{/id}","deployments_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/deployments","created_at":"2016-05-07T14:14:59Z","updated_at":"2016-06-16T19:18:15Z","pushed_at":"2016-06-16T19:37:50Z","git_url":"git://github.com/Vikram9866/JPEGEncV1.git","ssh_url":"git@github.com:Vikram9866/JPEGEncV1.git","clone_url":"https://github.com/Vikram9866/JPEGEncV1.git","svn_url":"https://github.com/Vikram9866/JPEGEncV1","homepage":null,"size":2045,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"Vikram9866:master","ref":"master","sha":"96c7845e28a61eb234f418e3b42411dbd8372d1f","user":{"login":"Vikram9866","id":17692383,"avatar_url":"https://avatars.githubusercontent.com/u/17692383?v=3","gravatar_id":"","url":"https://api.github.com/users/Vikram9866","html_url":"https://github.com/Vikram9866","followers_url":"https://api.github.com/users/Vikram9866/followers","following_url":"https://api.github.com/users/Vikram9866/following{/other_user}","gists_url":"https://api.github.com/users/Vikram9866/gists{/gist_id}","starred_url":"https://api.github.com/users/Vikram9866/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vikram9866/subscriptions","organizations_url":"https://api.github.com/users/Vikram9866/orgs","repos_url":"https://api.github.com/users/Vikram9866/repos","events_url":"https://api.github.com/users/Vikram9866/events{/privacy}","received_events_url":"https://api.github.com/users/Vikram9866/received_events","type":"User","site_admin":false},"repo":{"id":58268928,"name":"JPEGEncV1","full_name":"Vikram9866/JPEGEncV1","owner":{"login":"Vikram9866","id":17692383,"avatar_url":"https://avatars.githubusercontent.com/u/17692383?v=3","gravatar_id":"","url":"https://api.github.com/users/Vikram9866","html_url":"https://github.com/Vikram9866","followers_url":"https://api.github.com/users/Vikram9866/followers","following_url":"https://api.github.com/users/Vikram9866/following{/other_user}","gists_url":"https://api.github.com/users/Vikram9866/gists{/gist_id}","starred_url":"https://api.github.com/users/Vikram9866/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vikram9866/subscriptions","organizations_url":"https://api.github.com/users/Vikram9866/orgs","repos_url":"https://api.github.com/users/Vikram9866/repos","events_url":"https://api.github.com/users/Vikram9866/events{/privacy}","received_events_url":"https://api.github.com/users/Vikram9866/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Vikram9866/JPEGEncV1","description":"","fork":false,"url":"https://api.github.com/repos/Vikram9866/JPEGEncV1","forks_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/forks","keys_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/teams","hooks_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/hooks","issue_events_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/issues/events{/number}","events_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/events","assignees_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/assignees{/user}","branches_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/branches{/branch}","tags_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/tags","blobs_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/statuses/{sha}","languages_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/languages","stargazers_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/stargazers","contributors_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/contributors","subscribers_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/subscribers","subscription_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/subscription","commits_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/contents/{+path}","compare_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/merges","archive_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/downloads","issues_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/issues{/number}","pulls_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/pulls{/number}","milestones_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/milestones{/number}","notifications_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/labels{/name}","releases_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/releases{/id}","deployments_url":"https://api.github.com/repos/Vikram9866/JPEGEncV1/deployments","created_at":"2016-05-07T14:14:59Z","updated_at":"2016-06-16T19:18:15Z","pushed_at":"2016-06-16T19:37:50Z","git_url":"git://github.com/Vikram9866/JPEGEncV1.git","ssh_url":"git@github.com:Vikram9866/JPEGEncV1.git","clone_url":"https://github.com/Vikram9866/JPEGEncV1.git","svn_url":"https://github.com/Vikram9866/JPEGEncV1","homepage":null,"size":2045,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Vikram9866/JPEGEncV1/pulls/5"},"html":{"href":"https://github.com/Vikram9866/JPEGEncV1/pull/5"},"issue":{"href":"https://api.github.com/repos/Vikram9866/JPEGEncV1/issues/5"},"comments":{"href":"https://api.github.com/repos/Vikram9866/JPEGEncV1/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/Vikram9866/JPEGEncV1/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/Vikram9866/JPEGEncV1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Vikram9866/JPEGEncV1/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/Vikram9866/JPEGEncV1/statuses/143651632c034b0552e6072ea226a3fc3acfbf98"}}}}
{"actor":{"display_login":"cfelton"}}