<commit_before>/*
 * ahb_target_bfm.cpp
 *
 *  Created on: 11.12.2019
 *      Author: developer
 */

#define SC_INCLUDE_DYNAMIC_PROCESSES
#include <ahb/ahb_tlm.h>
#include <ahb/pin/target.h>
#include <scc/report.h>
#include <scc/utilities.h>
#include <tlm/scc/tlm_mm.h>

using namespace ahb::pin;
using namespace sc_core;

template <unsigned WIDTH>
target<WIDTH>::target(const sc_module_name& nm)
: sc_module(nm) {
    SC_HAS_PROCESS(target);
    SC_THREAD(bfm_thread);
    sensitive << HCLK_i.pos();
}

template <unsigned WIDTH> target<WIDTH>::~target() = default;

template <unsigned WIDTH> void target<WIDTH>::bfm_thread() {
    tlm::scc::tlm_mm<>& mm = tlm::scc::tlm_mm<>::get();
    auto const log_width = scc::ilog2(WIDTH / 8);
    auto beat_cnt = 0U;
    wait(SC_ZERO_TIME);
    while(true) {
        wait();
        if(!HRESETn_i.read()) {
            HREADY_o.write(true);<commit_msg>add missing change<commit_after>/*
 * ahb_target_bfm.cpp
 *
 *  Created on: 11.12.2019
 *      Author: developer
 */

#define SC_INCLUDE_DYNAMIC_PROCESSES
#include <ahb/ahb_tlm.h>
#include "target.h"
#include <scc/report.h>
#include <scc/utilities.h>
#include <tlm/scc/tlm_mm.h>

using namespace ahb::pin;
using namespace sc_core;

template <unsigned WIDTH>
target<WIDTH>::target(const sc_module_name& nm)
: sc_module(nm) {
    SC_HAS_PROCESS(target);
    SC_THREAD(bfm_thread);
    sensitive << HCLK_i.pos();
}

template <unsigned WIDTH> target<WIDTH>::~target() = default;

template <unsigned WIDTH> void target<WIDTH>::bfm_thread() {
    tlm::scc::tlm_mm<>& mm = tlm::scc::tlm_mm<>::get();
    auto const log_width = scc::ilog2(WIDTH / 8);
    auto beat_cnt = 0U;
    wait(SC_ZERO_TIME);
    while(true) {
        wait();
        if(!HRESETn_i.read()) {
            HREADY_o.write(true);
{'fraction_non_alphanumeric': 0.15816040381379698, 'fraction_numerical': 0.012338754907459339, 'mean_word_length': 4.082621082621083, 'pattern_counts': {'":': 0, '<': 32, '<?xml version=': 0, '>': 28, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4538632', 'n_tokens_mistral': 730, 'n_tokens_neox': 701, 'n_words': 125}