FPGA Center



PHYSICAL TYPE

Physical type means that group of numerical values ​​indicating a quantity. It consists of an integer value and a measurement unit.

type type_name is range bottom_limit to upper_limit
units
    primary_unit_name
    secondary_unit_name = number  basic_unit_name
    secondary_unit_name = number  basic_unit_name
     . . .
end units type_name

NOTE:

EXAMPLE :

type dıistance is range 0 to 1E5
units
      um; -- micrometer
       mm = 1000 um;     -- millimeter
       Input_1 = 25400 um;  -- inch
  end unitsdıistance;
.........................................
variable D1, D2 : dıistance;
.............................................
      Uz1 := 44 mm;
      Uz2 := 2 Input_1 - 5 mm;  --Arithmetic operation is done between the different units of the same type.
if D1 >D2 then ...

DETAILED EXPLANATION :

                                                                                                           

    

                                                                                                                                    

 

                                                                                                                                                                                                                                                                   

Home | Fpga | VHDL | VHDL Dictionary | Digital Design | Simulation | PCB | Examples | Contact Us
Copyright © 2010 - 2013 FPGAcenter. All Rights Reserved.