Changes between Version 25 and Version 26 of Writing Rules/Caba


Ignore:
Timestamp:
Nov 14, 2012, 6:01:25 PM (12 years ago)
Author:
meunier
Comment:

Coloration syntaxique du source

Legend:

Unmodified
Added
Removed
Modified
  • Writing Rules/Caba

    v25 v26  
    5151A typical VCI component declaration is:
    5252{{{
     53#!cpp
    5354#include "base_module.h"
    5455#include "vci_target.h"
     
    9394and contains five attributes:
    9495{{{
     96#!cpp
    9597const std::string   m_name;           // segment's name
    9698addr_t              m_base_address;   // base address
     
    109111A typical VCI target component will contain the following ports:
    110112{{{
     113#!cpp
    111114sc_in<bool>                         p_resetn;
    112115sc_in<bool>                         p_clk;
     
    126129A typical VCI target will contain the following registers :
    127130{{{
     131#!cpp
    128132sc_signal<int>                          r_vci_fsm;
    129133sc_signal<typename vci_param::trdid_t>  r_buf_trdid;
     
    143147
    144148{{{
     149#!cpp
    145150const soclib::common::Segment   m_segment;
    146151}}}
     
    155160
    156161{{{
     162#!cpp
    157163VciExampleModule(
    158164    sc_module_name                     insname,
     
    206212
    207213{{{
     214#!cpp
    208215#include <systemc.h>
    209216#include "caba/util/base_module.h"
     
    278285
    279286{{{
     287#!cpp
    280288#include "caba/target/vci_locks.h"
    281289
     
    416424Component instanciation could be (`template_inst.cc`):
    417425{{{
     426#!cpp
    418427#include "caba/target/vci_locks.cc"
    419428template class soclib::caba::VciLocks<soclib::caba::VciParams<4,1,32,1,1,1,8,1,1,1> >;