{"action":"opened","issue":{"url":"https://api.github.com/repos/simonjwright/svd2ada/issues/9","labels_url":"https://api.github.com/repos/simonjwright/svd2ada/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/simonjwright/svd2ada/issues/9/comments","events_url":"https://api.github.com/repos/simonjwright/svd2ada/issues/9/events","html_url":"https://github.com/simonjwright/svd2ada/issues/9","id":130009529,"number":9,"title":"Overlay of register array with single register","user":{"login":"simonjwright","id":1824512,"avatar_url":"https://avatars.githubusercontent.com/u/1824512?v=3","gravatar_id":"","url":"https://api.github.com/users/simonjwright","html_url":"https://github.com/simonjwright","followers_url":"https://api.github.com/users/simonjwright/followers","following_url":"https://api.github.com/users/simonjwright/following{/other_user}","gists_url":"https://api.github.com/users/simonjwright/gists{/gist_id}","starred_url":"https://api.github.com/users/simonjwright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonjwright/subscriptions","organizations_url":"https://api.github.com/users/simonjwright/orgs","repos_url":"https://api.github.com/users/simonjwright/repos","events_url":"https://api.github.com/users/simonjwright/events{/privacy}","received_events_url":"https://api.github.com/users/simonjwright/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"simonjwright","id":1824512,"avatar_url":"https://avatars.githubusercontent.com/u/1824512?v=3","gravatar_id":"","url":"https://api.github.com/users/simonjwright","html_url":"https://github.com/simonjwright","followers_url":"https://api.github.com/users/simonjwright/followers","following_url":"https://api.github.com/users/simonjwright/following{/other_user}","gists_url":"https://api.github.com/users/simonjwright/gists{/gist_id}","starred_url":"https://api.github.com/users/simonjwright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simonjwright/subscriptions","organizations_url":"https://api.github.com/users/simonjwright/orgs","repos_url":"https://api.github.com/users/simonjwright/repos","events_url":"https://api.github.com/users/simonjwright/events{/privacy}","received_events_url":"https://api.github.com/users/simonjwright/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2016-01-30T16:45:10Z","updated_at":"2016-01-30T16:45:10Z","closed_at":null,"body":"In ATSAM3X8E.svd, some register arrays in UOTGHS (for example, `DEVEPTISR[%s]`; but not `DEVEPTCFG[%s]`) are overlaid by a single register definition (for example, `DEVEPTISR0_ISOENPT`). (I think this is an error on Atmel’s part).\r\n\r\nThe result is that we end up declaring\r\n\r\n    type DEVEPTISR_Discriminant is\r\n      (Default,\r\n       Isoenpt);\r\n\r\n    type DEVEPTISR_Aliased_Register\r\n      (Disc : DEVEPTISR_Discriminant := Default)\r\n    is record\r\n       case Disc is\r\n          when Default =>\r\n             Default : DEVEPTISR_Registers;\r\n          when Isoenpt =>\r\n             ISOENPT : DEVEPTISR0_ISOENPT_Register;\r\n       end case;\r\n    end record\r\n      with Unchecked_Union;\r\n\r\n    for DEVEPTISR_Aliased_Register use record\r\n       Default at 0 range 0 .. 31;\r\n       ISOENPT at 0 range 0 .. 31;\r\n    end record;\r\n\r\nwhich is an error because `Default` has size 320 bits, not 32."}}