Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
41
20k
/* ============================================================================ Name : displayYUV.c Author : mpelcat & kdesnos & jheulot Modified by : jserot (for use in the HoCL framework) Version : Copyright : CECILL-C Description : Displaying YUV frames one next to another in a row ================...
/******************************************************************************* * tpencoder.cpp -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design ******************************************************************************* * Description: * This is a testbench module to emulate a rotary quad encoder with a bu...
#include <systemc.h> class sc_mutexx : public sc_prim_channel { public: sc_event _free; bool _locked; // blocks until mutex could be locked void lock() { while( _locked ) { wait( _free ); } _locked = true; } // returns false if mutex could not be lock...
#include "systemc.h" #include "../cnm_base.h" SC_MODULE(cu_driver) { #if MIXED_SIM sc_out<sc_logic> rst; sc_out<sc_logic> RD; // DRAM read command sc_out<sc_logic> WR; // DRAM write command sc_out<sc_logic> ACT; // DRAM activate command // sc_out<sc_logic> RSTB; // sc_out<sc_logic>...
/************************************************************************** * * * Catapult(R) Machine Learning Reference Design Library * * * * Software Ver...
/******************************************************************************* Vendor: GoodKook, goodkook@gmail.com Associated Filename: sc_shifter_TB.cpp Purpose: Testbench Revision History: Aug. 1, 2024 *******************************************************************************/ #ifndef _SC_SHIFTER_TB_H_ #defi...
/* $Id: ticks.h,v 1.3 2010/11/23 22:42:02 scott Exp $ Description: Macros for timing Usage: Define the timer call desired (e.g. #define FTIME, TIMEOFDAY, GETTIME) before including "ticks.h" Example: #define TIMEOFDAY 1 #include "ticks.h" void benchmark(void) { tick_t start, finish; tget(start); timed_section(); ...
/** #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 DEFINE_H #define DEFINE_H #include "systemc.h" //#include <iostream> #include "stdio.h" #define SIZE 16 #define NB 4 #def...
// ================================================================ // 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. // =======================================...
/***************************************************************************** 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...
/***************************************************************************** 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...
/***************************************************************************** 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...
/* Problem 3 Testbench */ #include<systemc.h> #include<comm.cpp> SC_MODULE(communicationInterfaceTB) { sc_signal<sc_uint<12> > inData; sc_signal<bool> clock , reset , clear; sc_signal<sc_uint<4> > payloadOut; sc_signal<sc_uint<8> > countOut , errorOut; void clockSignal(); void clearSignal(); void resetSignal...
/***************************************************************************** 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...
/* * Copyright 2019 Google, Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer; * ...
/***************************************************************************** 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...
// ================================================================ // 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. // =======================================...
// ------------------------------------------------- // Contact: contact@lubis-eda.com // Author: Tobias Ludwig, Michael Schwarz // ------------------------------------------------- // SPDX-License-Identifier: Apache-2.0 // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file ...
/// \file transmitter.h /// \brief File containing the entity of the transmitter component. /// /// See also transmitter.cpp #ifndef TRANSMITTER_H #define TRANSMITTER_H #include <systemc.h> #include "NOC_package.h" /*! \class transmitter \brief SystemC description of the transmitter module. It is the transmi...
/* * breg_if.h * * Created on: 14 de mai de 2017 * Author: drcfts */ #ifndef BREG_IF_H_ #define BREG_IF_H_ #include "systemc.h" #include <stdint.h> struct breg_if : public sc_interface{ virtual int32_t read(const unsigned address) = 0; virtual void write(const unsigned address, int32_t dado) = 0; ...
/******************************************************************************* * adc_types.h -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design ******************************************************************************* * Description: * Defines types of ESP32 ADC being used. *******************************...
// // Created by tobias on 29.11.17. // #ifndef PROJECT_EXAMPLE2_H #define PROJECT_EXAMPLE2_H #include "systemc.h" #include "Interfaces.h" #include "types.h" struct Example4 : public sc_module { SC_HAS_PROCESS(Example4); Example4(sc_module_name name) : master_in1("master_in1"), value...
/********************************************************************** Filename: sc_fir8.h Purpose : Core of 8-Tab Systolic FIR filter Author : goodkook@gmail.com History : Mar. 2024, First release ***********************************************************************/ #ifndef _SC_FIR8_H_ #define _SC_FIR8_H_ #inc...
/************************************************************************** * * * Catapult(R) Machine Learning Reference Design Library * * * * Software Ver...
#include <systemc.h> SC_MODULE( fir ) { sc_in<bool> clk; sc_in<bool> rst; sc_in<sc_int<16>> inp; sc_out<sc_int<16>> out; // Handshake signals sc_in<bool> inp_vld; sc_out<bool> inp_rdy; sc_out<bool> out_vld; sc_in<bool> out_rdy; void...
#ifndef COUNTER_H #define COUNTER_H #include <systemc.h> #include "constants.h" SC_MODULE(CounterModule){ // Inputs sc_in<bool> clk; sc_in<bool> reset; sc_in<bool> up_down_ctrl; sc_in<bool> count_enable; //Outputs sc_out<sc_uint<N> > count_out; sc_out<bool> overflow_intr; sc_out<bool> underflow_int...
#ifndef __I2C_CONTROLLER_TB_H #define __I2C_CONTROLLER_TB_H #include <systemc.h> #include <i2c_controller.h> #include <i2c_slave_controller.h> SC_MODULE(i2c_controller_tb) { sc_clock *clk; sc_signal<bool> rst; sc_signal<sc_uint<7>> addr; sc_signal<sc_uint<8>> data_in; sc_signal<bool> enable; sc_signal<bool> ...
/******************************************************************************* Poorman's Standard-Emulator --------------------------- Vendor: GoodKook, goodkook@gmail.com Associated Filename: sc_DUT_TB.h Purpose: Testbench for DUT Revision History: Jun. 1, 2024 *******************************************************...
/**************************************************************************** * * Copyright (c) 2015, 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. *...
/////////////////////////////////////////////////////////////////////////////// // // 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 // ...
#include <systemc.h> SC_MODULE( tb ) { sc_in<bool> clk; sc_out<bool> rst; sc_out< sc_int<16> > inp; sc_out<bool> inp_vld; sc_in<bool> inp_rdy; sc_in< sc_int<16> > outp; sc_in<bool> outp_vld; sc_out<bool> outp_rdy; void source(); void sink(); FILE *outfp; sc_time start_time[64], end_time[64], cloc...
/** #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 __s3_h__ #define __s3_h__ #include <systemc.h> SC_MODULE(s3) { sc_in<sc_uint<6> > stage1_input; sc_out<sc_uint<4> > ...
#include <systemc.h> SC_MODULE ( half_adder ) { sc_in< sc_logic > augend; sc_in< sc_logic > addend; sc_out< sc_logic > sum; sc_out< sc_logic > carry_out; void func(); SC_CTOR ( half_adder ) { SC_METHOD ( func ); sensitive << augend << addend; }; };
/******************************************************************************** * University of L'Aquila - HEPSYCODE Source Code License * * * * ...
/******************************************************************************** * University of L'Aquila - HEPSYCODE Source Code License * * * * ...
array = new float*[5]; //TODO: eliminare **? //Int8 float idCC4CSminint8 = 0; float idCC4CSmaxint8 = 0; //Int16 float idCC4CSminint16 = 0; float idCC4CSmaxint16 = 0; //Int32 float idCC4CSminint32 = 0; float idCC4CSmaxint32 = 0; //Float float idCC4CSminfloat = 0; float idCC4CSmaxfl...
.xml"); cout << "XML result: " << myResult.description() << endl; //method 2: use object/node structure pugi::xml_node instancesPS = myDoc.child("instancesPS"); for (xml_node_iterator seqProcess_it=instancesPS.begin(); seqProcess_it!=instancesPS.end(); ++seqProcess_it){ int Id = atoi(seqProcess_it->child_v...
/**************************************************************************** * * Copyright (c) 2015, 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. *...
#include <memory> #include <systemc.h> #include "Vtop.h" #include "bfm.h" SC_MODULE(sc_top) { sc_clock clk; sc_signal<bool> reset; sc_signal<bool> cs; sc_signal<bool> rw; sc_signal<bool> ready; #ifdef VERILATOR sc_signal<uint32_t> addr; sc_signal<uint32_t> data_in; sc_...
/********************************************************************** Filename: sc_fir_pe.h Purpose : Verilated PE of Systolic FIR filter Author : goodkook@gmail.com History : Mar. 2024, First release ***********************************************************************/ #ifndef _V_FIR_PE_H_ #define _V_FIR_PE_H_ ...
// Generated by stratus_hls 17.20-p100 (88533.190925) // Mon Nov 16 23:44:47 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_...
// Generated by stratus_hls 17.20-p100 (88533.190925) // Tue Nov 17 14:53:19 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_...
#ifndef TESTBENCH_ #define TESTBENCH_ #include <systemc.h> SC_MODULE (tbreg){ //l'horloge sc_in <bool> clk; sc_out < sc_uint<11> > din; sc_in < sc_uint<15> > coded_dout; sc_out < sc_uint<15> > coded_din; sc_in < sc_uint<11> > dout; //hand shake signals sc_out < bool > din_vld; sc_in < bool >...
#ifndef NEURON_H #define NEURON_H #include "systemc.h" SC_MODULE(Neuron) { sc_in<float> input1, input2; sc_out<float> output; float w1, w2, b, y; float output_temp; void neuron(); SC_CTOR(Neuron) { SC_METHOD(neuron); sensitive << input1 << input2; } }; #endif
#include <systemc.h> #ifndef ACC_H #define ACC_H //#define __SYNTHESIS__ //#define SYSC_ACC_DEBUG //#define SYSC_ACC_DEBUG2 #ifndef __SYNTHESIS__ #define DWAIT(x) wait(x) #else #define DWAIT(x) #endif #define ACCNAME SA_INT8_V1_0 #define ACC_DTYPE sc_int #define ACC_C_DTYPE int #define MAX 2147483647 #defin...
/** #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 __s6_h__ #define __s6_h__ #include <systemc.h> SC_MODULE(s6) { sc_in<sc_uint<6> > stage1_input; sc_out<sc_uint<4> > ...
/********************************************************************** Filename: sc_fir8_tb.h Purpose : Testbench of 8-Tab Systolic FIR filter Author : goodkook@gmail.com History : Mar. 2024, First release ***********************************************************************/ #ifndef _SC_FIR8_TB_H_ #define _SC_FI...
/******************************************************************************* * mux_in.cpp -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design ******************************************************************************* * Description: * Model for the PCNT mux in the GPIO matrix. ******************************...
#include <systemc.h> SC_MODULE(tb) { sc_in<bool> clk; sc_out<bool> reset; sc_out< sc_int<16> > input; sc_out<bool> input_valid; sc_in<bool> input_ready; sc_in< sc_int<16> > output; sc_in<bool> output_valid; sc_out<bool> output_ready; void source(); void sink(); SC_CTOR(tb){ SC_C...
#include "Neuron.h" #include "systemc.h" SC_MODULE(Neural_Network) { sc_in<float> input1, input2; sc_out<float> output; sc_signal<float> c1, c2; Neuron* N1; Neuron* N2; Neuron* N3; SC_CTOR(Neural_Network) { // vvvvv put your code here vvvvv N1 = new Neuron("N1"); ...
#include "systemc.h" SC_MODULE(tb) { sc_out < sc_uint<4> > OPa,OPb; sc_out < sc_uint<4> > OP; sc_in<bool> Clk; void tbGen() { OPa.write(0111); OPb.write(0001); OP.write(0); wait(10,SC_NS); OPa.write(0111); OPb.write(0001); OP.write(1); wait(10,SC_NS); OPa.write(0111); OPb...
// Generated by stratus_hls 17.20-p100 (88533.190925) // Thu Nov 19 00:45:43 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. */ #include "dut_Div_64Ux2U_32U_4.h" /* Declaration of the synthesized module. */ str...
/**************************************************************************** * * Copyright (c) 2015, 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. *...
#include <memory> #include <systemc.h> #include "Vtop.h" #include "bfm.h" SC_MODULE(sc_top) { sc_clock clk; sc_signal<bool> reset; sc_signal<bool> cs; sc_signal<bool> rw; sc_signal<bool> ready; #ifdef VERILATOR sc_signal<uint32_t> addr; sc_signal<uint32_t> data_in; sc_...
/********************************************************************** Filename: sc_fir_pe.h Purpose : Verilated PE of Systolic FIR filter Author : goodkook@gmail.com History : Mar. 2024, First release ***********************************************************************/ #ifndef _V_FIR_PE_H_ #define _V_FIR_PE_H_ ...
/****************************************************************************** * (C) Copyright 2014 AMIQ Consulting * * 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.apac...
/* * Created on: 21. jun. 2019 * Author: Jonathan Horsted Schougaard */ #pragma once #define SC_INCLUDE_FX #include "hwcore/cnn/data_buffer.h" #include "hwcore/cnn/pe.h" #include "hwcore/cnn/top_cnn.h" #include "hwcore/cnn/weight_buffer.h" #include "hwcore/hw/statusreg.h" #include "hwcore/pipes/pipes.h" #inclu...
// // Created by tobias on 29.11.17. // #ifndef PROJECT_STIMULI2_H #define PROJECT_STIMULI2_H #include "systemc.h" #include "Interfaces.h" #include "types.h" struct Stimuli2 : public sc_module { SC_HAS_PROCESS(Stimuli2); Stimuli2(sc_module_name name) : value("value") { SC_THREAD(fsm); } //B...
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
9