{"action":"closed","issue":{"url":"https://api.github.com/repos/jandecaluwe/myhdl/issues/60","labels_url":"https://api.github.com/repos/jandecaluwe/myhdl/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/jandecaluwe/myhdl/issues/60/comments","events_url":"https://api.github.com/repos/jandecaluwe/myhdl/issues/60/events","html_url":"https://github.com/jandecaluwe/myhdl/issues/60","id":67705790,"number":60,"title":"Problem using tuple for synthesizable MyHDL","user":{"login":"cbeighley","id":502385,"avatar_url":"https://avatars.githubusercontent.com/u/502385?v=3","gravatar_id":"","url":"https://api.github.com/users/cbeighley","html_url":"https://github.com/cbeighley","followers_url":"https://api.github.com/users/cbeighley/followers","following_url":"https://api.github.com/users/cbeighley/following{/other_user}","gists_url":"https://api.github.com/users/cbeighley/gists{/gist_id}","starred_url":"https://api.github.com/users/cbeighley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbeighley/subscriptions","organizations_url":"https://api.github.com/users/cbeighley/orgs","repos_url":"https://api.github.com/users/cbeighley/repos","events_url":"https://api.github.com/users/cbeighley/events{/privacy}","received_events_url":"https://api.github.com/users/cbeighley/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-10T23:49:41Z","updated_at":"2015-07-16T20:30:46Z","closed_at":"2015-07-16T20:30:46Z","body":"MyHDL code below:\r\n\r\n```\r\n#!/usr/bin/env python\r\nfrom myhdl import *\r\n \r\nW = 4\r\n \r\ndef myhdl_b3(in1, s, out1):\r\n \r\n  t = (2,5,9,14)\r\n \r\n  @always_comb\r\n  def rtl():\r\n    out1.next = in1 + t[s]\r\n \r\n  return rtl\r\n \r\nin1, out1 = [Signal(modbv()[W:]) for i in range(2)]\r\ns = Signal(intbv()[2:])\r\n \r\ntoVHDL(myhdl_b3, in1, s, out1)\r\n```\r\nIt seems like from this page, this should be valid MyHDL.\r\n\r\nhttp://docs.myhdl.org/en/latest/manual/conversion.html"}}