{"action":"created","issue":{"url":"https://api.github.com/repos/ucb-bar/firrtl/issues/173","repository_url":"https://api.github.com/repos/ucb-bar/firrtl","labels_url":"https://api.github.com/repos/ucb-bar/firrtl/issues/173/labels{/name}","comments_url":"https://api.github.com/repos/ucb-bar/firrtl/issues/173/comments","events_url":"https://api.github.com/repos/ucb-bar/firrtl/issues/173/events","html_url":"https://github.com/ucb-bar/firrtl/issues/173","id":155363905,"number":173,"title":"SInts not respected in Legalize for connection where rhs is wider SInt than lhs","user":{"login":"jackkoenig","id":8584418,"avatar_url":"https://avatars.githubusercontent.com/u/8584418?v=3","gravatar_id":"","url":"https://api.github.com/users/jackkoenig","html_url":"https://github.com/jackkoenig","followers_url":"https://api.github.com/users/jackkoenig/followers","following_url":"https://api.github.com/users/jackkoenig/following{/other_user}","gists_url":"https://api.github.com/users/jackkoenig/gists{/gist_id}","starred_url":"https://api.github.com/users/jackkoenig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackkoenig/subscriptions","organizations_url":"https://api.github.com/users/jackkoenig/orgs","repos_url":"https://api.github.com/users/jackkoenig/repos","events_url":"https://api.github.com/users/jackkoenig/events{/privacy}","received_events_url":"https://api.github.com/users/jackkoenig/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-17T21:16:20Z","updated_at":"2016-05-24T19:01:02Z","closed_at":null,"body":"Similarl to #169\r\n```\r\n circuit Test :\r\n  module Test :\r\n    input b : SInt<32>\r\n    output x : SInt<16>\r\n    skip\r\n    x <= b\r\n```\r\n->\r\n```\r\n circuit Test :\r\n  module Test :\r\n    input b : SInt<32>\r\n    output x : SInt<16>\r\n    skip\r\n    x <= bits(b, 15, 0)\r\n```"},"comment":{"url":"https://api.github.com/repos/ucb-bar/firrtl/issues/comments/221370309","html_url":"https://github.com/ucb-bar/firrtl/issues/173#issuecomment-221370309","issue_url":"https://api.github.com/repos/ucb-bar/firrtl/issues/173","id":221370309,"user":{"login":"aswaterman","id":1031106,"avatar_url":"https://avatars.githubusercontent.com/u/1031106?v=3","gravatar_id":"","url":"https://api.github.com/users/aswaterman","html_url":"https://github.com/aswaterman","followers_url":"https://api.github.com/users/aswaterman/followers","following_url":"https://api.github.com/users/aswaterman/following{/other_user}","gists_url":"https://api.github.com/users/aswaterman/gists{/gist_id}","starred_url":"https://api.github.com/users/aswaterman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aswaterman/subscriptions","organizations_url":"https://api.github.com/users/aswaterman/orgs","repos_url":"https://api.github.com/users/aswaterman/repos","events_url":"https://api.github.com/users/aswaterman/events{/privacy}","received_events_url":"https://api.github.com/users/aswaterman/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T19:01:02Z","updated_at":"2016-05-24T19:01:02Z","body":"I tried, but started to get match errors in Remove CHIRRTL:\r\n\r\n    Exception in thread \"main\" scala.MatchError: (UIntType(IntWidth(1)),UnknownType()) (of class scala.Tuple2)\r\n      at firrtl.Utils$.get_valid_points(Utils.scala:311)\r\n      at firrtl.passes.RemoveCHIRRTL$.firrtl$passes$RemoveCHIRRTL$$remove_chirrtl_s$1(Passes.scala:1397)\r\n      at firrtl.passes.RemoveCHIRRTL$$anonfun$firrtl$passes$RemoveCHIRRTL$$remove_chirrtl_s$1$3.apply(Passes.scala:1411)\r\n"}}
{"actor":{"display_login":"aswaterman"}}