scc  2024.06
SystemC components library
trace.h
1 /*******************************************************************************
2  * Copyright 2021 MINRES Technologies GmbH
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *******************************************************************************/
16 
17 #ifndef SCC_TRACE_H
18 #define SCC_TRACE_H
19 
20 #include "observer.h"
21 #include <functional>
22 #include <sysc/tracing/sc_trace.h>
23 
29 namespace scc {
31 sc_core::sc_trace_file* create_vcd_pull_trace_file(const char* name, std::function<bool()> enable = std::function<bool()>());
33 void close_vcd_pull_trace_file(sc_core::sc_trace_file* tf);
34 
36 sc_core::sc_trace_file* create_vcd_push_trace_file(const char* name, std::function<bool()> enable = std::function<bool()>());
38 void close_vcd_push_trace_file(sc_core::sc_trace_file* tf);
39 
41 sc_core::sc_trace_file* create_vcd_mt_trace_file(const char* name, std::function<bool()> enable = std::function<bool()>());
43 void close_vcd_mt_trace_file(sc_core::sc_trace_file* tf);
44 
46 sc_core::sc_trace_file* create_fst_trace_file(const char* name, std::function<bool()> enable = std::function<bool()>());
48 void close_fst_trace_file(sc_core::sc_trace_file* tf);
49 } // namespace scc // end of scc-sysc
51 #endif // SCC_SC_VCD_TRACE_H
SCC TLM utilities.
sc_core::sc_trace_file * create_fst_trace_file(const char *name, std::function< bool()> enable)
create FST file which uses pull mechanism
Definition: fst_trace.cpp:492
void close_vcd_mt_trace_file(sc_core::sc_trace_file *tf)
close the VCD file
sc_core::sc_trace_file * create_vcd_mt_trace_file(const char *name, std::function< bool()> enable=std::function< bool()>())
create compressed VCD file which uses push mechanism and multithreading
void close_fst_trace_file(sc_core::sc_trace_file *tf)
close the FST file
Definition: fst_trace.cpp:494
void close_vcd_push_trace_file(sc_core::sc_trace_file *tf)
close the VCD file
sc_core::sc_trace_file * create_vcd_pull_trace_file(const char *name, std::function< bool()> enable=std::function< bool()>())
create VCD file which uses pull mechanism
sc_core::sc_trace_file * create_vcd_push_trace_file(const char *name, std::function< bool()> enable=std::function< bool()>())
create VCD file which uses push mechanism
void close_vcd_pull_trace_file(sc_core::sc_trace_file *tf)
close the VCD file