oursriharsha
Member level 3

- Joined
- Apr 23, 2009
- Messages
- 54
- Helped
- 3
- Reputation
- 6
- Reaction score
- 0
- Trophy points
- 1,286
- Location
- Mumbai, India
- Activity points
- 1,622
vhdl case statement
when using the case statement for , it displays when others condition is not synthesized.
is there any alternative for this .
<code>
f (STROB1= "01")then
ADC_DATAMOS_TEMP <= ADC_DATAMOS;
else
ADC_DATAMOS_TEMP<= "ZZZZZZZZ";
end if ;
process (CLK_MOS,RST_MOS,ADC_DATAMOS,STROB1,RW_MOS)
begin
if (RST_MOS='0')then
ADC_DATAMOS_TEMP <="00000000";
elsif (RST_DAQ='1') then
case ADDR_MOS is
when "00001" => MOS_REG(0) <= ADC_DATAMOS;
when "00001" => MOS_REG(1) <= ADC_DATAMOS;
when "00001" => MOS_REG(2) <= ADC_DATAMOS;
when "00001" => MOS_REG(3) <= ADC_DATAMOS;
when "00001" => MOS_REG(4) <= ADC_DATAMOS;
when "00001" => MOS_REG(5) <= ADC_DATAMOS;
when "00001" => MOS_REG(6) <= ADC_DATAMOS;
when "00001" => MOS_REG(7) <= ADC_DATAMOS;
when others =>MOS_REG(8) <= ADC_DATAMOS; -- dummy register ..
-- DUNNO WHAT TO DO IN - --THIS others PLEASE HELP
end case ;
end if;
end process;
</code>
in the above case , i have a set of registers to which a data coming on the line is to be written basing on the address that we recieve .
What shuld be written when others case ./???
please help /
when using the case statement for , it displays when others condition is not synthesized.
is there any alternative for this .
<code>
f (STROB1= "01")then
ADC_DATAMOS_TEMP <= ADC_DATAMOS;
else
ADC_DATAMOS_TEMP<= "ZZZZZZZZ";
end if ;
process (CLK_MOS,RST_MOS,ADC_DATAMOS,STROB1,RW_MOS)
begin
if (RST_MOS='0')then
ADC_DATAMOS_TEMP <="00000000";
elsif (RST_DAQ='1') then
case ADDR_MOS is
when "00001" => MOS_REG(0) <= ADC_DATAMOS;
when "00001" => MOS_REG(1) <= ADC_DATAMOS;
when "00001" => MOS_REG(2) <= ADC_DATAMOS;
when "00001" => MOS_REG(3) <= ADC_DATAMOS;
when "00001" => MOS_REG(4) <= ADC_DATAMOS;
when "00001" => MOS_REG(5) <= ADC_DATAMOS;
when "00001" => MOS_REG(6) <= ADC_DATAMOS;
when "00001" => MOS_REG(7) <= ADC_DATAMOS;
when others =>MOS_REG(8) <= ADC_DATAMOS; -- dummy register ..
-- DUNNO WHAT TO DO IN - --THIS others PLEASE HELP
end case ;
end if;
end process;
</code>
in the above case , i have a set of registers to which a data coming on the line is to be written basing on the address that we recieve .
What shuld be written when others case ./???
please help /