FPGA Center



SUBTYPE

Bir k覺s覺tlamaya tabi olan ve ana tipleri alt k羹melere ay覺ran tiplerdir. STANDARD paketi i癟inde tan覺ml覺 olan iki adet subtype vard覺r: natural ve positive. Bunlar interger tipine ait alt tiplerdir. Recordlar k覺s覺tlamaya tabi olmazlar It's a kind of type which has constraints. It divides the main types into sub sets. There are two subtypes which are defined in Standard package: Positive and Natural. These subtypes belong to integer type.

subtype subtype_name is main_type range range_constraint;

NOTE:

EXAMPLE:

subtype Numbers is INTEGER range 0 to 9;

Subtype Numbers is constrained with units. So the registre numbers o be used is reduced.

 

                                                                                                           

    

                                                                                                                                    

 

                                                                                                                                                                                                                                                                   

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