Skip to content

Commit d993d5d

Browse files
committed
Fix naming of SC_MODULES
1 parent 5e019e5 commit d993d5d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

modules/router/include/ips_filter_tlm.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ using namespace std;
1919
struct ips_filter_tlm : public Filter<IPS_IN_TYPE_TB, IPS_OUT_TYPE_TB, IPS_FILTER_KERNEL_SIZE>, public img_target
2020
{
2121

22-
SC_CTOR(ips_filter_tlm): Filter<IPS_IN_TYPE_TB, IPS_OUT_TYPE_TB, IPS_FILTER_KERNEL_SIZE>(Filter<IPS_IN_TYPE_TB, IPS_OUT_TYPE_TB, IPS_FILTER_KERNEL_SIZE>::name()), img_target(img_target::name()) {
22+
ips_filter_tlm(sc_module_name name) : Filter<IPS_IN_TYPE_TB, IPS_OUT_TYPE_TB, IPS_FILTER_KERNEL_SIZE>((std::string(name) + "_HW_block").c_str()), img_target((std::string(name) + "_target").c_str()) {
2323
}
2424

2525
//Override do_when_transaction functions

modules/router/include/memory_tlm.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ using namespace std;
1616
struct memory_tlm : public img_target
1717
{
1818

19-
SC_CTOR(memory_tlm): img_target(img_target::name()) {
19+
memory_tlm(sc_module_name name) : img_target((std::string(name) + "_target").c_str()) {
2020
mem_array = new unsigned char[2764852];
2121
}
2222

modules/router/include/rgb2gray_tlm.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ using namespace std;
1717
struct rgb2gray_tlm : public Rgb2Gray, public img_target
1818
{
1919

20-
SC_CTOR(rgb2gray_tlm): Rgb2Gray(Rgb2Gray::name()), img_target(img_target::name()) {
20+
rgb2gray_tlm(sc_module_name name) : Rgb2Gray((std::string(name) + "_HW_block").c_str()), img_target((std::string(name) + "_target").c_str()) {
2121
}
2222

2323
//Override do_when_transaction functions

modules/router/include/sobel_edge_detector_tlm.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ using namespace std;
1717
struct sobel_edge_detector_tlm : public Edge_Detector, public img_target
1818
{
1919

20-
SC_CTOR(sobel_edge_detector_tlm): Edge_Detector(Edge_Detector::name()), img_target(img_target::name()) {
20+
sobel_edge_detector_tlm(sc_module_name name) : Edge_Detector((std::string(name) + "_HW_block").c_str()), img_target((std::string(name) + "_target").c_str()) {
2121
}
2222

2323
//Override do_when_transaction functions

0 commit comments

Comments
 (0)