Changes between Version 1 and Version 2 of Writing Rules/General
- Timestamp:
- Apr 26, 2007, 10:29:54 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Writing Rules/General
v1 v2 5 5 [[PageOutline]] 6 6 7 = A) Introduction = 8 9 = B) Naming convention = 7 = A) Naming conventions = 10 8 11 9 '''namespaces''' … … 25 23 * All component member variable names should be prefixed with `m_` 26 24 27 = C) Component indexation =25 = B) Component indexation = 28 26 29 27 In a VCI-based architecture, all initiators and targets must be indexed. Initiators and targets have different address spaces. … … 33 31 Indexes can be : 34 32 * a simple scalar index, in case of a ''flat'' interconnect. 35 * a composite index, in case of a ''clusterised'' architecture s, using a two level hierarchical interconnect. Each component is identified by two scalars: cluster_index, local_index.33 * a composite index, in case of a ''clusterised'' architecture, using a two level hierarchical interconnect. Each component is identified by two scalars: cluster_index, local_index. 36 34 37 35 The `common/int_tab.h`file defines an utility class storing a list of indexes : All indexes must be declared as IntTabs. 36 37 = C) Endianness = 38 39 All SoCLib targets components respect the little-endianness convention. 40 In case of write, the bytes transfers are fully controlled by the VCI BE bits : 41 * If the VCI word is larger than one byte, the LSB bits of the VCI ADDRESS are ignored, and the VCI ADDRESS is only used to address the selected VCI word. 42 * the selected bytes are specified the VCI BE field, and the BE0 bit is always associated to the Byte 0 of the VCI WDATA field. 43 * The BE1 bit is associated