{"action":"created","issue":{"url":"https://api.github.com/repos/clash-lang/clash-compiler/issues/320","repository_url":"https://api.github.com/repos/clash-lang/clash-compiler","labels_url":"https://api.github.com/repos/clash-lang/clash-compiler/issues/320/labels{/name}","comments_url":"https://api.github.com/repos/clash-lang/clash-compiler/issues/320/comments","events_url":"https://api.github.com/repos/clash-lang/clash-compiler/issues/320/events","html_url":"https://github.com/clash-lang/clash-compiler/issues/320","id":328816735,"node_id":"MDU6SXNzdWUzMjg4MTY3MzU=","number":320,"title":"Not able to create primitive","user":{"login":"adamwalker","id":35527,"node_id":"MDQ6VXNlcjM1NTI3","avatar_url":"https://avatars3.githubusercontent.com/u/35527?v=4","gravatar_id":"","url":"https://api.github.com/users/adamwalker","html_url":"https://github.com/adamwalker","followers_url":"https://api.github.com/users/adamwalker/followers","following_url":"https://api.github.com/users/adamwalker/following{/other_user}","gists_url":"https://api.github.com/users/adamwalker/gists{/gist_id}","starred_url":"https://api.github.com/users/adamwalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamwalker/subscriptions","organizations_url":"https://api.github.com/users/adamwalker/orgs","repos_url":"https://api.github.com/users/adamwalker/repos","events_url":"https://api.github.com/users/adamwalker/events{/privacy}","received_events_url":"https://api.github.com/users/adamwalker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-03T10:21:01Z","updated_at":"2018-06-04T17:03:49Z","closed_at":null,"author_association":"NONE","body":"I need an asymmetric width block ram in my design. The one in the Prelude is symmetric only so I decided to create a primitive. \r\n\r\nHowever, most of the time, my primitive is ignored. Where I would expect the primtive to be placed all I see is: \r\n\r\n```\r\n  assign result = {32 {1'bx}};\r\n```\r\nThe files to reproduce this are here: https://gist.github.com/adamwalker/cc30dc3f2b4d0ad6a4f37f66ab4b41d1.\r\n\r\nIf I replace the topEntity definition with:\r\n```\r\ntopEntity = asymBlockRam# \r\n```\r\ni.e. I remove the clk argument, then the ram is generated correctly. This is the only case where I have seen it generate the correct verilog. I am using the latest master (e1bc893)."},"comment":{"url":"https://api.github.com/repos/clash-lang/clash-compiler/issues/comments/394427478","html_url":"https://github.com/clash-lang/clash-compiler/issues/320#issuecomment-394427478","issue_url":"https://api.github.com/repos/clash-lang/clash-compiler/issues/320","id":394427478,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDQyNzQ3OA==","user":{"login":"leonschoorl","id":437852,"node_id":"MDQ6VXNlcjQzNzg1Mg==","avatar_url":"https://avatars1.githubusercontent.com/u/437852?v=4","gravatar_id":"","url":"https://api.github.com/users/leonschoorl","html_url":"https://github.com/leonschoorl","followers_url":"https://api.github.com/users/leonschoorl/followers","following_url":"https://api.github.com/users/leonschoorl/following{/other_user}","gists_url":"https://api.github.com/users/leonschoorl/gists{/gist_id}","starred_url":"https://api.github.com/users/leonschoorl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonschoorl/subscriptions","organizations_url":"https://api.github.com/users/leonschoorl/orgs","repos_url":"https://api.github.com/users/leonschoorl/repos","events_url":"https://api.github.com/users/leonschoorl/events{/privacy}","received_events_url":"https://api.github.com/users/leonschoorl/received_events","type":"User","site_admin":false},"created_at":"2018-06-04T17:03:49Z","updated_at":"2018-06-04T17:03:49Z","author_association":"CONTRIBUTOR","body":"Try changing your definition of asymBlockRam# to:\r\n```haskell\r\nasymBlockRam# clk = undefined\r\n```"}}
{"actor":{"display_login":"leonschoorl"}}