Skip to content

Printer JSON

Tymoteusz Blazejczyk edited this page Mar 5, 2018 · 5 revisions

Interface: logic/printer/json.hpp

Example output for default logic::axi4::stream::scoreboard when fails:

{
    "rx": {
        "tid": {
            "width": 1,
            "value": "0x0"
        },
        "tdest": {
            "width": 1,
            "value": "0x0"
        },
        "tuser": {
            "width": 1
        },
        "tkeep": {
            "width": 4
        },
        "tstrb": {
            "width": 4
        },
        "tdata": {
            "width": 32
        },
        "transaction": [
            {
                "time": 1.115e-06,
                "tuser": "0x0",
                "tkeep": "0xf",
                "tstrb": "0xf",
                "tdata": "0x130a03cd"
            },
            {
                "time": 1.118e-06,
                "tuser": "0x0",
                "tkeep": "0xf",
                "tstrb": "0xf",
                "tdata": "0x0bd3dc41"
            },
            {
                "time": 1.122e-06,
                "tuser": "0x0",
                "tkeep": "0xf",
                "tstrb": "0xf",
                "tdata": "0xb0ec754f"
            },
            {
                "time": 1.123e-06,
                "tuser": "0x0",
                "tkeep": "0x1",
                "tstrb": "0x1",
                "tdata": "0x000000dc"
            }
        ]
    },
   "tx": {
        "tid": {
            "width": 1,
            "value": "0x0"
        },
        "tdest": {
            "width": 1,
            "value": "0x0"
        },
        "tuser": {
            "width": 1
        },
        "tkeep": {
            "width": 4
        },
        "tstrb": {
            "width": 4
        },
        "tdata": {
            "width": 32
        },
        "transaction": [
            {
                "time": 1.127e-06,
                "tuser": "0x0",
                "tkeep": "0xf",
                "tstrb": "0xf",
                "tdata": "0x130a03cd"
            },
            {
                "time": 1.131e-06,
                "tuser": "0x0",
                "tkeep": "0xf",
                "tstrb": "0xf",
                "tdata": "0x0bd3dc41"
            },
            {
                "time": 1.135e-06,
                "tuser": "0x0",
                "tkeep": "0x3",
                "tstrb": "0x3",
                "tdata": "0x0000754f"
            }
        ]
    }
}
Clone this wiki locally