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

Reply

VHDL - Buffer

 
Thread Tools Search this Thread
Old 03-11-2008, 06:11 AM   #1
Default Buffer


Hi everyone
i want to model a buffer by VHDL

i have a series of assign statemnet which assign the output of the
gates to diffrent signals,
here is couple lines of what i have.
msti(i).hgrant <= hgrant(i);
msti(i).hready <= hready;
msti(i).hrdata <= hrdata;
msti(i).hresp <= hresp; ,

it's working verywell by itself, but i need to synthesis it, and
after synthesising i get error on them , and need a buffer to store
the output and then assign the the value to to the right hand signals.

how can i add the buffer?
thank you


shohreh@gmail.com
  Reply With Quote
Old 03-11-2008, 07:50 AM   #2
jeppe
Senior Member
 
Join Date: Mar 2008
Location: Denmark
Posts: 245
Default
I'm not sure where your problem origin. Could it be use of a record structure - never tried that for synthesize.

You should be aware that signals might "disappear" if the synthesize tools finds they are not needed.

Consider this example:

Entity .....
Port( Clk: IN Std_Logic;
Count OUT Std_logic_vector( 3 downto 0)
);

Architecture ......

begin
process( Clk)
begin
if rising_edge( Clk) then
Count <= Count + 1; -- THIS LINE GIVES AN ERROR
end if;
end process;
end ...

----------------------------------------------------------------
Entity .....
Port( Clk: IN Std_Logic;
Count INOUT Std_logic_vector( 3 downto 0)
);

Architecture ......

begin
process( Clk)
begin
if rising_edge( Clk) then
Count <= Count + 1; -- OK WITH INOUT
end if;
end process;
end ...

----------------------------------------------------------------
Entity .....
Port( Clk: IN Std_Logic;
Count OUT Std_logic_vector( 3 downto 0)
);

Architecture ......
Signal Temp_Count: Std_logic_vector( 3 downto 0)

begin
Count <= Temp_Count;
process( Clk)
begin
if rising_edge( Clk) then
Temp_Count <= Temp_Count + 1; --OK
end if;
end process;
end ...

Jeppe


jeppe
jeppe is offline   Reply With Quote
Old 03-11-2008, 11:54 AM   #3
KJ
 
Posts: n/a
Default Re: Buffer
On Mar 11, 2:11*am, shoh...@gmail.com wrote:
> Hi everyone
> i want to model a buffer by VHDL
>
> i have a series of assign statemnet which assign the output of the
> gates to diffrent signals,
> here is couple lines of what i have.
> msti(i).hgrant *<= hgrant(i);
> msti(i).hready *<= hready;
> msti(i).hrdata *<= hrdata;
> msti(i).hresp * <= hresp; ,
>
> *it's working verywell by itself, but i need to synthesis it, and
> after synthesising i get error on them


What error is actually getting reported?

> , and need a buffer to store
> the output


Says who?

> and then assign the the value to to the right hand signals.
>


Assign the value of what to the right hand signals?

> how can i add the buffer?


The statements that you posted are examples of 'buffers'. It doesn't
appear to me that you've posted enough of your code for anyone to
figure what the real problem is and by not posting what the error
message is you've made it even more difficult. You then seem to leap
to the conclusion that you need a 'buffer' for some reason without
even realizing that each of your concurrent assignments are examples
of adding such a buffer.

More information would help.

Kevin Jennings


KJ
  Reply With Quote
Old 03-11-2008, 05:20 PM   #4
Dwayne Dilbeck
 
Posts: n/a
Default Re: Buffer
IF you want quality help, you need to give us more information.

What is the ERROR message? Why do you believe you need a buffer?
Why do yuou believe your code works prior to synthesis? etc....

<> wrote in message
news:c4ec3da7-7da4-4ab4-b11b-...
> Hi everyone
> i want to model a buffer by VHDL
>
> i have a series of assign statemnet which assign the output of the
> gates to diffrent signals,
> here is couple lines of what i have.
> msti(i).hgrant <= hgrant(i);
> msti(i).hready <= hready;
> msti(i).hrdata <= hrdata;
> msti(i).hresp <= hresp; ,
>
> it's working verywell by itself, but i need to synthesis it, and
> after synthesising i get error on them , and need a buffer to store
> the output and then assign the the value to to the right hand signals.
>
> how can i add the buffer?
> thank you





Dwayne Dilbeck
  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
Computer Security aldrich.chappel.com.use@gmail.com A+ Certification 0 11-27-2007 02:11 AM
ARRAY(n DOWNTO 0) OF STD_LOGIC_VECTOR(m DOWNTO 0) - VHDL freitass Hardware 0 11-01-2007 03:44 PM
Buffer Overrun Error (Windows\Explorer.exe) 911pyro General Help Related Topics 2 06-01-2007 02:48 AM
Newbie question - Buffer underruns and Nerovision Express telba most DVD Video 1 03-07-2005 11:14 PM
buffer problem when burning mqq13 DVD Video 5 02-02-2005 12:47 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