text
stringlengths
41
20k
#define SC_INCLUDE_FX #include <systemc.h> #include "MAC.h" #include <iostream> #include <vector> using namespace std; SC_MODULE(ALEXNET) { CONV_RELU_1 m_CONV_RELU_1; MAX_POOLING_1 m_MAX_POOLING_1; CONV_RELU_2 m_CONV_RELU_2; MAX_POOLING_2 m_MAX_POOLING_2; CONV_RELU_3 m_CONV_RELU_3; CONV_RELU_...
/** #define meta ... prInt32f("%s\n", meta); **/ /* All rights reserved to Alireza Poshtkohi (c) 1999-2023. Email: arp@poshtkohi.info Website: http://www.poshtkohi.info */ #ifndef __tb_h__ #define __tb_h__ #include <systemc.h> #include <vector> using namespace std; SC_MODULE(tb) { // inputs sc_...
#ifndef _param_in_h #define _param_in_h #include <systemc.h> #include "hocl.h" template<class T> SC_MODULE(param_in) { sc_in<bool> clk; sc_fifo_out<T> o; void main(void) { while ( 1 ) { o.write(val); if ( trace ) cout << modname << " put " << val << " at " << sc_time_stamp() << endl; wa...
/************************************************************************** * * * Algorithmic C (tm) Simulation Utilities * * * * Software Ver...
/************************************************************************** * * * Algorithmic C (tm) Simulation Utilities * * * * Software Ver...
#include <systemc.h> // // Every HW component class has to be derived from :class:`hwt.hwModule.HwModule` class // // .. hwt-autodoc:: // SC_MODULE(Showcase0) { // ports sc_in<sc_uint<32>> a; sc_in<sc_int<32>> b; sc_out<sc_uint<32>> c; sc_in_clk clk; sc_out<sc_uint<1>> cmp_0; sc_o...
/******************************************************************************* * tb_gpio.h -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design ******************************************************************************* * Description: * Testbench for the GPIO models. *****************************************...
#ifndef TOP_HPP #define TOP_HPP #include <systemc.h> #include "scheduler.hpp" #include "processing_engine.hpp" #include "verbose.hpp" #define CORE_BIND(NAME, INDEX) \ NAME.clk(clk); \ NAME.reset(reset); \ NAME.from_scheduler_i...
/** * Author: Anubhav Tomar * * Program Memory Definition **/ #ifndef PM_H #define PM_H #include<systemc.h> template <class _addrSize> class _programMemory : public sc_module { public: // Inputs sc_in<_addrSize> _addrPC; sc_in<bool> _pmRead; // Outputs sc_out<sc_uint<16> > _instructionOut; SC_...
#include <systemc.h> #include "testbench_vbase.h" #include "tb_memory.h" #include "tb_axi4_driver.h" #include "tb_sdram_mem.h" #include "tb_mem_test.h" #include "sdram_axi.h" #define MEM_BASE 0x00000000 #define MEM_SIZE (512 * 1024) //----------------------------------------------------------------- // Module //---...
#ifndef SDRAM_IO_H #define SDRAM_IO_H #include <systemc.h> //---------------------------------------------------------------- // Interface (master) //---------------------------------------------------------------- class sdram_io_master { public: // Members sc_uint <1> CLK; sc_uint <1> CKE; sc_uint <1...
/* Copyright 2017 Columbia University, SLD Group */ // // tb.h - Robert Margelli // Testbench header file. // #ifndef __TB__H #define __TB__H #include <time.h> #include <systemc.h> #include "cynw_flex_channels.h" #include <esc.h> #include "hl5_datatypes.hpp" #include "globals.hpp" #include "defines.hpp" SC_MODUL...
// // Copyright 2022 Sergey Khabarov, sergeykhbr@gmail.com // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...
/** * Author: Anubhav Tomar * * Robot Definition **/ #ifndef ROBOT_H #define ROBOT_H #include<systemc.h> #include<LIB.h> // template < > class _robotBlock : public sc_module { public: // Inputs sc_in<bool> _enableFromServer , _enableFromEnv; sc_fifo_in<int> _serverToRobot , _envToRobot; // Outpu...
#include <systemc.h> #include "/Users/ebinouri/Documents/UNi/Master_Thesis/Enhancement/AES_systemc/utility_functions.h" #ifndef __KEYEXPANSION_H__ #define __KEYEXPANSION_H__ using namespace sc_core; // #ifndef SENSITIVITY(X, Y) #define SENSITIVITY(X, Y) sensitive << X[Y] // #endif SC_MODULE( keyExpansion ) { ...
#ifndef __ROM_3840_32_H__ #define __ROM_3840_32_H__ #include <fstream> #include <systemc.h> class rom_3840x32_t : public sc_module { public: sc_in<uint32_t> addr1; sc_in<uint32_t> addr2; sc_out<uint32_t> data1; sc_out<uint32_t> data2; uint32_t data[3840]; void port1() { while(true) { ...
/***************************************************************************** Licensed to Accellera Systems Initiative Inc. (Accellera) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Accellera licenses...
/******************************************************************************** * University of L'Aquila - HEPSYCODE Source Code License * * * * ...
/******************************************************************************* * st7735.h -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design ******************************************************************************* * Description: * This is a simple model for the ST7735 display controller model. *********...
/******************************************************************************* * btmod.h -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design ******************************************************************************* * Description: * Implements a SystemC module for the ESP32 BT module. ***********************...
/******************************************************************************* * cd4067.h -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design ******************************************************************************* * Description: * This is a simple model for the CD4067 Analog Mux. ***********************...
// Copyright 1991-2014 Mentor Graphics Corporation // All Rights Reserved. // THIS WORK CONTAINS TRADE SECRET AND PROPRIETARY INFORMATION // WHICH IS THE PROPERTY OF MENTOR GRAPHICS CORPORATION // OR ITS LICENSORS AND IS SUBJECT TO LICENSE TERMS. #ifndef INCLUDED_STORE #define INCLUDED_STORE #include <systemc.h> ...
// ================================================================ // NVDLA Open Source Project // // Copyright(c) 2016 - 2017 NVIDIA Corporation. Licensed under the // NVDLA Open Hardware License; Check "LICENSE" which comes with // this distribution for more information. // =======================================...
// ================================================================ // NVDLA Open Source Project // // Copyright(c) 2016 - 2017 NVIDIA Corporation. Licensed under the // NVDLA Open Hardware License; Check "LICENSE" which comes with // this distribution for more information. // =======================================...
#include <systemc.h> #include "testbench_vbase.h" #include "tb_memory.h" #include "tb_axi4_driver.h" #include "tb_sdram_mem.h" #include "tb_mem_test.h" #include "sdram_axi.h" #define MEM_BASE 0x00000000 #define MEM_SIZE (512 * 1024) //----------------------------------------------------------------- // Module //---...
#ifndef SDRAM_IO_H #define SDRAM_IO_H #include <systemc.h> //---------------------------------------------------------------- // Interface (master) //---------------------------------------------------------------- class sdram_io_master { public: // Members sc_uint <1> CLK; sc_uint <1> CKE; sc_uint <1...
// ================================================================ // NVDLA Open Source Project // // Copyright(c) 2016 - 2017 NVIDIA Corporation. Licensed under the // NVDLA Open Hardware License; Check "LICENSE" which comes with // this distribution for more information. // =======================================...
// ================================================================ // NVDLA Open Source Project // // Copyright(c) 2016 - 2017 NVIDIA Corporation. Licensed under the // NVDLA Open Hardware License; Check "LICENSE" which comes with // this distribution for more information. // =======================================...
/* * Created on: 21. jun. 2019 * Author: Jonathan Horsted Schougaard */ #ifdef HW_COSIM //#define __GMP_WITHIN_CONFIGURE #endif #define DEBUG_SYSTEMC #define SC_INCLUDE_FX #include "hwcore/tb/pipes/tb_streamcircularlinebuffer.h" #include <cstdlib> #include <iostream> #include <systemc.h> unsigned errors = 0; ...
// // Copyright 2022 Sergey Khabarov, sergeykhbr@gmail.com // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...
/* * SPDX-FileCopyrightText: Copyright (c) 2020-2021 NVIDIA CORPORATION & * AFFILIATES. All rights reserved. * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the ...
// // Copyright 2022 Sergey Khabarov, sergeykhbr@gmail.com // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...
// //------------------------------------------------------------// // Copyright 2009-2012 Mentor Graphics Corporation // // All Rights Reserved Worldwid // // // // Licensed under the Apache License, Version 2.0 (the ...
/* * Created on: 21. jun. 2019 * Author: Jonathan Horsted Schougaard */ #pragma once #define SC_INCLUDE_FX #include "hwcore/hf/helperlib.h" #include "hwcore/hw/singleportram.h" #include "hwcore/pipes/data_types.h" #include <systemc.h> template <int W = 16, bool stream_while_write = false, int L = (((18 * 1024...
#ifndef RGB2GRAY_TLM_HPP #define RGB2GRAY_TLM_HPP #include <systemc.h> using namespace sc_core; using namespace sc_dt; using namespace std; #include <tlm.h> #include <tlm_utils/simple_initiator_socket.h> #include <tlm_utils/simple_target_socket.h> #include <tlm_utils/peq_with_cb_and_phase.h> #include "rgb2gray_pv_mod...
#ifndef ETHERNET_DECODER_H #define ETHERNET_DECODER_H #include <systemc-ams.h> #include <map> #include <systemc.h> #include <deque> SCA_TDF_MODULE(ethernetDecoder) { public: sca_tdf::sca_in<double> mlt3_in; // MLT-3 input signal sca_tdf::sca_out<sc_dt::sc_bv<4>> data_out; // 4-bit output std::map<std::...
/**************************************************************************** * * Copyright (c) 2017, Cadence Design Systems. All Rights Reserved. * * This file contains confidential information that may not be * distributed under any circumstances without the written permision * of Cadence Design Systems. * ******...
/* -*- sysc -*-*/ /* #- (c) Copyright 2011-2017 Xilinx, Inc. All rights reserved. #- #- This file contains confidential and proprietary information #- of Xilinx, Inc. and is protected under U.S. and #- international copyright and other intellectual property #- laws. #- #- DISCLAIMER #- This disclaimer is not a l...
#ifndef IPS_FILTER_LT_MODEL_HPP #define IPS_FILTER_LT_MODEL_HPP #ifdef IPS_DEBUG_EN #include <iostream> #endif // IPS_DEBUG_ENi #ifdef IPS_DUMP_EN #include <sstream> #endif // IPS_DUMP_EN #include <systemc.h> #ifdef USING_TLM_TB_EN #include "ips_filter_defines.hpp" #endif // USING_TLM_TB_EN /** * @brief Filter modul...
/******************************************************************************* * i2c.cpp -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design ******************************************************************************* * Description: * Model for a I2C. *********************************************************...
//********************************************************************** // Copyright (c) 2016-2018 Xilinx Inc. All Rights Reserved //********************************************************************** // // TLM wrapper for CanCat IP. It // This is a Dummy IP and doesn't perform any real functionality. This I...
/******************************************************************************* * gndemux.h -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design ******************************************************************************* * Description: * This is a simple gnmuxin for GN logic use in testbenches. **************...
#include <systemc.h> #include "Complex_NAgate_45.h" #include "inverseSbox.h" #include "inverseSbox.h" #include "inverseSbox.h" #include "inverseSbox.h" #include "inverseSbox.h" #include "inverseSbox.h" #include "inverseSbox.h" #include "inverseSbox.h" #include "inverseSbox.h" #include "inverseSbox.h" #include "inverse...
3 = new BUF_X1("BUF_X1_123"); BUF_X1_123->A(in[94]); BUF_X1_123->Z(S0[94]); BUF_X1_124 = new BUF_X1("BUF_X1_124"); BUF_X1_124->A(in[95]); BUF_X1_124->Z(S0[95]); BUF_X1_125 = new BUF_X1("BUF_X1_125"); BUF_X1_125->A(in[96]); BUF_X1_125->Z(S0[96]); BUF_X1_126 ...
[42]); sub_Bytes_40__s->sbout[3](S1[43]); sub_Bytes_40__s->sbout[4](S1[44]); sub_Bytes_40__s->sbout[5](S1[45]); sub_Bytes_40__s->sbout[6](S1[46]); sub_Bytes_40__s->sbout[7](S1[47]); sub_Bytes_40__s->selector[0](S0[40]); sub_Bytes_40__s->selector[1](S0[41]); ...
// Stop fonts etc being loaded multiple times #ifndef _TFTDEBUGWRAP_H #define _TFTDEBUGWRAP_H #include <TFT_eSPI.h> #include <systemc.h> #include <stdint.h> // Class functions and variables class tftdebugwrap : public TFT_eSPI { public: tftdebugwrap(int16_t _W = TFT_WIDTH, int16_t _H = TFT_HEIGHT); sc_event...
#ifndef IPS_FILTER_AT_MODEL_HPP #define IPS_FILTER_AT_MODEL_HPP #ifdef IPS_DEBUG_EN #include <iostream> #endif // IPS_DEBUG_ENi #ifdef IPS_DUMP_EN #include <sstream> #endif // IPS_DUMP_EN #include <systemc.h> /** * @brief Filter module. * It takes care of filtering a image/kernel using a median filter or an * equi...
/***************************************************************************** Licensed to Accellera Systems Initiative Inc. (Accellera) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Accellera licenses...
/** * @license MIT * @brief Private type definitions for Huffman coding. */ #ifndef HUFFMAN_CODING_PRIV_TYPES_H #define HUFFMAN_CODING_PRIV_TYPES_H /////////////////////////////////////////////////////////////////////////////// #include <stdint.h> #include <systemc.h> #include "huffman_coding_public_types.h" #i...
/** #define meta ... prInt32f("%s\n", meta); **/ /* All rights reserved to Alireza Poshtkohi (c) 1999-2023. Email: arp@poshtkohi.info Website: http://www.poshtkohi.info */ #ifndef __bus_controller_sc__h__ #define __bus_controller_sc__h__ #include <systemc.h> #include "globals.h" //----------------------...
#include <systemc.h> #include <ahb_master_if.h> using namespace std; class fake_master: public sc_module, public ahb_master_if { public: sc_in_clk clk; SC_HAS_PROCESS(fake_master); fake_master(sc_module_name name); ~fake_master(); protected: void run(); bool b...
/* * fetch.h * * Created on: 4 de mai de 2017 * Author: drcfts */ #ifndef FETCH_H_ #define FETCH_H_ #include <systemc.h> #include "shared.h" #include "mem_if.h" #include "breg_if.h" #define RASTREIA_PC //Criar uma classe memoria que implementa interface com metodos de leitura //e escrita para ser acessad...
#ifndef IMG_ROUTER_CPP #define IMG_ROUTER_CPP // #include "tlm_transaction.cpp" #include "transaction_memory_manager.cpp" #include <systemc.h> using namespace sc_core; using namespace sc_dt; using namespace std; #include <tlm.h> #include <tlm_utils/simple_initiator_socket.h> #include <tlm_utils/simple_target_socke...
%( ## icglue - systemC module template array set mod_data [module_to_arraylist $obj_id] proc sc_type {} { upvar port(size) size port(direction) dir set type "< sc_logic > " if {$size > 1} { set type "< sc_lv<[format "%3d" ${size}]> >" } switch $dir { ...
#ifndef IMG_RECEIVER_TLM_HPP #define IMG_RECEIVER_TLM_HPP #include <systemc.h> #include "img_receiver.hpp" #include "../src/img_target.cpp" #include "address_map.hpp" struct img_receiver_tlm: public img_receiver, public img_target { SC_CTOR(img_receiver_tlm): img_receiver(img_receiver::name()), img_target(img_tar...
#ifndef GEMMDRIVER_H #define GEMMDRIVER_H #define FULLSIM #include <sys/time.h> #include <fstream> #include <iostream> #include <iomanip> #include <cstdlib> #include <systemc.h> #ifdef FULLSIM #include "../acc_comps/acc.h" #else #include "acc.h" #endif SC_MODULE(GemmDriver) { sc_in<bool> clock; sc_in <bool>...
#ifndef VTA_H #define VTA_H #include <systemc.h> #include "AXI4_if.h" #include <iostream> using namespace std; #ifndef __SYNTHESIS__ // #define DWAIT(x) wait(x) #define DWAIT() wait(1) #define DWAIT(x) wait(1) #define DPROF(x) x #else #define DWAIT(x) #define DPROF(x) #endif #ifndef __SYNTHESIS__ //#define VLOG(X) ...
/* * Created on: 21. jun. 2019 * Author: Jonathan Horsted Schougaard */ #pragma once #define SC_INCLUDE_FX #include <cmath> #include <systemc.h> #ifndef __SYNTHESIS__ #include <algorithm> #include <functional> #include <memory> #include <vector> #endif //#include <type_traits> // https://gcc.gnu.org/onlinedo...
/** * @file * @copyright Copyright 2016 GNSS Sensor Ltd. All right reserved. * @author Sergey Khabarov - sergeykhbr@gmail.com * @brief CPU Fetch Instruction stage. */ #ifndef __DEBUGGER_RIVERLIB_FETCH_H__ #define __DEBUGGER_RIVERLIB_FETCH_H__ #include <systemc.h> #include "../river_cfg.h" namespace de...
/* Copyright (c) 2015 Convey Computer Corporation * * This file is part of the OpenHT toolset located at: * * https://github.com/TonyBrewer/OpenHT * * Use and distribution licensed under the BSD 3-clause license. * See the LICENSE file for the complete license text. */ #pragma once #include <stdio.h> #include ...
#include <systemc.h> SC_MODULE( tb ) { public: sc_vector<sc_out<bool>> inp_a, inp_b; sc_out<bool> inp_cin; sc_vector<sc_in<bool>> sum; sc_in<bool> co; SC_HAS_PROCESS( tb ); bool a[6][4]; bool b[6][4]; tb( sc_module_name nm ); private: void source(); void sink(); };
#pragma once #include <systemc.h> #include "hwcore/hf/helperlib.h" #include "hwcore/pipes/data_types.h" #include "hwcore/pipes/streamimagedatafix.h" #include <algorithm> #include <list> #define W 16 #define I 2 #define BW 8 SC_MODULE(tb_top_imagedata_fix) { sc_clock clk; sc_in<bool> iclk; sc_signal<bool> reset;...
/* Copyright 2017 Pedro Cuadra <pjcuadra@gmail.com> & Meghadoot Gardi * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless req...
/******************************************************************************* * gn_mixed.cpp -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design ******************************************************************************* * Description: * This is a derivative of the sc_signal_resolved class from SystemC * w...
/** #define meta ... prInt32f("%s\n", meta); **/ /* All rights reserved to Alireza Poshtkohi (c) 1999-2023. Email: arp@poshtkohi.info Website: http://www.poshtkohi.info */ #ifndef __pe_work_stealing_scheduler_sc__h__ #define __pe_work_stealing_scheduler_sc__h__ #include <systemc.h> #include "globals.h" ...
#include <config.hpp> #include <core.hpp> #include <systemc.h> SC_MODULE(Sensor_${sensor_name}_functional) { Core* core; //Input Port sc_core::sc_in <bool> enable; sc_core::sc_in <unsigned int> address; sc_core::sc_in <uint8_t*> data_in; sc_core::sc_in <unsigned int> req_size; sc_core...
// //------------------------------------------------------------// // Copyright 2009-2012 Mentor Graphics Corporation // // All Rights Reserved Worldwid // // // // Licensed under the Apache License, Version 2.0 (the ...
// The last statement disables all reports to the global context (uvm_top) // having the ID "TransDump". Note that it is currently not possible to // set filters for reports for several contexts at once using wildcards. Also, // the hierarchical separator for SC may be configurable in your simulator, and // thus coul...
---------------------------------------------------- // Function: uvmc_set_config_int // // Set an integral configuration value // void uvmc_set_config_int (const char* context, const char* inst_name, const char* field_name, uint64 value); // Function: uvmc_set_config_string // // Set ...
#ifndef _TB_QVM_H_ #define _TB_QVM_H_ #include <systemc.h> #include <iomanip> #include <iostream> #include "global_json.h" #include "logger_wrapper.h" #include "q_data_type.h" #include "quma_tb_base.h" #include "qvm.h" using namespace sc_core; using namespace sc_dt; namespace cactus { using sc_core::sc_in; using s...
/***************************************************************************\ * * * ___ ___ ___ ___ * / /\ / /\ / /\ / /\ * / /:/ / /::\ / /::\ / /::\ * / /:/ / /:/\:\ / /:/\:\ / /:/\:\ *...
rue; } // Here I check whether I have to issue a continue or a step command if(lineElements[0][0] == 'c'){ return this->cont(); } else if(lineElements[0][0] == 's'){ return...
ry cycle from the processor's main loop bool newIssue(const issueWidth &curPC, const InstructionBase *curInstr) throw(){ if(!this->firstRun){ this->checkStep(); this->checkBreakpoint(curPC); } else{ this->firstRun = false; this->breakEnabled = ...
/* * VLSI InputSetup module to include input SRAM and Data Setup * Step 3: implement ReadReqRun to generate a sequence of address/valids */ #ifndef __INPUTSETUP_H__ #define __INPUTSETUP_H__ #include <systemc.h> #include <nvhls_int.h> #include <nvhls_connections.h> #include <nvhls_vector.h> #include <Arbitrated...
/* Copyright 2017 Pedro Cuadra <pjcuadra@gmail.com> & Meghadoot Gardi * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless req...
#ifndef xtea_RTL_TESTBENCH_H #define xtea_RTL_TESTBENCH_H #include <systemc.h> SC_MODULE(xtea_RTL_testbench) { private: void run(); public: sc_in_clk clk; sc_out< bool > rst; sc_in<sc_uint<1> > dout_rdy; // output from xtea module sc_in<...
/* * Copyright (c) 2010 TIMA Laboratory * * This file is part of Rabbits. * * Rabbits is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any la...
/* * Copyright (c) 2010 TIMA Laboratory * * This file is part of Rabbits. * * Rabbits is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any la...
// Copyright 2018 Evandro Luis Copercini // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or ag...
//********************************************************************** // Copyright (c) 2016-2018 Xilinx Inc. All Rights Reserved //********************************************************************** // // TLM wrapper for CanCat IP. It // This is a Dummy IP and doesn't perform any real functionality. This I...
/******************************************************************************* * spimod.h -- Copyright 2020 (c) Glenn Ramalho - RFIDo Design ******************************************************************************* * Description: * Models a single ESP32 SPI ***********************************************...
#pragma once #include <systemc.h> SC_MODULE(EdgeDetector) { enum ed_icm_mode { Any, Pos, Neg }; sc_in<bool> clk_i; sc_in<sc_uint<3>> icm_i; sc_in<bool> ins_i; sc_out<bool> ins_o; SC_HAS_PROCESS(EdgeDetector); EdgeDetector(sc_module_na...
#ifdef EDGE_DETECTOR_AT_EN #ifndef SOBEL_EDGE_DETECTOR_HPP #define SOBEL_EDGE_DETECTOR_HPP #include <systemc.h> #include "address_map.hpp" SC_MODULE(Edge_Detector) { #ifndef USING_TLM_TB_EN sc_inout<sc_uint<64>> data; sc_in<sc_uint<24>> address; #else sc_uint<64> data; sc_uint<64> address; #endif // USING_...
// ================================================================ // NVDLA Open Source Project // // Copyright(c) 2016 - 2017 NVIDIA Corporation. Licensed under the // NVDLA Open Hardware License; Check "LICENSE" which comes with // this distribution for more information. // =======================================...
// ================================================================ // NVDLA Open Source Project // // Copyright(c) 2016 - 2017 NVIDIA Corporation. Licensed under the // NVDLA Open Hardware License; Check "LICENSE" which comes with // this distribution for more information. // =======================================...
/* -*- sysc -*-*/ /* #- (c) Copyright 2011-2017 Xilinx, Inc. All rights reserved. #- #- This file contains confidential and proprietary information #- of Xilinx, Inc. and is protected under U.S. and #- international copyright and other intellectual property #- laws. #- #- DISCLAIMER #- This disclaimer is not a l...
/* -*- sysc -*-*/ /* #- (c) Copyright 2011-2017 Xilinx, Inc. All rights reserved. #- #- This file contains confidential and proprietary information #- of Xilinx, Inc. and is protected under U.S. and #- international copyright and other intellectual property #- laws. #- #- DISCLAIMER #- This disclaimer is not a l...
// ================================================================ // NVDLA Open Source Project // // Copyright(c) 2016 - 2017 NVIDIA Corporation. Licensed under the // NVDLA Open Hardware License; Check "LICENSE" which comes with // this distribution for more information. // =======================================...
/** * @license MIT * @brief Private type definitions for Huffman coding. */ #ifndef HUFFMAN_CODING_PRIV_TYPES_H #define HUFFMAN_CODING_PRIV_TYPES_H /////////////////////////////////////////////////////////////////////////////// #include <stdint.h> #include <systemc.h> #include "huffman_coding_public_types.h" #i...
#ifndef IPS_FILTER_TLM_CPP #define IPS_FILTER_TLM_CPP #include <systemc.h> using namespace sc_core; using namespace sc_dt; using namespace std; #include <tlm.h> #include <tlm_utils/simple_initiator_socket.h> #include <tlm_utils/simple_target_socket.h> #include <tlm_utils/peq_with_cb_and_phase.h> #include "ips_filter_...
//////////////////////////////////////////////////////////// // tb.h // Testbench #ifndef __TB_H__ #define __TB_H__ #include <cstdlib> #include <systemc.h> enum stim_select_t { STIM_UNIT_STEP, STIM_RANDOM }; SC_MODULE (tb) { sc_in < bool > clk; sc_out < bool > rstn; sc_out < sc_int<3...
/** * @file * @copyright Copyright 2016 GNSS Sensor Ltd. All right reserved. * @author Sergey Khabarov - sergeykhbr@gmail.com * @brief CPU Memory Access stage. */ #ifndef __DEBUGGER_RIVERLIB_MEMSTAGE_H__ #define __DEBUGGER_RIVERLIB_MEMSTAGE_H__ #include <systemc.h> #include "../river_cfg.h" namespace ...
#ifndef GEMMDRIVER_H #define GEMMDRIVER_H #define FULLSIM #include <sys/time.h> #include <fstream> #include <iostream> #include <iomanip> #include <cstdlib> #include <systemc.h> #ifdef FULLSIM #include "../acc_comps/acc.h" #else #include "acc.h" #endif SC_MODULE(GemmDriver) { sc_in<bool> clock; sc_in <bool>...
// //------------------------------------------------------------// // Copyright 2009-2012 Mentor Graphics Corporation // // All Rights Reserved Worldwid // // // // Licensed under the Apache License, Version 2.0 (the ...
// The last statement disables all reports to the global context (uvm_top) // having the ID "TransDump". Note that it is currently not possible to // set filters for reports for several contexts at once using wildcards. Also, // the hierarchical separator for SC may be configurable in your simulator, and // thus coul...
---------------------------------------------------- // Function: uvmc_set_config_int // // Set an integral configuration value // void uvmc_set_config_int (const char* context, const char* inst_name, const char* field_name, uint64 value); // Function: uvmc_set_config_string // // Set ...
#ifndef TESTBENCH_VBASE_H #define TESTBENCH_VBASE_H #include <systemc.h> #include "verilated.h" #include "verilated_vcd_sc.h" #define verilator_trace_enable(vcd_filename, dut) \ if (waves_enabled()) \ { \ Verilated::traceEverOn(true); \ VerilatedVcdC *v_vcd = new VerilatedVcdC;...
// // Copyright 2022 Sergey Khabarov, sergeykhbr@gmail.com // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...
#pragma once #include <systemc.h> #include <unordered_map> #include "../../UTIL/debug_util.h" #define RAM_SIZE 6000 //0xFFFF FFFF -> max size SC_MODULE(RAM) { sc_in_clk CLK; sc_in<bool> RESET_N; sc_in<sc_uint<32>> ADR_I; sc_in<sc_uint<32>> DAT_I; sc_in<bool> VALID_I; ...
// // Copyright 2022 Sergey Khabarov, sergeykhbr@gmail.com // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requ...