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

Reply

VHDL - bus copying....

 
Thread Tools Search this Thread
Old 06-11-2006, 06:24 PM   #1
Default bus copying....


Hi,

signal a : std_logic_vector (7 downto 0)
signal b : std_logic_vector (7 downto 0)
signal c : std_logic_vector (15 downto 0)

....

c(7 downto 0) <= a(7 downto 0);
c(15 downto <= b(7 downto 0);

I don't see why the compiler doesn't accept this arrangement
assertions? Basically a and b are LSB and MSB of a bus.

GD



GDan
  Reply With Quote
Old 06-12-2006, 07:09 AM   #2
backhus
 
Posts: n/a
Default Re: bus copying....
Hi GD,
what compiler do you use?
But the problem you run into may be caused by using concurrent
assignment on the same signal. For the Compiler each concurrent
assignment is seen as a separate process. If your compiler doesn't check
the access to signal c element by element but only the whole signal you
have created a multiple driver problem. (Not really, but the way the
compiler sees it.)

You can overcome the problem by creating a single process with
sequential assignment:

AssignBus : process (a,b,)
begin
c(7 downto 0) <= a(7 downto 0);
c(15 downto <= b(7 downto 0);
end process;

Have a nice simulation
Eilert

GDan schrieb:
> Hi,
>
> signal a : std_logic_vector (7 downto 0)
> signal b : std_logic_vector (7 downto 0)
> signal c : std_logic_vector (15 downto 0)
>
> ...
>
> c(7 downto 0) <= a(7 downto 0);
> c(15 downto <= b(7 downto 0);
>
> I don't see why the compiler doesn't accept this arrangement
> assertions? Basically a and b are LSB and MSB of a bus.
>
> GD
>



backhus
  Reply With Quote
Old 06-12-2006, 07:38 AM   #3
Peter
 
Posts: n/a
Default Re: bus copying....
GDan skrev:

> Hi,
>
> signal a : std_logic_vector (7 downto 0)
> signal b : std_logic_vector (7 downto 0)
> signal c : std_logic_vector (15 downto 0)
>
> ...
>
> c(7 downto 0) <= a(7 downto 0);
> c(15 downto <= b(7 downto 0);
>
> I don't see why the compiler doesn't accept this arrangement
> assertions? Basically a and b are LSB and MSB of a bus.
>
> GD


Why not:
c <= b & a; --?

/Peter



Peter
  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
Is ripping unencrypted scratched DVD more reliable than 1:1 copying of that same DVD? Kathi DVD Video 0 07-17-2006 07:46 AM
Copying DVDs may be legal syofcdyagwrq@yahoo.com DVD Video 48 03-06-2006 05:54 PM
Problem copying homemade dvd Winny DVD Video 3 09-30-2004 09:45 PM
my article on copying DVD movies JB DVD Video 7 11-12-2003 10:18 PM
Film Studios Sue Over DVD Copying Software (Reuters) Tarkus DVD Video 0 09-18-2003 04:54 AM




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