AHDL

Case Statement



The Case Statement lists the alternatives that may be activated depending on the value of the variable, group, or expression following the CASE keyword.

The following example shows a Case Statement:

CASE f[].q IS
   WHEN H"00" =>
      addr[] = 0;
      s = a & b;
   WHEN H"01" =>
      count[].d = count[].q + 1;
   WHEN H"02", H"03", H"04" =>
      f[3..0].d = addr[4..1];
   WHEN OTHERS =>
      f[].d = f[].q;
END CASE;

The Case Statement has the following characteristics:


Back to Top

- Altera -

 

Created by chm2web html help conversion utility.