Changes between Initial Version and Version 1 of Component/Vci Log Console


Ignore:
Timestamp:
Feb 22, 2009, 4:58:58 PM (15 years ago)
Author:
Nicolas Pouillon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Component/Vci Log Console

    v1 v1  
     1[wiki:Component SocLib Components General Index]
     2
     3= !VciLogConsole =
     4
     5== 1) Functional Description ==
     6
     7This VCI target is a simple log sink, receiving any written
     8character and printing it to the external world.
     9
     10It only has one mapped register accepting only writes.
     11
     12A putc implementation could be:
     13{{{
     14
     15static const volatile void* log_address = 0xc0000000;
     16
     17static inline void putc(const size_t term_no, const char x)
     18{
     19    soclib_io_set( tty_address, 0, x );
     20}
     21}}}
     22
     23== 2) Component definition & usage ==
     24
     25source:trunk/soclib/soclib/module/connectivity_component/vci_log_console/caba/metadata/vci_log_console.sd
     26
     27See [wiki:SoclibCc/VciParameters SoclibCc/VciParameters]
     28{{{
     29Uses( 'caba:vci_log_console', **vci_parameters )
     30}}}
     31
     32== 3) CABA  Implementation ==
     33 
     34=== CABA sources ===
     35 
     36 * interface : source:trunk/soclib/soclib/module/connectivity_component/vci_log_console/caba/source/include/vci_log_console.h
     37 * implementation : source:trunk/soclib/soclib/module/connectivity_component/vci_log_console/caba/source/src/vci_log_console.cpp
     38
     39
     40=== CABA Constructor parameters ===
     41
     42{{{
     43VciLogConsole(
     44     sc_module_name name,   // Instance name
     45     const soclib::common::IntTab &index,   //  Target index
     46     const soclib::common::MappingTable &mt)   // Mapping Table
     47}}}
     48
     49Example instanciation:
     50{{{
     51VciLogConsole  tty("logger",
     52               IntTab(2,3),
     53               mapping_table );
     54}}}
     55Note : the name list MUST be terminated by NULL.
     56
     57=== CABA Ports ===
     58
     59 * sc_in<bool> '''p_resetn''' : Global system reset
     60 * sc_in<bool> '''p_clk''' : Global system clock
     61 * soclib::common::!VciiTarget<vci_param> '''p_vci''' : The VCI port