31 lines
518 B
C++
31 lines
518 B
C++
|
/*
|
||
|
* system.cpp
|
||
|
*
|
||
|
* Created on: 11.07.2018
|
||
|
* Author: eyck
|
||
|
*/
|
||
|
|
||
|
#include "sysc/General/system.h"
|
||
|
|
||
|
using namespace sysc;
|
||
|
|
||
|
system::system(sc_core::sc_module_name nm)
|
||
|
: sc_module(nm)
|
||
|
, NAMED(s_gpio, 32)
|
||
|
, NAMED(i_platform)
|
||
|
, NAMED(i_terminal)
|
||
|
{
|
||
|
for(auto i=0U; i<s_gpio.size(); ++i){
|
||
|
s_gpio[i].in(i_platform.pins_o[i]);
|
||
|
i_platform.pins_i[i](s_gpio[i].out);
|
||
|
}
|
||
|
// i_platform.pins_i(i_platform.pins_o);
|
||
|
|
||
|
s_gpio[17].out(i_terminal.rx_i);
|
||
|
i_terminal.tx_o(s_gpio[16].in);
|
||
|
}
|
||
|
|
||
|
system::~system() {
|
||
|
}
|
||
|
|