Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - array slices

 
Thread Tools Search this Thread
Old 10-01-2003, 04:42 AM   #1
Default array slices


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?




proudfeet
  Reply With Quote
Old 10-01-2003, 09:55 AM   #2
Egbert Molenkamp
 
Posts: n/a
Default Re: array slices

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" <> wrote in message
news:ATseb.2113$...
> 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?
>
>





Egbert Molenkamp
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
constants as of array of integers, for loops octavsly Hardware 0 04-25-2009 11:53 AM
How to retrieve array parameter ( JAVA ) naruponk Software 1 04-16-2009 10:20 AM
Array Programme rits Software 2 03-04-2009 05:18 PM
synthesis error sekhar_kollati Hardware 0 11-13-2007 04:48 AM
need help Invalid length for a Base-64 char array rrwestva Hardware 0 07-04-2006 09:36 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46