Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > array slices

Reply
Thread Tools

array slices

 
 
proudfeet
Guest
Posts: n/a
 
      10-01-2003
anyone know how to assign 2 parts of an array to a component instantion port
in a testbench?

e.g.

foo => bar( & bar(3 downto 0);

the above, of course, can't be done due to the error "actual for formal foo
is not a globally static expression .. what to do? i can't use a in-between
signal, i.e. in_between <= bar( & bar(3 downto 0); then do : foo =>
in_between; .. because both foo and bar are bi-directional (types inout)

help?


 
Reply With Quote
 
 
 
 
Egbert Molenkamp
Guest
Posts: n/a
 
      10-01-2003

In the following example I assume that foo is has type std_logic_vector(4
downto 0)
foo(4)=>bar(, foo(3 downto 0)=>bar(3 downto 0),

Egbert Molenkamp


"proudfeet" <(E-Mail Removed)> wrote in message
news:ATseb.2113$(E-Mail Removed)...
> anyone know how to assign 2 parts of an array to a component instantion

port
> in a testbench?
>
> e.g.
>
> foo => bar( & bar(3 downto 0);
>
> the above, of course, can't be done due to the error "actual for formal

foo
> is not a globally static expression .. what to do? i can't use a

in-between
> signal, i.e. in_between <= bar( & bar(3 downto 0); then do : foo =>
> in_between; .. because both foo and bar are bi-directional (types inout)
>
> help?
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Idiomatic way to get array of possible slices from string drKreso Ruby 5 01-05-2012 10:50 AM
string/array slices Patrick Tyler Ruby 12 03-31-2011 07:17 AM
Array Slices in Java kvnsmnsn@hotmail.com Java 8 05-30-2005 02:30 AM
No Array slices! What is this? Alex Polite Java 3 06-07-2004 01:52 PM
traversing array slices TonyShirt Perl Misc 4 02-28-2004 03:43 AM



Advertisments