{"action":"created","issue":{"url":"https://api.github.com/repos/clash-lang/clash-compiler/issues/53","labels_url":"https://api.github.com/repos/clash-lang/clash-compiler/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/clash-lang/clash-compiler/issues/53/comments","events_url":"https://api.github.com/repos/clash-lang/clash-compiler/issues/53/events","html_url":"https://github.com/clash-lang/clash-compiler/issues/53","id":72446864,"number":53,"title":"Lost system1000 clock in VHDL generation...","user":{"login":"mgajda","id":685529,"avatar_url":"https://avatars.githubusercontent.com/u/685529?v=3","gravatar_id":"","url":"https://api.github.com/users/mgajda","html_url":"https://github.com/mgajda","followers_url":"https://api.github.com/users/mgajda/followers","following_url":"https://api.github.com/users/mgajda/following{/other_user}","gists_url":"https://api.github.com/users/mgajda/gists{/gist_id}","starred_url":"https://api.github.com/users/mgajda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgajda/subscriptions","organizations_url":"https://api.github.com/users/mgajda/orgs","repos_url":"https://api.github.com/users/mgajda/repos","events_url":"https://api.github.com/users/mgajda/events{/privacy}","received_events_url":"https://api.github.com/users/mgajda/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-01T14:48:20Z","updated_at":"2015-05-01T15:11:32Z","closed_at":null,"body":"Simplest code example that seems to trigger this issue is here: http://lpaste.net/raw/6250056196053532672\r\n\r\nCLaSH compiler occasionally _misses_ the clock forwarding to an entity:\r\n```\r\nentity topEntity28_14 is\r\n  port(eta_i1   : in unsigned(10 downto 0);\r\n       topLet_o : out product5);\r\nend;\r\n\r\narchitecture structural of topEntity28_14 is\r\n```\r\n...and then it tries to instantiate subordinate entity with this missing clock:\r\n```\r\n  mealyzm_7_tup_1 : entity mealyzm_7\r\n    port mapl\r\n      (bodyVar_o      => tup_1\r\n      ,system1000     => system1000\r\n      ,system1000_rst => system1000_rst);\r\n```\r\nThat naturally leads to uncompilable VHDL code."},"comment":{"url":"https://api.github.com/repos/clash-lang/clash-compiler/issues/comments/98153377","html_url":"https://github.com/clash-lang/clash-compiler/issues/53#issuecomment-98153377","issue_url":"https://api.github.com/repos/clash-lang/clash-compiler/issues/53","id":98153377,"user":{"login":"mgajda","id":685529,"avatar_url":"https://avatars.githubusercontent.com/u/685529?v=3","gravatar_id":"","url":"https://api.github.com/users/mgajda","html_url":"https://github.com/mgajda","followers_url":"https://api.github.com/users/mgajda/followers","following_url":"https://api.github.com/users/mgajda/following{/other_user}","gists_url":"https://api.github.com/users/mgajda/gists{/gist_id}","starred_url":"https://api.github.com/users/mgajda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgajda/subscriptions","organizations_url":"https://api.github.com/users/mgajda/orgs","repos_url":"https://api.github.com/users/mgajda/repos","events_url":"https://api.github.com/users/mgajda/events{/privacy}","received_events_url":"https://api.github.com/users/mgajda/received_events","type":"User","site_admin":false},"created_at":"2015-05-01T15:11:32Z","updated_at":"2015-05-01T15:11:32Z","body":"PS I might provide patch to treat it as an example for CLaSH, when it will be able to generate correct VHDL."}}