transaction level model generation -凯发k8网页登录
hdl verifier™ integrates with simulink® coder™ or embedded coder® to export systemc™ tlm-compatible transaction-level models. you can integrate this component into your hdl simulation as a behavioral model.
the tlm generation tool provides a default socket and memory configuration. to customize the socket and memory map of the tlm component, provide an ip-xact™ file. you can configure the generated component to use a systemc thread or a callback function.
hdl verifier generates a tlm test bench, test vectors, and a makefile to verify the component and assist with integration into your hdl simulator environment.
topics
generate tlm component and test bench
this example shows how to configure a simulink® model to generate a systemc™/tlm component using the tlmgenerator target for either simulink coder™ or embedded coder®.
after you obtain the tlm component files generated by hdl verifier software, you can compile the tlm component and the optional test bench with osci systemc libraries and the osci tlm libraries.
the algorithm you use to generate the tlm component can be made of any combination of simulink blocks that can generate c code.
most subsystems that can be converted to c code are suitable for generating a tlm component.
the tlm generator exports a target tlm component from a simulink model subsystem.
hdl verifier software generates the following files:
the following workflow lists the steps required to generate a tlm component using hdl verifier software:
define memory map
to customize the tlm interface of the component you want to generate, you can import your own ip-xact xml file into the tlm generator.
the tlm generator automatically generates an ip-xact file that complies with ieee® standard for ip-xact 1685-2009.
the systemc modeling library (scml) is a tlm 2.0 compatible api library for creating tlm model interfaces for use with synopsys® prototyping tools.
export tlm component
after code generation completes, go to your working folder.
describes the generated tlm components constructor and default parameters, with information for changing those parameters.
the test bench generation option is controlled by the tlm testbench tab of the configuration parameters dialog box.