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

Reply

VHDL - ERROR MESSAGE IN MODELSIM

 
Thread Tools Search this Thread
Old 06-09-2007, 12:36 AM   #1
Default ERROR MESSAGE IN MODELSIM



HELLO GROUP,

IN THE FOLLOWING BLOCK. I'M GETTING ERROR AS:
** Error: arbit.vhd(39): Case statement covers only 1 out of 5 cases.
<<<<< ERROR
** Error: arbit.vhd(1: Nonresolved signal 'state_reg' has multiple
sources. <<<< ERROR



architecture arbiter_discipline_arch of Arbiter is

type arbit_state_type is (init, grant0, grant1, grant2, grant3);
signal state_reg, state_next : arbit_state_type; <<<<<<<<<<<<<<<<<<
LINE 18

begin

--state register
process(clock, reset)
begin

if (reset = '1') then
state_reg <= init;
elsif(clock'event and clock = '1' ) then
state_reg <= state_next;
end if;

end process;

process(state_reg, acknowledge, request)
begin

acknowledge <= "0000";

case state_reg is <<<<<<<<<<<<<<<<<< LINE 39

when init =>
if request(0) = '1' then
state_reg <= grant0;
else
state_reg <= init;
end if;


end case;
end process;

THANKS,



Amit
  Reply With Quote
Old 06-09-2007, 02:17 AM   #2
Amit
 
Posts: n/a
Default Re: ERROR MESSAGE IN MODELSIM
On Jun 8, 4:36 pm, Amit <amit.ko...@gmail.com> wrote:
> HELLO GROUP,
>
> IN THE FOLLOWING BLOCK. I'M GETTING ERROR AS:
> ** Error: arbit.vhd(39): Case statement covers only 1 out of 5 cases.
> <<<<< ERROR
> ** Error: arbit.vhd(1: Nonresolved signal 'state_reg' has multiple
> sources. <<<< ERROR
>
> architecture arbiter_discipline_arch of Arbiter is
>
> type arbit_state_type is (init, grant0, grant1, grant2, grant3);
> signal state_reg, state_next : arbit_state_type; <<<<<<<<<<<<<<<<<<
> LINE 18
>
> begin
>
> --state register
> process(clock, reset)
> begin
>
> if (reset = '1') then
> state_reg <= init;
> elsif(clock'event and clock = '1' ) then
> state_reg <= state_next;
> end if;
>
> end process;
>
> process(state_reg, acknowledge, request)
> begin
>
> acknowledge <= "0000";
>
> case state_reg is <<<<<<<<<<<<<<<<<< LINE 39
>
> when init =>
> if request(0) = '1' then
> state_reg <= grant0;
> else
> state_reg <= init;
> end if;
>
> end case;
> end process;
>
> THANKS,




solved. thanks anyway.





Amit
  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
Error in Modelsim 6.0a boitsas Software 1 10-26-2009 05:36 AM
simprim problems on modelsim saiyijinprince Hardware 2 04-05-2007 02:24 PM
Need help on Modelsim VHDL syntax? ASAP:) kaji General Help Related Topics 0 03-14-2007 10:43 PM
Need help on a Modelsim VHDL Syntax? ASAP:) kaji Software 0 03-14-2007 10:43 PM
Need Help on a Modelsim VHDL Syntax....ASAP:) kaji Hardware 0 03-14-2007 10:41 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