text stringlengths 41 20k |
|---|
#pragma once
#include <systemc.h>
#include "constants.h"
#include "debug_util.h"
SC_MODULE(reg) {
// Reading Port :
sc_in<sc_uint<6>> RADR1_SD;
sc_in<sc_uint<6>> RADR2_SD;
sc_out<sc_uint<32>> RDATA1_SR;
sc_out<sc_uint<32>> RDATA2_SR;
// Writing Port :
sc_in<sc_uint<6>> WADR_SW;
sc_i... |
// ================================================================
// 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... |
///////////////////////////////////////////////////////////////////////////////
//
// 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
// ... |
/**********************************************************************
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_
... |
#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... |
// Shows the non-blocking transport interface with the generic payload and sockets
// Shows nb_transport being called on the forward and backward paths
// No support for temporal decoupling
// No support for DMI or debug transport interfaces
#include <systemc.h>
using namespace sc_core;
us... |
#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 __s6_h__
#define __s6_h__
#include <systemc.h>
SC_MODULE(s6)
{
sc_in<sc_uint<6> > stage1_input;
sc_out<sc_uint<4> > ... |
/********************************************************************************
* University of L'Aquila - HEPSYCODE Source Code License *
* *
* ... |
#ifndef SC_CONFIG_H
#define SC_CONFIG_H
#include <systemc.h>
typedef struct sc_thread_config_s {
bool rst_act_level;
int rst_act_microsteps;
bool ena_act_level;
bool clk_act_edge;
sc_time clk_period;
sc_time microstep;
int clk_semiperiod_microsteps;
} sc_thread_config_t;
void sc_setConfi... |
#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 <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_... |
#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> ... |
#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... |
/**********************************************************************
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... |
//
//------------------------------------------------------------//
// Copyright 2009-2012 Mentor Graphics Corporation //
// All Rights Reserved Worldwid //
// //
// Licensed under the Apache License, Version 2.0 (the ... |
/**********************************************************************
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... |
/**********************************************************************
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... |
/*******************************************************************************
Poorman's Standard-Emulator
---------------------------
Vendor: GoodKook, goodkook@gmail.com
Associated Filename: sc_DUT_TB.h
Purpose: Testbench for DUT
Revision History: Jun. 1, 2024
*******************************************************... |
#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;
};
};
|
/*******************************************************************************
* adc_types.h -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design
*******************************************************************************
* Description:
* Defines types of ESP32 ADC being used.
*******************************... |
/**********************************************************************
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... |
/*****************************************************************************
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... |
/**********************************************************************
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_
... |
#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_... |
/*****************************************************************************
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... |
/*
* @ASCK
*/
#include <systemc.h>
SC_MODULE (IR) {
sc_in <sc_uint<14>> addr;
sc_out <sc_uint<20>> inst;
/*
** module global variables
*/
sc_uint<20> mem[819]; // 819 rows and 819*20=16380 bits = (16KB - 4bits) ~= 16KB
int instNum = 50;
sc_uint<20> instruction[50] = {
//... |
/********************************************************************************
* University of L'Aquila - HEPSYCODE Source Code License *
* *
* ... |
/*****************************************************************************
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... |
/// \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... |
//---------------------------------------------------------------------------------------
//
// DISTRIBUTED HEMPS - version 5.0
//
// Research group: GAPH-PUCRS - contact fernando.moraes@pucrs.br
//
// Distribution: September 2013
//
// Source name: queue.h
//
// Brief description: Methods of process co... |
/******************************************************************************
* (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... |
#ifndef ACC_H
#define ACC_H
#include <systemc.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 VM_INT8_V1_0
#define ACC_DTYPE sc_int
#define ACC_C_DTYPE int
#define MAX 2147483647
#defi... |
#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... |
#pragma once
#include <systemc.h>
#include "../../UTIL/debug_util.h"
#include "../../UTIL/fifo.h"
#define x12x2_size 130
SC_MODULE(x1_multiplier)
{
// input :
sc_in<sc_bv<320>> IN_RX0;
sc_in<bool> SELECT_HIGHER_BITS_RX0;
sc_in<bool> SIGNED_RES_RX0;
sc_in<bool> X02X1_EMPT... |
#pragma once
#include <systemc.h>
//#include "../CORE/core.h"
#include "../../CORE/core.h"
#include "CACHES/icache.h"
#include "CACHES/dcache.h"
#include "wb_river_mc.h"
SC_MODULE(IP_RIVER)
{
sc_in_clk CLK;
sc_in<bool> RESET_N;
//interface bus
sc_in<bool> ACK;
sc_in<sc_ui... |
/* 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... |
/*******************************************************************************
* cd4067.cpp -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design
*******************************************************************************
* Description:
* This is a simple model for the CD4067 Analog Mux.
**********************... |
/**
#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 __s8_h__
#define __s8_h__
#include <systemc.h>
SC_MODULE(s8)
{
sc_in<sc_uint<6> > stage1_input;
sc_out<sc_uint<4> >... |
#ifndef LOCAL_TEST_UTILS_H
#define LOCAL_TEST_UTILS_H
// Needed for all tests
#include <Gemmini.h>
static Gemmini g("g");
static sc_signal<sc_biguint<7>> funct_write;
static sc_signal<sc_biguint<64>> rs1;
static sc_signal<sc_biguint<64>> rs2;
static sc_signal<sc_biguint<7>> opcode;
#define FUNCT_CONFIG 0
#define... |
#ifndef I_CACHE
#define I_CACHE
#include <systemc.h>
#include "../../../UTIL/debug_util.h"
SC_MODULE(icache)
{
// interface global
sc_in_clk CLK;
sc_in<bool> RESET_N;
// interface RiVer
sc_in<sc_uint<32> > ADR_SI;
sc_in<bool> ADR_VALID_SI;
sc_out<sc_bv<32> > INST_SIC;
sc_out<bool> ... |
/*******************************************************************************
Vendor: GoodKook, goodkook@gmail.com
Associated Filename: sc_dffrs_TB.cpp
Purpose: Testbench
Revision History: Aug. 1, 2024
*******************************************************************************/
#ifndef _SC_DFFRS_TB_H_
#define _... |
/**
* @file sc_clk.h
* @brief This file contains the SystemC module for the clock
* @ingroup systemc_modules
*/
#ifndef SC_CLK_H
#define SC_CLK_H
#include <systemc.h>
#include "sc_config.h"
//#include "sc_run.h"
SC_MODULE(scClk)
{
sc_out<bool> clk{"clk_o"};
SC_CTOR(scClk)
{
SC_THREAD(clockTh... |
/*******************************************************************************
Vendor: GoodKook, goodkook@gmail.com
Associated Filename: sc_beh_shifter_TB.cpp
Purpose: Testbench
Revision History: Aug. 1, 2024
*******************************************************************************/
#ifndef _SC_BEH_SHIFTER_TB_... |
/*
* 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... |
/**********************************************************************
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... |
#ifndef SC_CLK_H
#define SC_CLK_H
#include <systemc.h>
#include "sc_config.h"
#include "sc_run.h"
SC_MODULE (scClk) {
// --------------------- Ports ---------------------
sc_out<bool> clk{"clk_o"};
SC_CTOR(scClk) {
SC_THREAD(clockThread);
}
void clockThread () {
sc_time... |
/*******************************************************************************
* mux_pcnt.h -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design
*******************************************************************************
* Description:
* Model for the PCNT mux in the GPIO matrix.
******************************... |
#ifndef RGB2GRAY_TLM_CPP
#define RGB2GRAY_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 "rgb2gray_tlm.hp... |
#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... |
#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 >... |
/**********************************************************************
Filename: E_fir_pe.h
Purpose : Emulated PE of Systolic FIR filter
Author : goodkook@gmail.com
History : Mar. 2024, First release
***********************************************************************/
#ifndef _E_FIR_PE_H_
#define _E_FIR_PE_H_
#... |
/*******************************************************************************
* <DIRNAME>test.h -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design
*******************************************************************************
* Description:
* This is the main testbench header for the test. It describes how
*... |
#ifndef __full_adder_h__
#define __full_adder_h__
#include <systemc.h>
//---------------------------------------
SC_MODULE(full_adder)
{
public: sc_in<bool> a, b, cin;
public: sc_out<bool> sum, cout;
//---------------------------------------
public: SC_CTOR(full_adder)
{
SC_METHOD(process);
sensitive << a <<... |
#ifndef AXIS_ENGINE_H
#define AXIS_ENGINE_H
#include <systemc.h>
#include "sysc_types.h"
SC_MODULE(AXIS_ENGINE) {
sc_in<bool> clock;
sc_in<bool> reset;
sc_fifo_in<DATA> dout1;
sc_fifo_out<DATA> din1;
bool send;
bool recv;
int id;
void DMA_MMS2() {
while (1) {
while (!send) wait();
for... |
#ifndef ACCNAME_H
#define ACCNAME_H
#include <systemc.h>
#include "tensorflow/lite/delegates/utils/secda_tflite/sysc_integrator/sysc_types.h"
#ifndef __SYNTHESIS__
#define DWAIT(x) wait(x)
#else
#define DWAIT(x)
#endif
#define ACCNAME TOY_ADD
#define ACC_DTYPE sc_uint
#define ACC_C_DTYPE unsigned int
#define STOPPER... |
// TODO Generalise this code so it is easy for all new accelerators
#ifndef SYSTEMC_INTEGRATE
#define SYSTEMC_INTEGRATE
#include <systemc.h>
#include "../ap_sysc/hls_bus_if.h"
// #include "tb_driver.h"
int sc_main(int argc, char* argv[]) { return 0; }
void sysC_init() {
sc_report_handler::set_actions("/IEEE_Std_1... |
/*******************************************************************************
* readMifaretest.h -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design
*******************************************************************************
* File: readMifaretest.h
* Project: IWM testbench
**********************************... |
/*******************************************************************************
* SerialToSerialBTtest.h -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design
*******************************************************************************
* Description:
* This is the main testbench header for the test. It describes... |
//****************************************************************************************
// MIT License
//****************************************************************************************
// Copyright (c) 2012-2020 University of Bremen, Germany.
// Copyright (c) 2015-2020 DFKI GmbH Bremen, Germany.
// Cop... |
#ifndef ACCNAME_H
#define ACCNAME_H
#include <systemc.h>
#include "tensorflow/lite/delegates/utils/secda_tflite/sysc_integrator/sysc_types.h"
#ifndef __SYNTHESIS__
#define DWAIT(x) wait(x)
#else
#define DWAIT(x)
#endif
#define ACCNAME TOY_ADD
#define ACC_DTYPE sc_uint
#define ACC_C_DTYPE unsigned int
#define STOPPER... |
#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 =... |
/*******************************************************************************
* pcnttest.h -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design
*******************************************************************************
* Description:
* This is the main testbench header for the pcnt.ino test. It describes ho... |
#ifndef ACCNAME_H
#define ACCNAME_H
#include <systemc.h>
#ifndef __SYNTHESIS__
#define DWAIT(x) wait(x)
#else
#define DWAIT(x)
#endif
#define ACCNAME SA_UINT8_V2_0
#define ACC_DTYPE sc_uint
#define ACC_C_DTYPE unsigned int
#define STOPPER 4294967295
#define IN_BUF_LEN 4096
#define WE_BUF_LEN 8192
#define SUMS_BUF_LE... |
#ifndef HAMMINGREG_
#define HAMMINGREG_
#include <systemc.h>
#include "HCGenerator.h"
#include "SynGenerator.h"
#include "Corrector.h"
//code and decode words using hamming code
SC_MODULE(HamReg)
{
HCGen *hgen; //this circuit generate a code word
SynGen *sgen; //this circuit calculate the syndrome
Corrector *c... |
///////////////////////////////////////////////////////////////////////////////
//
// 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
// ... |
/**********************************************************************
Filename: sc_fir_pe.h
Purpose : PE of Systolic FIR filter
Author : goodkook@gmail.com
History : Mar. 2024, First release
***********************************************************************/
#ifndef _SC_FIR_PE_H_
#define _SC_FIR_PE_H_
#includ... |
#pragma once
#include <systemc.h>
#include "../../UTIL/debug_util.h"
#include "../../UTIL/fifo.h"
#define x02x1_size 322
SC_MODULE(x0_multiplier)
{
// input :
sc_in<sc_uint<32>> OP1_SE, OP2_SE;
sc_in<sc_uint<2>> EXE_CMD_RD;
sc_in<bool> X02X1_POP_SX1;
sc_in<bool> DEC2X0_EMPT... |
// TODO Generalise this code so it is easy for all new accelerators
#ifndef SYSTEMC_INTEGRATION
#define SYSTEMC_INTEGRATION
#include <systemc.h>
#include "../acc.sc.h"
// #include "tensorflow/lite/delegates/utils/secda_tflite/sysc_integrator/axi4s_engine.sc.h"
#include "tensorflow/lite/delegates/utils/secda_tflite/ax... |
/**
#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 __s7_h__
#define __s7_h__
#include <systemc.h>
SC_MODULE(s7)
{
sc_in<sc_uint<6> > stage1_input;
sc_out<sc_uint<4> > ... |
#include <systemc.h>
#include <i2c_controller.h>
void i2c_controller::clk_divider()
{
if(rst)
{
i2c_clk.write(1);
}
else
{
if(counter2 == 1)
{
bool t = i2c_clk.read();
i2c_clk.write(!t);
counter2 = 0;
}
else {
counter2 = counter2 + 1;
}
}
}
void i2c_controller::scl_controller()
{
... |
#ifndef BUFFER_CACHE
#define BUFFER_CACHE
#include <systemc.h>
#include "../../../UTIL/debug_util.h"
SC_MODULE(buffercache)
{
sc_in<bool> RESET_N;
sc_in_clk CLK;
//INPUT from DCACHE
sc_in<bool> WRITE_OBUFF;
sc_in<bool> ACK;
sc_in<sc_uint<32>> DATA_C;
sc_in<sc_uint<32>> ADR_C;
sc_in<b... |
/**
* @file sc_config.h
* @brief This file contains the SystemC configuration
* @ingroup systemc_modules
*/
#ifndef SC_CONFIG_H
#define SC_CONFIG_H
#include <systemc.h>
typedef struct sc_thread_config_s
{
bool rst_act_level;
int rst_act_microsteps;
bool ena_act_level;
bool clk_act_edge;
sc_ti... |
/**
#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 __desround_h__
#define __desround_h__
#include <systemc.h>
#include "key_gen.h"
SC_MODULE(desround)
{
sc_in<bool > clk;... |
#ifndef __CONTADOR_ARGS_H__
#define __CONTADOR_ARGS_H__
#include <systemc.h>
#endif // __CONTADOR_ARGS_H__
|
#ifndef SC_ENV_H
#define SC_ENV_H
#include <stdint.h>
#include <systemc.h>
#endif
|
/*******************************************************************************
* cchan.h -- Copyright 2019 Glenn Ramalho - RFIDo Design
*******************************************************************************
* Description:
* Implements a SystemC module for a character wide UART like protocol.
* This ... |
// ================================================================
// 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.
// =======================================... |
/*****************************************************************************
NoximNoC.h -- Network-on-Chip (NoC) definition
*****************************************************************************/
#ifndef __NoximNoC_H__
#define __NoximNoC_H__
//------------------------------------------------------------... |
// TODO Generalise this code so it is easy for all new accelerators
#ifndef SYSTEMC_INTEGRATION
#define SYSTEMC_INTEGRATION
#include <systemc.h>
#include "../acc.sc.h"
// #include "tensorflow/lite/delegates/utils/secda_tflite/sysc_integrator/axi4s_engine.sc.h"
#include "tensorflow/lite/delegates/utils/secda_tflite/ax... |
/*
Problem 2 Design
*/
#include<systemc.h>
SC_MODULE(counters) {
sc_in<sc_uint<8> > in1 , in2 , in3;
sc_in<bool> dec1 , dec2 , clock , load1 , load2;
sc_out<sc_uint<8> > count1 , count2;
sc_out<bool> ended;
sc_signal<bool> isOverflow1 , isOverflow2;
void handleCount1();
void handleCount2();
void updateEnde... |
// TODO Generalise this code so it is easy for all new accelerators
#ifndef SYSTEMC_INTEGRATION
#define SYSTEMC_INTEGRATION
#include <systemc.h>
#include "../acc.sc.h"
// #include "tensorflow/lite/delegates/utils/secda_tflite/sysc_integrator/axi4s_engine.sc.h"
#include "tensorflow/lite/delegates/utils/secda_tflite/ax... |
#pragma once
#include <systemc.h>
#include "../../UTIL/debug_util.h"
SC_MODULE(alu) {
sc_in<sc_uint<32>> OP1_SE, OP2_SE;
sc_in<bool> CIN_SE;
sc_in<sc_uint<2>> CMD_SE;
sc_out<sc_uint<32>> RES_SE;
void operation();
void trace(sc_trace_file * tf);
SC_CTOR(alu) {
SC_METHOD(... |
#ifndef __I2C_SLAVE_CONTROLLER_H
#define __I2C_SLAVE_CONTROLLER_H
#include <systemc.h>
SC_MODULE(i2c_slave_controller)
{
sc_inout<sc_logic> sda;
sc_inout<sc_logic> scl;
enum states {READ_ADDR, SEND_ACK, READ_DATA, WRITE_DATA, SEND_ACK2};
sc_signal<states> state;
const sc_lv<7> ADDRESS = "0101010";
... |
/* 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... |
#include <systemc.h>
SC_MODULE(dual_memory)
{
}; |
/**********************************************************************
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... |
///////////////////////////////////////////////////////////////////////////////
//
// 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
// ... |
/**********************************************************************
Filename: sc_fir_pe.h
Purpose : PE of Systolic FIR filter
Author : goodkook@gmail.com
History : Mar. 2024, First release
***********************************************************************/
#ifndef _SC_FIR_PE_H_
#define _SC_FIR_PE_H_
#includ... |
/**
#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 __s2_h__
#define __s2_h__
#include <systemc.h>
SC_MODULE(s2)
{
sc_in<sc_uint<6> > stage1_input;
sc_out<sc_uint<4> > ... |
/**
#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 __s1_h__
#define __s1_h__
#include <systemc.h>
SC_MODULE(s1)
{
sc_in<sc_uint<6> > stage1_input;
sc_out<sc_uint<4> >... |
#include <systemc.h>
#include <string>
#include <vector>
#include <map>
#include <fstream>
#include <nana/gui.hpp>
#include <nana/gui/widgets/button.hpp>
#include <nana/gui/widgets/menubar.hpp>
#include <nana/gui/widgets/group.hpp>
#include <nana/gui/widgets/textbox.hpp>
#include <nana/gui/filebox.hpp>
#include "top.hp... |
&& i < 32)
{
reg_gui.at(i).text(1, std::to_string(value));
i++;
}
for (; i < 32; i++)
reg_gui.at(i).text(1, "0");
inFile.close();
} });
bench_sub->append("Bubble Sort", [&](menu::item_proxy &ip)
... |
///////////////////////////////////////////////////////////////////////////////
//
// 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
// ... |
/*******************************************************************************
* serial_tft.h -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design
*******************************************************************************
* Description:
* This is a simple model for a ST7735 based screen module.
************... |
/*******************************************************************************
* clkgen.h -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design
*******************************************************************************
* Description:
* Emulates the clocks on the ESP32.
*****************************************... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.