![]() |
|
|
|
#1 |
|
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 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 |
|
|
|
|
#2 |
|
Posts: n/a
|
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 > 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 |
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |