VHDL 3D array input port

Status
Not open for further replies.

shaiko

Advanced Member level 5
Joined
Aug 20, 2011
Messages
2,644
Helped
303
Reputation
608
Reaction score
297
Trophy points
1,363
Visit site
Activity points
18,302
Hello,

Is it possible to define a 3D unconstrained array as an input port to a VHDL entity?
for example - inside a package
Code:
type unconstrained_2D_array : is array ( natural range <> ) of std_logic_vector ;
type unconstrained_3D_array : is array ( natural range <> ) of unconstrained_2D_array ;
If I use the custom type "unconstrained_3D_array" as an input port to an entity - will it synthesize?
 

I'm not sure you can use ANY unconstrained port on an entity. But I would say, 'why don't you just try it and see what happens?'
 

It's allowed by VHDL 2008 , but I wouldnt count on support from synthesis vendors...
 
Reactions: shaiko

    shaiko

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…