-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from andrewboutros/dev-gtrieu
Automatic Wrapper Generation / RAD-Sim C++17 enable
- Loading branch information
Showing
103 changed files
with
6,437 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
.vscode | ||
.DS_store | ||
radsim_knobs | ||
radsim_knobs | ||
__pycache__ | ||
|
||
test/*.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#include <Vadder.h> | ||
#include <adder.hpp> | ||
|
||
adder::adder(const sc_module_name &name) : RADSimModule(name) { | ||
Vadder* vadder = new Vadder{"vadder"}; | ||
vadder->clk(clk); | ||
vadder->rst(rst); | ||
vadder->axis_adder_interface_tvalid(axis_adder_interface.tvalid); | ||
vadder->axis_adder_interface_tlast(axis_adder_interface.tlast); | ||
vadder->axis_adder_interface_tdata(axis_adder_interface.tdata); | ||
vadder->axis_adder_interface_tready(axis_adder_interface.tready); | ||
vadder->response(response); | ||
vadder->response_valid(response_valid); | ||
|
||
this->RegisterModuleInfo(); | ||
} | ||
|
||
adder::~adder() {} | ||
|
||
void adder::RegisterModuleInfo() { | ||
std::string port_name; | ||
_num_noc_axis_slave_ports = 0; | ||
_num_noc_axis_master_ports = 0; | ||
_num_noc_aximm_slave_ports = 0; | ||
_num_noc_aximm_master_ports = 0; | ||
port_name = module_name + ".axis_adder_interface"; | ||
RegisterAxisSlavePort(port_name, &axis_adder_interface, 128, 0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#pragma once | ||
|
||
#include <axis_interface.hpp> | ||
#include <design_context.hpp> | ||
#include <radsim_defines.hpp> | ||
#include <radsim_module.hpp> | ||
#include <string> | ||
#include <systemc.h> | ||
#include <vector> | ||
|
||
class adder : public RADSimModule { | ||
public: | ||
sc_in<bool> rst; | ||
sc_out<sc_bv<128>> response; | ||
sc_out<bool> response_valid; | ||
|
||
axis_slave_port axis_adder_interface; | ||
|
||
adder(const sc_module_name &name); | ||
~adder(); | ||
|
||
SC_HAS_PROCESS(adder); | ||
void RegisterModuleInfo(); | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#include <Vclient.h> | ||
#include <client.hpp> | ||
|
||
client::client(const sc_module_name &name) : RADSimModule(name) { | ||
Vclient* vclient = new Vclient{"vclient"}; | ||
vclient->clk(clk); | ||
vclient->rst(rst); | ||
vclient->client_tdata(client_tdata); | ||
vclient->client_tlast(client_tlast); | ||
vclient->client_valid(client_valid); | ||
vclient->axis_client_interface_tready(axis_client_interface.tready); | ||
vclient->client_ready(client_ready); | ||
vclient->axis_client_interface_tvalid(axis_client_interface.tvalid); | ||
vclient->axis_client_interface_tlast(axis_client_interface.tlast); | ||
vclient->axis_client_interface_tdest(axis_client_interface.tdest); | ||
vclient->axis_client_interface_tid(axis_client_interface.tid); | ||
vclient->axis_client_interface_tstrb(axis_client_interface.tstrb); | ||
vclient->axis_client_interface_tkeep(axis_client_interface.tkeep); | ||
vclient->axis_client_interface_tuser(axis_client_interface.tuser); | ||
vclient->axis_client_interface_tdata(axis_client_interface.tdata); | ||
|
||
this->RegisterModuleInfo(); | ||
} | ||
|
||
client::~client() {} | ||
|
||
void client::RegisterModuleInfo() { | ||
std::string port_name; | ||
_num_noc_axis_slave_ports = 0; | ||
_num_noc_axis_master_ports = 0; | ||
_num_noc_aximm_slave_ports = 0; | ||
_num_noc_aximm_master_ports = 0; | ||
port_name = module_name + ".axis_client_interface"; | ||
RegisterAxisMasterPort(port_name, &axis_client_interface, 128, 0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#pragma once | ||
|
||
#include <axis_interface.hpp> | ||
#include <design_context.hpp> | ||
#include <radsim_defines.hpp> | ||
#include <radsim_module.hpp> | ||
#include <string> | ||
#include <systemc.h> | ||
#include <vector> | ||
|
||
class client : public RADSimModule { | ||
public: | ||
sc_in<bool> rst; | ||
sc_in<sc_bv<128>> client_tdata; | ||
sc_in<bool> client_tlast; | ||
sc_in<bool> client_valid; | ||
sc_out<bool> client_ready; | ||
|
||
axis_master_port axis_client_interface; | ||
|
||
client(const sc_module_name &name); | ||
~client(); | ||
|
||
SC_HAS_PROCESS(client); | ||
void RegisterModuleInfo(); | ||
}; |
40 changes: 0 additions & 40 deletions
40
rad-sim/example-designs/rtl_add/modules/client_wrapper.cpp
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
rad-sim/example-designs/rtl_add/modules/client_wrapper.hpp
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.