23 lines
500 B
C++
23 lines
500 B
C++
|
/*
|
||
|
* Copyright (c) 2019 -2021 MINRES Technolgies GmbH
|
||
|
*
|
||
|
* SPDX-License-Identifier: Apache-2.0
|
||
|
*/
|
||
|
|
||
|
#include "tgc_vp/tb.h"
|
||
|
namespace tgc_vp {
|
||
|
|
||
|
SC_HAS_PROCESS(tb);
|
||
|
tb::tb(const sc_core::sc_module_name &nm): sc_core::sc_module(nm) {
|
||
|
top.erst_n(rst_n);
|
||
|
rst_gen.rst_n(rst_n);
|
||
|
for (auto i = 0U; i < gpio_s.size(); ++i) {
|
||
|
gpio_s[i].in(top.pins_o[i]);
|
||
|
top.pins_i[i](gpio_s[i].out);
|
||
|
}
|
||
|
// terminal
|
||
|
terminal.tx_o(gpio_s[16].in);
|
||
|
gpio_s[17].out(terminal.rx_i);
|
||
|
}
|
||
|
}
|