2022-04-11 09:22:28 +02:00
|
|
|
/*
|
|
|
|
* 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);
|
|
|
|
}
|
2022-07-18 11:49:51 +02:00
|
|
|
#ifndef WIN32
|
2022-04-11 09:22:28 +02:00
|
|
|
// terminal
|
|
|
|
terminal.tx_o(gpio_s[16].in);
|
|
|
|
gpio_s[17].out(terminal.rx_i);
|
2022-07-18 11:49:51 +02:00
|
|
|
#endif
|
2022-04-11 09:22:28 +02:00
|
|
|
}
|
|
|
|
}
|