Re: [myhdl-list] TypeError: concat: inappropriate argument type: <type 'long'>
Brought to you by:
jandecaluwe
From: Christopher F. <chr...@gm...> - 2015-04-05 03:38:47
|
>> I'm getting an error likely due to to a std_logic_vector being >> much monger than myHDL was intended to handle. >> >> addr_array.next = concat(addr_array[436:0], most_recent_addr_req_to_sdram - 1) On 4/3/15 3:43 AM, Henry Gomersall wrote: > The first is concat as you highlighted, not seeming to like values that > are too long. I suspect this is a problem only in the analyser and can > be rectified relatively easily? I worked around this by assigning to > sub-vectors independently. The issues is: you are trying to concat an `intbv` and a `long`. A `long` doesn't have a length so the concat doesn't work. You end up with a `long` when you do the decrement `addr-1`. This operation results in a `long` not a type with a length. I created a minimal example to demonstrate the `concat` works with the large bitvectors: https://gist.github.com/cfelton/36a2ee340ecea58cdff0 Regards, Chris |