SocLib Components General Index


1) Functional Description

This VCI target is a simple log sink, receiving any written character and printing it to the external world.

It only has one mapped register accepting only writes.

A putc implementation could be:

static const volatile void* log_address = 0xc0000000;

static inline void putc(const size_t term_no, const char x)
    soclib_io_set( tty_address, 0, x );

2) Component definition & usage


See SoclibCc/VciParameters

Uses( 'caba:vci_log_console', **vci_parameters )

3) CABA Implementation

CABA sources

CABA Constructor parameters

     sc_module_name name,   // Instance name
     const soclib::common::IntTab &index,   //  Target index
     const soclib::common::MappingTable &mt)   // Mapping Table

Example instanciation:

VciLogConsole  tty("logger", 
               mapping_table );

CABA Ports

  • sc_in<bool> p_resetn : Global system reset
  • sc_in<bool> p_clk : Global system clock
  • soclib::common::VciTarget<vci_param> p_vci : The VCI port
Last modified 13 years ago Last modified on Nov 27, 2009, 10:38:15 AM