scc  2024.06
SystemC components library
sc_vcd_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_SC_VCD_TRACE_H
18 #define SCC_SC_VCD_TRACE_H
19 
20 #include "trace.h"
21 
27 namespace scc {
29 inline sc_core::sc_trace_file* scc_create_vcd_trace_file(const char* name, std::function<bool()> enable = std::function<bool()>()) {
30  return create_vcd_pull_trace_file(name, enable);
31 }
32 inline void scc_close_vcd_trace_file(sc_core::sc_trace_file* tf) { close_vcd_pull_trace_file(tf); }
33 } // namespace scc // end of scc-sysc
35 #endif // SCC_SC_VCD_TRACE_H
SCC TLM utilities.
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
void close_vcd_pull_trace_file(sc_core::sc_trace_file *tf)
close the VCD file
sc_core::sc_trace_file * scc_create_vcd_trace_file(const char *name, std::function< bool()> enable=std::function< bool()>())
keep backward compatibility
Definition: sc_vcd_trace.h:29