qualcomm/qbox
Loading...
Searching...
No Matches
pathid_extension.h
1
/*
2
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All Rights Reserved.
3
* Author: GreenSocs 2022
4
*
5
* SPDX-License-Identifier: BSD-3-Clause
6
*/
7
8
#ifndef _GREENSOCS_PATHID_EXTENSION_H
9
#define _GREENSOCS_PATHID_EXTENSION_H
10
11
#include <systemc>
12
#include <tlm>
13
14
namespace
gs
{
15
24
25
class
PathIDExtension :
public
tlm::tlm_extension<PathIDExtension>,
public
std::vector<int>
26
{
27
public
:
28
PathIDExtension() =
default
;
29
PathIDExtension(
const
PathIDExtension&) =
default
;
30
31
public
:
32
virtual
tlm_extension_base* clone()
const override
{
return
new
PathIDExtension(*
this
); }
33
34
virtual
void
copy_from(
const
tlm_extension_base& ext)
override
35
{
36
const
PathIDExtension& other =
static_cast<
const
PathIDExtension&
>
(ext);
37
*
this
= other;
38
}
39
};
40
}
// namespace gs
41
#endif
gs
Tool which reads a Lua configuration file and sets parameters.
Definition
biflow.cc:10
systemc-components
common
include
tlm-extensions
pathid_extension.h
Generated by
1.15.0