Systemc tlm 2 0
1 / 21

Systemc TLM-2.0 - PowerPoint PPT Presentation

  • Uploaded on

Systemc TLM-2.0. What is TLM ?. In short, TLM is communication using function calls (as it is shown in the picture ). 在 SystemC 上增加总线功能“库”. How is TLM brought up?. Transaction Level Modeling ( TLM ) is motivated by a number of practical problems. These include :

I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
Download Presentation

PowerPoint Slideshow about 'Systemc TLM-2.0' - penney

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

What is tlm
What is TLM ?

  • In short, TLM is communication using function calls (as it is shown in the picture ).

  • 在SystemC上增加总线功能“库”

How is tlm brought up
How is TLM brought up?

Transaction Level Modeling ( TLM ) is motivated by a number of practical problems. These include :

  • Providing an early platform for software development

  • System Level Design Exploration and Verification

  • The need to use System Level Models in Block Level Verification.

Tlm 1 0

Core concept: TLM API (应用程序接口):

  • Support design & verification IP reuse

  • Usability

  • Safety

  • Speed

  • Generality

    • Abstraction Levels

    • HW / SW

    • Different communication architectures (bus, packet,...)

    • Different protocols

What is systemc tlm2 0
What is SystemC TLM2.0 ?

  • TLM1.0 lacks of model interoperability, where different vendors create models to be used by a common customer; it is up to the TLM2.0 to interface the components so they talk to each other.

  • The main objective for the TLM 2.0 standard is to solve these problems of model interoperability while defining a solid API and suggested data structures that, when used as proposed, enable model interoperability.

  • TLM2.0 is announced by OSCI and it delivers a truly viable standard for modelinteroperability and reuse of intellectual property.

Tlm 1 0 tlm 2 0
TLM-1.0  TLM-2.0

  • TLM-2.0 is the new standard for interoperability between memory mapped bus models

  • TLM-1.0 is not deprecated (put, get, nb_put, nb_get, transport)

  • TLM-1.0 is included within TLM-2.0

Why is tlm 2 0 so important
Why is TLM-2.0 so important?

  • It provides an essential framework needed for model exchange within companies and across the IP supply chain by explicitly addressing virtual prototyping.

  • The standard enables optimal reuse of models and modeling effort across different use cases.

Content of osci tlm 2 0
Content of OSCI TLM-2.0

  • Interfaces for Loosely-Timed (LT) Modeling


  • Interfaces for Approximately-Timed (AT) Modeling


  • Generic Payload for Memory-Mapped Buses


  • Direct Memory Interface (DMI)


  • Debug Transaction Interface


Content of osci tlm 2 02
Content of OSCI TLM-2.0

Use Cases

  • Software development

  • Software performance

  • Architectural analysis

  • Hardware verification

Content of osci tlm 2 03
Content of OSCI TLM-2.0

Coding Styles, Abstractions

  • Loosely-timed

  • Approximately-timed


Blocking interface and Non-blocking interface

  • In SystemC, there are two basic kinds of processes: SC_THREAD and SC_METHOD. The key difference between the two is that it is possible to suspend an SC_THREAD by calling wait(.). SC_METHODs on the other hand can only be synchronized by making them sensitive to an externally defined sc_event.

  • OSCI TerminologyContains wait(.)Can be called from

    Blocking Possibly SC_THREAD only

    Non Blocking NoSC_METHOD or



DMI (Direct Memory Interface)

  • Gives an initiator a direct pointer to memory in a target, e.g an ISS

  • By-passes the sockets and transport calls

  • Read or write access by default

  • Extensions may permit other kinds of access, e.g. security mode

  • Target responsible for invalidating pointer


Sockets: an interface that can encapsulation other interface

  • Group the transport, DMI and debug transport interfaces

  • Bind forward and backward paths with a single call

  • Strong connection checking

  • Have a bus width parameter


Generic payload

  • Typical attributes of memory-mapped busses

    • command, address, data, byte enables, single word transfers, burst transfers, streaming, response status

  • Off-the-shelf general purpose payload

    • for abstract bus modeling

    • ignorable extensions allow full interoperability

  • Used to model specific bus protocols

    • mandatory static extensions

    • compile-time type checking to avoid incompatibility

    • low implementation cost when bridging protocols


  • Extensions: it is used for flexibility of modeling.

  • Quantum: itis user-configurable which can speed up the performance

  • Phases: transaction Phases which is used in Approximately-timed model and the Base protocol phases is BEGIN_REQ  END_REQ  BEGIN_RESP  END_RESP.

Content of osci tlm 2 04
Content of OSCI TLM-2.0

Mechanisms (Loosely-timed)

  • Blocking interface

  • DMI (Direct Memory Interface)

  • Quantum

  • Sockets

  • Generic payload

  • Extensions

Content of osci tlm 2 05
Content of OSCI TLM-2.0

Mechanisms (Approximately-timed)

  • Sockets

  • Generic payload

  • Extensions

  • Phases

  • Non-blocking

TLM-2 Core Interfaces - Transport


void b_transport( TRANS& , sc_time& ) ;


tlm_sync_enumnb_transport_fw( TRANS& , PHASE& , sc_time& );


tlm_sync_enumnb_transport_bw( TRANS& , PHASE& , sc_time& );

TLM-2 Core Interfaces - DMI and Debug


boolget_direct_mem_ptr( TRANS& trans , tlm_dmi& dmi_data ) ;


void invalidate_direct_mem_ptr( sc_dt::uint64 start_range,

sc_dt::uint64 end_range ) ;


unsigned inttransport_dbg( TRANS& trans ) ;