VHDL Data Types

Scalar Types 2


   ARCHITECTURE test_real OF test IS
   BEGIN
       PROCESS (X)
         VARIABLE a: REAL;
       BEGIN
         a := 1.3;  -- OK
         a := -7.5;  -- OK
         a := 1;  -- bad
         a := 1.7E13;  -- OK
         A := 5.3 ns;  -- bad
       END PROCESS;
   END TEST;