text
stringlengths
41
20k
#pragma once #include <systemc.h> #include "../../UTIL/debug_util.h" SC_MODULE(Diviseur) { // input : sc_in<sc_uint<32>> OP1_SE; sc_in<sc_uint<32>> OP2_SE; sc_in<sc_uint<2>> CMD_RD; sc_in<bool> START_SE; // output : sc_out<sc_uint<32>> DIVIDER_RES_OUTPUT; sc_out<bool> ...
/******************************************************************************** * University of L'Aquila - HEPSYCODE Source Code License * * * * ...
#ifndef COUNTER_TB_H #define COUNTER_TB_H #include <systemc.h> #include "constants.h" SC_MODULE(CounterTestbench){ // Inputs sc_in<bool> clk; sc_in<sc_uint<N> > count_out; sc_in<bool> overflow_intr; sc_in<bool> underflow_intr; //Outputs sc_out<bool> reset; sc_out<bool> up_down_ctrl; sc_out<bool> co...
#pragma once #include <systemc.h> #include "../../UTIL/debug_util.h" typedef enum // MAE STATES { SLAVE_IDLE = 0, SLAVE_BUS_REQUEST = 1, SLAVE_MODULE_WAIT_D0 = 2, SLAVE_MODULE_WAIT_D1 = 3, SLAVE_MODULE_WAIT_D2 = 4, SLAVE_MODULE_WAIT_D3 = 5 } ram_states_fsm; SC_MODULE(wb_ram_sc) { sc_in_clk...
/******************************************************************************* * e4067test.h -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design ******************************************************************************* * Description: * This is the main testbench header for the test. It describes how * the...
/// \file receiver.h /// \brief File containing the entity of the receiver component. /// /// See also receiver.cpp #ifndef RECEIVER_H #define RECEIVER_H #include <systemc.h> #include "NOC_package.h" #include "RX_package.h" /*! \class receiver \brief SystemC description of the receiver module. It is the rece...
//This file is to demonstrate the use of sc_cthread //In SC_METHOD, one iteration of a thread takes exactly one cycle of the clock if // there is a clock in its sensitivity list // So SC_METHODS are fine for simple sequential designs like counters (but simple RTL // is recommended for this) //SC_CTHREADS are not li...
#include <string> #include <algorithm> #include <sstream> #include <vector> #include <systemc.h> #include "sc_qt_adaptor.h" #include "sc_config.h" #include "sc_run.h" #include "sc_debug_object.h" void scQtAdaptor::trace_module (sc_module *module) { auto children = module->get_child_objects(); sc_object * o; ...
/////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2019 Cadence Design Systems, Inc. All rights reserved worldwide. // // The code contained herein is the proprietary and confidential information // of Cadence or its licensors, and is supplied subject to a previously // ...
#ifndef SC_RST_H #define SC_RST_H #include <systemc.h> #include "sc_config.h" SC_MODULE (scRst) { sc_out<bool> rst_o{"rst_o"}; SC_CTOR(scRst) { SC_THREAD(resetThread); } void resetThread () { sc_time ustep = sc_getMicrostep(); bool act_level = sc_getRstActLevel(); ...
/******************************************************************************** * University of L'Aquila - HEPSYCODE Source Code License * * * * ...
/******************************************************************************* * ledctest.h -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design ******************************************************************************* * Description: * This is the main testbench header for the ledc.ino test. It describes ho...
/******************************************************************************** * University of L'Aquila - HEPSYCODE Source Code License * * * * ...
/////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2017 Cadence Design Systems, Inc. All rights reserved worldwide. // // The code contained herein is the proprietary and confidential information // of Cadence or its licensors, and is supplied subject to a previously // ...
/********************************************************************** Co-Simulation of Verilated+SystemC VPI+iVerilog' Filename: sc_fir8.h Purpose : Core of 8-Tab Systolic FIR filter Author : GoodKook, goodkook@gmail.com History : Mar. 2024, First release *************************************************************...
/****************************************************************************** * * * Copyright (C) 2022 MachineWare GmbH * * All Rights Reserved * ...
/// \file fifo.h /// \brief File containing the entity of the fifo component. /// /// See also fifo.cpp #ifndef FIFO_H #define FIFO_H #include "systemc.h" #include "NOC_package.h" /*! \class fifo \brief SystemC description of the fifo module. Classical clocked fifo with asynchronous reset. The fifo takes inp...
/////////////////////////////////////////////////////////////////////////////// ///\\file RSCommon.h ///\\brief /// /// INF8500 - Laboratoire 2 /// Automne 2009 /// par Laurent Moss (moss_AT_grm.polymtl.ca) /// /// Modification Automne 2013 /// par Etienne Gauthier (etienne-2.gauthier@...
/* * @ASCK */ #include <systemc.h> SC_MODULE (ALU) { sc_in <sc_int<8>> in1; // A sc_in <sc_int<8>> in2; // B sc_in <bool> c; // Carry Out // in this project, this signal is always 1 // ALUOP // has 5 bits by merging: opselect (4bits) and first LSB bit of opcode (1bit) sc_in <sc_uint<5>...
/** #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 __s5_h__ #define __s5_h__ #include <systemc.h> SC_MODULE(s5) { sc_in<sc_uint<6> > stage1_input; sc_out<sc_uint<4> > ...
#ifndef _CPUIF_H #define _CPUIF_H #include "systemc.h" #include "port_axis.h" // axi_tc_in, axi_tc_out #define MAX_PORTS 2 extern axi_tc_in *s_gctl[MAX_PORTS]; extern axi_tc_out *m_gctl[MAX_PORTS]; #endif // _CPUIF_H
#ifndef DFT_MODULE_H_ #define DFT_MODULE_H_ #include "systemc.h" SC_MODULE(DFTModule) { sc_in_clk clock; sc_in<bool> f_Enable; sc_in<bool> f_RxSamples; sc_in<bool> f_Calculate; sc_in<bool> Reset; sc_in<int> N; sc_in<double> Sample; sc_out<double> OutReal; sc_out<double> OutImg; ...
#ifndef SC_RST_H #define SC_RST_H #include <systemc.h> #include "sc_config.h" SC_MODULE (scRst) { sc_out<bool> rst_o{"rst_o"}; SC_CTOR(scRst) { SC_THREAD(resetThread); } void resetThread () { sc_time ustep = sc_getMicrostep(); bool act_level = sc_getRstActLevel(); int...
#include "systemc.h" #include "../cnm_base.h" #include "../half.hpp" using half_float::half; SC_MODULE(fpu_monitor) { #if MIXED_SIM sc_in<sc_logic> clk; sc_in<sc_logic> rst; sc_in<sc_logic> mult_en; // Signals that a multiply computation step should be performed sc_in<sc_logic> add_en...
#include <systemc.h> #ifndef PRODUCER_H_ #define PRODUCER_H_ SC_MODULE(Producer){ sc_out<int> data; int generatedNumber; int i; SC_CTOR(Producer){ data.initialize(42); //initialisiert den Ausgangsport mit dem angegebenen Wert (ansonsten 0) SC_THREAD(produce); } void produce() { i = 0; while(i < 10)...
/*************************************************************** * systemc.h * * Includes the libraries to handle with SystemC * codes. Also defines the sc_main function * * @author Luciano Sobral <sobral.luciano@gmail.com> * ***************************************************************/ #ifndef SYSTEMC_...
/*************************************************************** * systemc.h * * Includes the libraries to handle with SystemC * codes. Also defines the sc_main function * * @author Luciano Sobral <sobral.luciano@gmail.com> * ***************************************************************/ #ifndef SYSTEMC_...
/*************************************************************** * systemc.h * * Includes the libraries to handle with SystemC * codes. Also defines the sc_main function * * @author Luciano Sobral <sobral.luciano@gmail.com> * ***************************************************************/ #ifndef SYSTEMC_...
/***************************************************************************** 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...
/******************************************************************************* * encoder.cpp -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design ******************************************************************************* * Description: * This is a testbench module to emulate a rotary quad encoder with a butt...
#ifndef _CPU_H #define _CPU_H #include <malloc.h> // memalign #include "systemc.h" #include "port_axis.h" // axi_tc_in, axi_tc_out #include "cpuif.h" // s_gctl, m_gctl SC_MODULE(cpu) { sc_in<bool> clk; sc_in<bool> reset; axi_tc_in s_ctl; axi_tc_out m_ctl; int exitval; void th_main() { if (reset.read() =...
#ifndef D_CACHE #define D_CACHE #include <systemc.h> #include "buffercache.h" #include "../../UTIL/debug_util.h" //cache N-way associatif, write through et buffet // taille du cache 1024 // buffer de taille 2 // 2-way => 1024/2 => 512 / 4mots => 128 lignes // index => 7 bits // offset => 4 mots => 2 bits // tag => 2...
/** #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 __des_h__ #define __des_h__ #include <systemc.h> #include "round.h" //S boxes #include "s1.h" #include "s2.h" #include "s3.h...
/// \file wrapper_mod.h /// \brief File containing the entity of the wrapper. It put togheter transmitter and receiver blocks; /// /// See also wrapper_mod.cpp #ifndef WRAPPER_H #define WRAPPER_H #include "systemc.h" #include "transmitter.h" #include "receiver.h" #include "NOC_package.h" /*! \class wrapper_mod \...
/******************************************************************************* * Blinktest.h -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design ******************************************************************************* * Description: * This is the main testbench header for the Blink.ino test. It describes ...
#ifndef SYSC_TYPES_H #define SYSC_TYPES_H #include <systemc.h> typedef struct _DATA { sc_uint<32> data; bool tlast; inline friend ostream &operator<<(ostream &os, const _DATA &v) { cout << "data&colon; " << v.data << " tlast: " << v.tlast; return os; } } DATA; typedef struct _SDATA { sc_int<32> da...
/* * ****************************************************************************** * This file includes the SystemC models of the Nangate 45 nm library cells * * Copyright (C) 2021 University of Teheran * * This source file may be us...
#pragma once #include <systemc.h> #include "../../UTIL/debug_util.h" typedef enum // MAE STATES { R_IDLE = 0, R_REQ = 1, R_DC_READ = 2, R_DC_END_BURST = 3, R_DC_WRITE = 4, R_IC = 5, R_IC_END_BURST = 6 } river_states_fsm; SC_MODULE(wb_river_mc) { sc_in_clk CLK; sc_in<bool> RESET_N...
#include "systemc.h" #include "../cnm_base.h" SC_MODULE(id_driver) { sc_out<bool> rst; sc_out<bool> rf_access; // Enables rd/wr to the RFs while not in PIM mode // sc_out<bool> rf_wr_nrd; // Signals if reading (low) or writing (high) sc_out<bool> decode_e...
// Generated by stratus_hls 17.20-p100 (88533.190925) // Tue Nov 17 22:54:34 2020 // from dut.cc #ifndef CYNTH_PART_dut_dut_rtl_h #define CYNTH_PART_dut_dut_rtl_h #include "systemc.h" /* Include declarations of instantiated parts. */ /* Declaration of the synthesized module. */ struct dut : public sc_module { sc_...