{"action":"created","issue":{"url":"https://api.github.com/repos/ucb-bar/chisel-template/issues/35","repository_url":"https://api.github.com/repos/ucb-bar/chisel-template","labels_url":"https://api.github.com/repos/ucb-bar/chisel-template/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/ucb-bar/chisel-template/issues/35/comments","events_url":"https://api.github.com/repos/ucb-bar/chisel-template/issues/35/events","html_url":"https://github.com/ucb-bar/chisel-template/issues/35","id":351650810,"node_id":"MDU6SXNzdWUzNTE2NTA4MTA=","number":35,"title":"failed to build the GCD module","user":{"login":"zhutmost","id":20497382,"node_id":"MDQ6VXNlcjIwNDk3Mzgy","avatar_url":"https://avatars3.githubusercontent.com/u/20497382?v=4","gravatar_id":"","url":"https://api.github.com/users/zhutmost","html_url":"https://github.com/zhutmost","followers_url":"https://api.github.com/users/zhutmost/followers","following_url":"https://api.github.com/users/zhutmost/following{/other_user}","gists_url":"https://api.github.com/users/zhutmost/gists{/gist_id}","starred_url":"https://api.github.com/users/zhutmost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhutmost/subscriptions","organizations_url":"https://api.github.com/users/zhutmost/orgs","repos_url":"https://api.github.com/users/zhutmost/repos","events_url":"https://api.github.com/users/zhutmost/events{/privacy}","received_events_url":"https://api.github.com/users/zhutmost/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-17T16:02:50Z","updated_at":"2018-08-17T16:26:56Z","closed_at":null,"author_association":"NONE","body":"Hi developers,\r\n\r\nI'm trying to build the GCD module as follows,\r\n```scala\r\npackage gcd\r\n\r\nimport chisel3._\r\n\r\n/**\r\n  * Compute GCD using subtraction method.\r\n  * Subtracts the smaller from the larger until register y is zero.\r\n  * value in register x is then the GCD\r\n  */\r\nclass GCD extends Module {\r\n  val io = IO(new Bundle {\r\n    val value1        = Input(UInt(16.W))\r\n    val value2        = Input(UInt(16.W))\r\n    val loadingValues = Input(Bool())\r\n    val outputGCD     = Output(UInt(16.W))\r\n    val outputValid   = Output(Bool())\r\n  })\r\n\r\n  val x  = Reg(UInt())\r\n  val y  = Reg(UInt())\r\n\r\n  when(x > y) { x := x - y }\r\n    .otherwise { y := y - x }\r\n\r\n  when(io.loadingValues) {\r\n    x := io.value1\r\n    y := io.value2\r\n  }\r\n\r\n  io.outputGCD := x\r\n  io.outputValid := y === 0.U\r\n}\r\n```\r\nBut it failed for some bugs I cannot solve. Here is the log of builder.\r\n![image](https://user-images.githubusercontent.com/20497382/44276503-3d1fbc80-a27a-11e8-8c94-8b84dd172152.png)\r\n\r\n\r\nThank you."},"comment":{"url":"https://api.github.com/repos/ucb-bar/chisel-template/issues/comments/413918938","html_url":"https://github.com/ucb-bar/chisel-template/issues/35#issuecomment-413918938","issue_url":"https://api.github.com/repos/ucb-bar/chisel-template/issues/35","id":413918938,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzkxODkzOA==","user":{"login":"ucbjrl","id":6845888,"node_id":"MDQ6VXNlcjY4NDU4ODg=","avatar_url":"https://avatars3.githubusercontent.com/u/6845888?v=4","gravatar_id":"","url":"https://api.github.com/users/ucbjrl","html_url":"https://github.com/ucbjrl","followers_url":"https://api.github.com/users/ucbjrl/followers","following_url":"https://api.github.com/users/ucbjrl/following{/other_user}","gists_url":"https://api.github.com/users/ucbjrl/gists{/gist_id}","starred_url":"https://api.github.com/users/ucbjrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ucbjrl/subscriptions","organizations_url":"https://api.github.com/users/ucbjrl/orgs","repos_url":"https://api.github.com/users/ucbjrl/repos","events_url":"https://api.github.com/users/ucbjrl/events{/privacy}","received_events_url":"https://api.github.com/users/ucbjrl/received_events","type":"User","site_admin":false},"created_at":"2018-08-17T16:26:56Z","updated_at":"2018-08-17T16:26:56Z","author_association":"CONTRIBUTOR","body":"This looks like the Scala 2.12 problem with anonymous bundles.\n\nYou need to copy the relevant sections of chisel-template/build.sbt that\nset the appropriate Scala compiler options to work around this.\n\n\nOn Fri, Aug 17, 2018 at 9:05 AM, edwardcwang <notifications@github.com>\nwrote:\n\n> Can you show us the Dragonfly.scala file?\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/ucb-bar/chisel-template/issues/35#issuecomment-413912813>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AGh1wMNyuuAXImYBwDd48IKFc4JmgXbeks5uRunagaJpZM4WBz8k>\n> .\n>\n"}}
{"actor":{"display_login":"ucbjrl"}}