FPGA Center



SILICING

Slicing method is used to divide arrays into pieces. So each pieces that are consequtive in a one dimentional array, can be named as slices.

             object_name ( range )
             function_call ( range )

NOTE:

EXAMPLE :

signal Data : Bit_Vector (15 downto 0); -- Main array
Data (15 downto 12) -- Slice 1 : An array with 4 elements
Data (11 downto 11) -- Slice 2 : An array with 1 element
Data (8 downto 10)   -- Slice 3 : The range of this array is null.
Data (5 to 13)             ÔÇô  Error : Direction of the is not valid.

 

 

                                                                                                           

    

                                                                                                                                    

 

                                                                                                                                                                                                                                                                   

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