qualcomm/qbox
Loading...
Searching...
No Matches
py Namespace Reference

-i2c More...

Detailed Description

-i2c

-uart

This is a proof of concept python-systemc i2c slave model which uses 
systemc features exposed by the pybind11 baesd PythonBinder C++ model to
react on the coming systemc transactions and initiate the proper transactions
from/to the i2c systemc C++ model.

this backend is being used by "qupv3_qupv3_se_wrapper_se0_i2c-test.cc".
CCI parameter current_mod_id_prefix should be set like that: current_mod_id_prefix = "i2c_"; 
This is a proof of concept python-systemc uart backend model which uses
systemc features exposed by the pybind11 baesd PythonBinder C++ model to
react on the coming systemc transactions and initiate the proper transactions
from/to the pl011 uart systemc C++ model.

to connect the model to QQVP please configure it like that in your conf.lua:

python_backend_stdio_0 = {
        moduletype = "python_binder";
        py_module_name = "py-uart";
        py_module_dir = "/path/to/py-models";
        py_module_args = "--enable_input --baudrate 115200";
        current_mod_id_prefix = "uart_";
        biflow_socket_num = 1;
    };

    pl011_uart_0 = {
        moduletype = "Pl011",
        dylib_path = "uart-pl011",
        target_socket = {address= UART0,
                                    size=0x1000,
                                    bind = "&router.initiator_socket"},
        irq = {bind = "&gic_0.spi_in_379"},
        backend_socket = {bind = "&python_backend_stdio_0.biflow_socket_0"},
    };