Composite data types commonly used in C++, one is a structure, and the other is an enumerated type.
Struct
For structs, if it appears in the top-level function and acts as a top-level function argument, the scalar variable in the struct will be mapped to the scalar-type port, and the array will be mapped to the corresponding memory port. In actual use, it is recommended to declare the structure in the header file in advance. For the elements in the structure, Vivado hls provides the corresponding data pack optimization method. There are two optimization methods, namely field_level and struct_level.
The difference between the two fields_level elements in the structure must be 8 bits. For example, a variable of 6 bits must be extended to 8 bits. If a struct has five elements, each element is 6 bits. The element is expanded to 8 bits and the total bit width is expanded to 40 bits. The struct_level does not change the actual bit width of each element, but the total bit width after encapsulation is bounded by 8 bits. For example, the above total bit width is extended to 32 bits.
Note: Comparing the two types of data pack optimization methods, you will find that the clock, latency and interval, and resource utilization are the same. The data pack can reduce the latency and interval and increase the throughput of the data, because the data pack here expands the for loop.
Enum
Enumerated Type defines a value as a symbolic constant and requires the keyword enum. Elements of the enumerated type are automatically assigned to an integer with a starting value of 0 followed by a 1 in turn. This is to improve the readability of the code.
to sum up
Vivado hls supports both structs and enumerated types, both of which can appear as top-level functions as interfaces. If the structure appears in the top-level function, it can be encapsulated by field_level and struct_level. If the enumerated type appears as an interface in the top-level function, it is actually an integer, and vivado will automatically infer the data bit width of the corresponding mode.
We produce Lighting for commerical ,industrial ,and household . Specially for desk lamp LED which 360 degree bent freely .It can brighten you in any angle as
you want. Road light and functional light also.
Home Outdoor Lighting LED Stadium Light LED Floodlight LED Tri-proof Light LED Street Light LED Garden Light LED Canopy Light Indoor Lighting LED Panel Light LED Batten Light GL Series LED Batten Light GLK Series LED Batten Light
Home Lighting & Furnishings - Quality, Style and Selection. Lamps Plus offers a complete selection of indoor and outdoor lighting fixtures. From stylish ceiling light fixtures, chandeliers and trend-setting ceiling fans to thousands of designer lamps and lamp shades that are in-stock and ready to ship.
Home Light,Led Desk Lamp,Rgb Night Lamp,Bathroom Lights
Jiangmen soundrace electronics and technology co.,ltd. , https://www.soundracegroup.com