Changes between Version 25 and Version 26 of Writing Rules/Caba
- Timestamp:
- Nov 14, 2012, 6:01:25 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Writing Rules/Caba
v25 v26 51 51 A typical VCI component declaration is: 52 52 {{{ 53 #!cpp 53 54 #include "base_module.h" 54 55 #include "vci_target.h" … … 93 94 and contains five attributes: 94 95 {{{ 96 #!cpp 95 97 const std::string m_name; // segment's name 96 98 addr_t m_base_address; // base address … … 109 111 A typical VCI target component will contain the following ports: 110 112 {{{ 113 #!cpp 111 114 sc_in<bool> p_resetn; 112 115 sc_in<bool> p_clk; … … 126 129 A typical VCI target will contain the following registers : 127 130 {{{ 131 #!cpp 128 132 sc_signal<int> r_vci_fsm; 129 133 sc_signal<typename vci_param::trdid_t> r_buf_trdid; … … 143 147 144 148 {{{ 149 #!cpp 145 150 const soclib::common::Segment m_segment; 146 151 }}} … … 155 160 156 161 {{{ 162 #!cpp 157 163 VciExampleModule( 158 164 sc_module_name insname, … … 206 212 207 213 {{{ 214 #!cpp 208 215 #include <systemc.h> 209 216 #include "caba/util/base_module.h" … … 278 285 279 286 {{{ 287 #!cpp 280 288 #include "caba/target/vci_locks.h" 281 289 … … 416 424 Component instanciation could be (`template_inst.cc`): 417 425 {{{ 426 #!cpp 418 427 #include "caba/target/vci_locks.cc" 419 428 template class soclib::caba::VciLocks<soclib::caba::VciParams<4,1,32,1,1,1,8,1,1,1> >;