text stringlengths 41 20k |
|---|
/***************************************************************************\
*
*
* ___ ___ ___ ___
* / /\ / /\ / /\ / /\
* / /:/ / /::\ / /::\ / /::\
* / /:/ / /:/\:\ / /:/\:\ / /:/\:\
*... |
#ifndef RISCV_TOP_H
#define RISCV_TOP_H
#include <systemc.h>
#include "axi4.h"
#include "axi4.h"
class Vriscv_top;
class VerilatedVcdC;
//-------------------------------------------------------------
// riscv_top: RTL wrapper class
//-------------------------------------------------------------
class riscv_top: pub... |
#include <memory>
#include <systemc.h>
#include "Vtop.h"
#include "bfm.h"
int sc_main(int argc, char* argv[]) {
if (false && argc && argv) {}
Verilated::debug(0);
Verilated::randReset(2);
Verilated::commandArgs(argc, argv);
ios::sync_with_stdio();
sc_clock clk{"clk", 10, SC_NS, 0.5, 5, SC_N... |
/*
* Created on: 24. OCT. 2019
* Author: Jonathan Horsted Schougaard
*/
#define SC_INCLUDE_FX
#include "hwcore/hf/helperlib.h"
#include "hwcore/pipes/data_types.h"
#include <systemc.h>
#ifndef __tag
#warning __tag not defined!!!
#undef _sc_stream_stitching
#else
#define _sc_stream_stitching JOIN(_sc_stream_s... |
#ifndef IPS_FILTER_TLM_HPP
#define IPS_FILTER_TLM_HPP
#include <systemc.h>
using namespace sc_core;
using namespace sc_dt;
using namespace std;
#include "ips_filter_lt_model.hpp"
#include "../src/img_target.cpp"
#include "important_defines.hpp"
//Extended Unification TLM
struct ips_filter_tlm : public Filter<IPS_IN... |
/*******************************************************************************
* i2c.h -- Copyright 2020 (c) Glenn Ramalho - RFIDo Design
*******************************************************************************
* Description:
* Models a single ESP32 I2C
**************************************************... |
/*******************************************************************************
* gpio_mf.h -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design
*******************************************************************************
* Description:
* Implements a SystemC model of a generic multi-function GPIO.
***********... |
//
// 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 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... |
#include <systemc.h>
SC_MODULE(nand_gate) {
public:
sc_in<bool> inp_a, inp_b;
sc_out<bool> out;
SC_HAS_PROCESS(nand_gate);
nand_gate(sc_module_name nm);
private:
void nand_main(void);
};
|
/* 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 <stdint.h>
#include... |
_cmpWrIdx2 = 0;
m_bPushWasReset = true;
} else if (m_bPush) {
m_que[m_wrIdx & ((1 << addrBits)-1)] = m_pushData;
wrIdx += 1;
if (m_maxEntriesUsed < size()) m_maxEntriesUsed = size();
}
m_cmpWrIdx2 = m_cmpWrIdx;
m_wrIdx = wrIdx;
m_cmpWrIdx = wrIdx;
m_bPush = false;
}
void pop_clock(bool bReset... |
#ifndef PROCESSING_ENGINE_HPP
#define PROCESSING_ENGINE_HPP
#include <systemc.h>
#include "verbose.hpp"
SC_MODULE(processing_engine_module)
{
// PORTS
sc_in<bool> clk;
sc_in<bool> reset;
sc_fifo_in<float> from_scheduler_weight;
sc_fifo_in<float> from_scheduler_input;
sc_fifo_in< sc_uint<34> > ... |
#pragma once
#include <systemc.h>
#include "RAM.h"
#include "wb_ram_sc.h"
SC_MODULE(IP_RAM)
{
sc_in_clk CLK;
sc_in<bool> RESET_N;
sc_in<sc_uint<32>> DAT_I;
sc_in<sc_uint<32>> ADR_I;
sc_in<bool> CYC_I; // when asserted indicates that a valid bus cycle in progress
sc_in<sc_uint<2>>... |
/*******************************************************************************
* TestSerial.cpp -- Copyright 2019 Glenn Ramalho - RFIDo Design
*******************************************************************************
* Description:
* Generic Serial Class for communicating with a set of SystemC ports.
* ... |
//
// 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... |
w_ready = w_ready_;
b_valid = b_valid_;
b_resp = b_resp_;
b_id = b_id_;
b_user = b_user_;
ar_ready = ar_ready_;
r_valid = r_valid_;
r_resp = r_resp_;
r_data = r_data_;
r_last = r_last_;
r_id = r_id_;
r_user = r_user_;
... |
///////////////////////////////////////////////////////////////////////////////
//
// 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
// ... |
/*
* Copyright (c) 2019 Sekhar Bhattacharya
*
* SPDX-License-Identifier: MIT
*/
#include <systemc.h>
#include "utils.h"
template <int sram_size>
SC_MODULE(Sram) {
sc_in<uint32_t> i_sram_addr;
sc_in<uint32_t> i_sram_dq;
sc_out<uint32_t> o_sram_dq;
sc_in<bool> i_sram_ce_n;
sc_in<bool> i_sram_we... |
/****************************************************************************
*
* 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.
*
******... |
#ifndef IPS_VGA_TLM_HPP
#define IPS_VGA_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 "common_func.hpp"
... |
/*
* memoria.h
*
* Created on: 14 de mai de 2017
* Author: drcfts
*/
#ifndef MEMORIA_H_
#define MEMORIA_H_
#include <systemc.h>
#include "mem_if.h"
#include "shared.h"
using namespace std;
//Implementacao da interface de memoria, para se conectar
//com os modulos do RISC-V
struct mem : public sc_module, ... |
//
// 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 2017 Columbia University, SLD Group */
//
// system.h - Robert Margelli
// Top-level model header file.
// Instantiates the CPU, TB, IMEM, DMEM.
//
#ifndef SYSTEM_H_INCLUDED
#define SYSTEM_H_INCLUDED
#include <systemc.h>
#include "cynw_flex_channels.h"
#include "hl5_datatypes.hpp"
#include "defines.hp... |
//
// 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 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... |
/*******************************************************************************
* <DIRNAME>test.cpp -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design
*******************************************************************************
* Description:
* This is the main testbench for the <DIRNAME>.ino test.
*********... |
/*
* Copyright 2018 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 required... |
#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 <int> address;
sc_core::sc_in <int> data_in;
sc_core::sc_in <bool> flag_wr;
sc_core::sc_in <bool> ready;
/... |
/*******************************************************************************
* pcntbus.h -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design
*******************************************************************************
* Description:
* Defines the format of the PCNT bus. This is a simple encapsulation bus to
... |
#ifndef _DRAM_H_
#define _DRAM_H_
#include <stdint.h>
#include <systemc.h>
#include <ahb_slave_if.h>
#include <math.h>
#define READ_PIPELINE
#define REF_TIME 6400000 //#cycle @ 100MHz (10ns)
#define REF_CYCLE 8192
#define CL 10 //ns
#define CWL 10 //ns
#define tRAS 12000 // Active to Pr... |
/*
* Copyright (c) 2009 Thales Communication - AAL
*
* 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 opt... |
#ifndef MEMORY_TLM_HPP
#define MEMORY_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 "../src/img_target.c... |
#ifndef MC_SCVERIFY_H_INC
#define MC_SCVERIFY_H_INC
//
// mc_scverify.h
//
// This header file provides macros useful for creating testbenches
// for standard C++ designs as well as SystemC testbenches.
// Support for either standard C++ or SystemC is controlled by
// the compiler directive '#ifdef CCS_SYSC'.
//
#if ... |
#ifndef IMG_TRANSMITER_HPP
#define IMG_TRANSMITER_HPP
#include <systemc.h>
#include "address_map.hpp"
SC_MODULE(img_transmiter)
{
//Array for input image
unsigned char* output_image;
sc_dt::uint64 address_offset;
SC_CTOR(img_transmiter)
{
output_image = new unsigned char[IMG_INPUT_SIZE];
... |
/*
* Copyright 2018 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 required... |
/*******************************************************************************
* pn532_base.h -- Copyright 2020 (c) Glenn Ramalho - RFIDo Design
*******************************************************************************
* Description:
* This is a crude model for the PN532 with firmware v1.6. It will work f... |
#include <systemc.h>
#include <systemc-ams.h>
// #ifndef IPS_AMS
// #define IPS_AMS
// #endif // IPS_AMS
#include "adc.hpp"
#include "dac.hpp"
#include "memory.hpp"
#include "seq_item_ams.hpp"
#include "vga.hpp"
// Main clock frequency in Hz - 25.175 MHz
#define CLK_FREQ 25175000
// VGA settings
#define H_ACTIVE 640... |
/*******************************************************************************
* st7735.cpp -- Copyright 2019 (c) Glenn Ramalho - RFIDo Design
*******************************************************************************
* Description:
* This is a testbench module to emulate the ST7735 display controller.
**... |
//
//------------------------------------------------------------//
// Copyright 2009-2012 Mentor Graphics Corporation //
// All Rights Reserved Worldwid //
// //
// Licensed under the Apache License, Version 2.0 (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 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... |
<< v.aw_valid << ","
<< v.aw_bits.addr << ","
<< v.aw_bits.len << ","
<< v.aw_bits.size << ","
<< v.aw_bits.burst << ","
<< v.aw_bits.lock << ","
<< v.aw_bits.cache << ","
<< v.aw_bits.prot << ","
<< v.aw_bits.qos << ","
<< v.aw_bits.region <... |
ace(tf, v.pprot, NAME + "_pprot");
sc_trace(tf, v.pselx, NAME + "_pselx");
sc_trace(tf, v.penable, NAME + "_penable");
sc_trace(tf, v.pwrite, NAME + "_pwrite");
sc_trace(tf, v.pwdata, NAME + "_pwdata");
sc_trace(tf, v.pstrb, NAME + "_pstrb");
}
inline friend ostream &ope... |
#include <systemc.h>
#include <iostream>
#include "constants.h"
#include "fifo.h"
SC_MODULE(decod) {
/*****************************************************
Interface with REG
******************************************************/
// adresses of Rs and Rd
sc_out<sc_uint<6>> RADR1_S... |
#ifndef CONTROLLER_TRANSACTOR_HH
#define CONTROLLER_TRANSACTOR_HH
#include <systemc.h>
#include <tlm.h>
#include <tlm_utils/tlm_quantumkeeper.h>
#include "global.hh"
class ControllerTransactor
: public sc_module
, public virtual tlm::tlm_fw_transport_if<>
{
public:
//TLM side
tlm::tlm_target_socket<> ta... |
#ifndef SC_GATES_PV_H
#define SC_GATES_PV_H
#include <QtXml>
//#include <QDomNodeList>
#include <systemc.h>
/**
* @brief The SyscLogicGate_pv::sc_core::sc_module class
* @details A generic SystemC module that implements a logic gate with N inputs and 1 output.
* The gate is combinational, i.e., the output is updat... |
#include <systemc.h>
/**
* @brief jpg_output module. Federico Cruz
* It takes the image and compresses it into jpeg format
* It is done in 4 parts:
* 1. Divides the image in 8x8 pixel blocks; for 8-bit grayscale images the a level shift is done by substracting 128 from each pixel.
* 2. Discrete Cosine Transform (... |
#ifndef TESTBENCH_H
#define TESTBENCH_H
#include <systemc.h>
#include <iostream>
using namespace std;
template <class DataType>
class Testbench : public sc_module
{
private:
void test()
{
print();
en_out = 1;
data_out = 1234;
wait();
print();
data_out.write(data_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.
// =======================================... |
// ================================================================
// 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.
// =======================================... |
/************************************************/
// Copyright tlm_noc contributors.
// Author Mike
// SPDX-License-Identifier: Apache-2.0
/************************************************/
#include <systemc.h>
#include <tlm.h>
#include <tlm_utils/peq_with_cb_and_phase.h>
#include <tlm_utils/simple_initiator_socket.h... |
#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;... |
// ================================================================
// 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>
SC_MODULE(nand_gate) {
public:
sc_in<bool> inp_a, inp_b;
sc_out<bool> out;
SC_HAS_PROCESS(nand_gate);
nand_gate(sc_module_name nm);
private:
void nand_main(void);
};
|
#include <systemc.h>
SC_MODULE(nand_gate) {
public:
sc_in<bool> inp_a, inp_b;
sc_out<bool> out;
SC_HAS_PROCESS(nand_gate);
nand_gate(sc_module_name nm);
private:
void nand_main(void);
};
|
#include <systemc.h>
SC_MODULE(nand_gate) {
public:
sc_in<bool> inp_a, inp_b;
sc_out<bool> out;
SC_HAS_PROCESS(nand_gate);
nand_gate(sc_module_name nm);
private:
void nand_main(void);
};
|
/*****************************************************************************
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... |
#ifndef _DRAM_H_
#define _DRAM_H_
#include <stdint.h>
#include <systemc.h>
#include <ahb_slave_if.h>
#include <math.h>
#define READ_PIPELINE
#define REF_TIME 6400000 //#cycle @ 100MHz (10ns)
#define REF_CYCLE 8192
#define CL 10 //ns
#define CWL 10 //ns
#define tRAS 12000 // Active to Pr... |
//
//------------------------------------------------------------//
// Copyright 2009-2012 Mentor Graphics Corporation //
// All Rights Reserved Worldwid //
// //
// Licensed under the Apache License, Version 2.0 (the ... |
#include <systemc.h>
#include <iostream>
#include "constants.h"
#include "fifo.h"
SC_MODULE(decod) {
/*****************************************************
Interface with REG
******************************************************/
// adresses of Rs and Rd
sc_out<sc_uint<6>> RADR1_S... |
#include <systemc.h>
#include "memory.cpp"
int sc_main (int argc, char* argv[]) {
int data;
ram mem("MEM", 1024);
// Open VCD file
sc_trace_file *wf = sc_create_vcd_trace_file("memory");
wf->set_time_unit(1, SC_NS);
// Dump the desired signals
sc_trace(wf, data, "data");
sc_start... |
// ================================================================
// 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.
// =======================================... |
//
// 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... |
/*****************************************************************************
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... |
/*
* timer.h
*
* Created on: 18 de abr de 2017
* Author: vieira
*/
#ifndef INCLUDE_TIMER_H_
#define INCLUDE_TIMER_H_
#include <systemc.h>
SC_MODULE(Timer){
sc_in<bool> at, reset;
sc_in<bool> clk;
sc_out<bool> IL, IC;
SC_CTOR(Timer){
counter = 0;
SC_METHOD(proc);
sensitive << reset << at << clk.... |
#include <systemc.h>
#include "sbox.h"
#ifndef __SUBBYTES_H__
#define __SUBBYTES_H__
using namespace sc_core;
SC_MODULE( subBytes ) {
sc_in<sc_logic> in[128];
sc_out<sc_logic> out[128];
sbox* sub_Bytes_0;
sbox* sub_Bytes_1;
sbox* sub_Bytes_2;
sbox* sub_Bytes_3;
sbox* sub_Bytes_4;
sb... |
#pragma once
#include <systemc.h>
#include <iostream>
#include <string>
#include "debug_util.h"
SC_MODULE(shifter) {
sc_in<sc_uint<32>> DIN_SE; // input
sc_in<sc_uint<5>> SHIFT_VAL_SE; // shift value
sc_in<sc_uint<2>> CMD_SE; // command
/*
Command value :
- 0 : Shift Left ... |
#ifdef RGB2GRAY_PV_EN
#ifndef RGB2GRAY_HPP
#define RGB2GRAY_HPP
#include <systemc.h>
SC_MODULE(Rgb2Gray)
{
unsigned char r;
unsigned char g;
unsigned char b;
unsigned char gray_value;
SC_CTOR(Rgb2Gray)
{
}
void set_rgb_pixel(unsigned char r_val, unsigned char g_val, unsigned char b_val);
voi... |
// Copyright (c) 2011-2021 Columbia University, System Level Design Group
// SPDX-License-Identifier: Apache-2.0
#ifndef __GEMM_ACCELERATOR_CONF_INFO_HPP__
#define __GEMM_ACCELERATOR_CONF_INFO_HPP__
#include <systemc.h>
//
// Configuration parameters for the accelerator.
//
class conf_info_t
{
public:
//
//... |
#ifndef __DW_IntrGen_h
#define __DW_IntrGen_h
#include <systemc.h>
#include <ccss_systemc.h>
#include "ahb_slave_if.h"
#ifdef CCSS_USE_SC_CTOR
#define CCSS_INIT_MEMBERS_PREFIX :
#undef CCSS_USE_SC_CTOR
#else
#define CCSS_INIT_MEMBERS_PREFIX ,
#endif
#ifndef SYNTHESIS
#define CCSS_INIT_MEMBERS CCSS_INIT_MEMBERS_P... |
/*******************************************************************************
* pcf8574.cpp -- Copyright 2020 (c) Glenn Ramalho - RFIDo Design
*******************************************************************************
* Description:
* This is a crude model for the PN532 with firmware v1.6. It will work fo... |
//
// 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 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... |
scaler
vb_rdata = r.scaler;
if ((w_req_valid.read() == 1) && (w_req_write.read() == 1)) {
v.scaler = wb_req_wdata.read()(30, sim_speedup_rate_);
v.scaler_cnt = 0;
}
break;
case 7: // 0x1C: fwcpuid
vb_rdat... |
/* Copyright 2017 Columbia University, SLD Group */
//
// execute.h - Robert Margelli
// execute stage header file.
//
// Division algorithm for DIV, DIVU, REM, REMU instructions. Division by zero
// and overflow semantics are compliant with the RISC-V specs (page 32).
//
#include <systemc.h>
#include "cynw_flex_chan... |
/*
' * execute.h
*
* Created on: 4 de mai de 2017
* Author: drcfts
*/
#include <systemc.h>
#include "breg_if.h"
#include "mem_if.h"
#include "shared.h"
SC_MODULE(execute){
sc_port <mem_if> p_mem;
sc_port <breg_if> p_breg;
sc_fifo_in < contexto* > decode_execute;
sc_fifo_out < contexto*> execute_fetch;
... |
/*****************************************************************************
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 Print stuff for types and structs.
*/
#ifndef HUFFMAN_CODING_PRINT_H
#define HUFFMAN_CODING_PRINT_H
///////////////////////////////////////////////////////////////////////////////
#include <ostream>
#include <vector>
#include <deque>
#include <systemc.h>
/////////////////////////////... |
// 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_CONTROL
#define INCLUDED_CONTROL
#include <systemc.h... |
//
// 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 (c) 2011-2024 Columbia University, System Level Design Group
// SPDX-License-Identifier: MIT
#ifndef __ESP_SYSTEMC_HPP__
#define __ESP_SYSTEMC_HPP__
// Fixed point
#if defined(SC_FIXED_POINT) || defined(SC_FIXED_POINT_FAST)
// Using SystemC fixed point
#define SC_INCLUDE_FX
#include <systemc.h>
#else... |
/****************************************************************************
*
* 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.
*
******... |
#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.hpp"
#include... |
inFile.open(path);
if(!inFile.is_open())
show_message("Arquivo inválido","Não foi possível abrir o arquivo!");
else
{
int i = 0;
int value;
while(inFile >> value && i < 500)
{
memor... |
// ================================================================
// 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.
// =======================================... |
#ifndef SYSC_TYPES_H
#define SYSC_TYPES_H
#include <iomanip>
#include <iostream>
#include <systemc.h>
#include "secda_hw_utils.sc.h"
#ifndef DWAIT
#ifndef __SYNTHESIS__
#define DWAIT(x) wait(x)
#else
#define DWAIT(x)
#endif
#endif
#define INITSIGPORT(X, SID) X((std::string(#X) + std::to_string(SID)).c_str())
// Har... |
//
// 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 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... |
#include <systemc.h>
SC_MODULE( tb ) {
public:
sc_out<bool> inp_a[4], inp_b[4], inp_cin;
sc_in<bool> sum[4], co;
SC_HAS_PROCESS( tb );
bool a[6][4];
bool b[6][4];
tb( sc_module_name nm );
private:
void source();
void sink();
};
|
//-----------------------------------------------------
//Module: Image Unification (PV) Header
//By: Roger Morales Monge
//Description: Programmer's View Model of unification
//process for two images (magnitude)
//-----------------------------------------------------
#ifdef IMG_UNIFICATE_PV_EN
#ifndef IMG_UNIFICATE_H... |
/************************************************/
// Copyright tlm_noc contributors.
// Author Mike
// SPDX-License-Identifier: Apache-2.0
/************************************************/
#ifndef __HOST_H__
#define __HOST_H__
#include <sstream>
#include <systemc.h>
#include <tlm.h>
#include <tlm_utils/simple_initia... |
/****************************************************************************
*
* 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.
*
******... |
/*+
* Copyright (c) 2022-2023 Zhengde
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1 Redistributions of source code must retain the above copyright notice, this
* list of co... |
/*****************************************************************************
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... |
#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_... |
//
// 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... |
#ifndef _AHB_SLAVE_IF_H_
#define _AHB_SLAVE_IF_H_
#include <stdint.h>
using namespace std;
#include <systemc.h>
#include <tlm.h>
#include <tlm_utils/simple_target_socket.h>
using namespace tlm;
using namespace tlm_utils;
//#include <debug_utils.h>
class ahb_slave_if
{
public:
simple_target_socket<ahb_s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.