목록SYSTEMC (7)
yc0325lee
Installing SystemC Library on Windows with MinGW SystemC 2020-08-21 01:08:48 # Installing MinGW64 1) Web links ; https://www.mingw-w64.org/ ; https://sooseongcom.com/post/MinGW-w64-HowToInstall 2) Tarball ; x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z -> 'bin' directory 포함하고 있는 것으로! 3) gcc/g++ installation ; 압축해제 후 C:\Portables\mingw64 로 복사 ; C:\Portables\mingw64\bin -> 환경변수 Path에 추가 ; gcc/g++ 사..
SystemC 2020-08-22 16:00:17 GTKWave Installation & Setup - Link gtkwave.sourceforge.net/ - Manual D:\PortableInstallations\gtkwave-3.3.100-bin-win32\gtkwave.pdf - Installation 1) gtkwave-3.3.100-bin-win32 download & untar 2) Add GTKWAVE_HOME/bin/ to $PATH System variable D:\PortableInstallations\gtkwave-3.3.100-bin-win32\gtkwave\bin - Vcd loading > gtkwave.exe -f waveform.vcd > gtkwave.exe -h - ..
#ifndef FIR_H #define FIR_H #include "defines.h" SC_MODULE(fir) { sc_in_clk i_clk; sc_in i_resetn; sc_in i_valid; // input sc_out o_busy; sc_in i_data; sc_out o_valid; // output sc_in i_busy; sc_out o_data; SC_CTOR(fir) // constructor { SC_CTHREAD(thread0, i_clk.pos()); async_reset_signal_is(i_resetn, false); SC_METHOD(method0); sensitive 0 ) trace_signals(); } void thread0(); // process void me..
#ifndef FIR_H #define FIR_H #include "defines.h" SC_MODULE(fir) { sc_in_clk i_clk; sc_in i_resetn; sc_in i_valid; // input sc_out o_busy; sc_in i_data; sc_out o_valid; // output sc_in i_busy; sc_out o_data; SC_CTOR(fir) // constructor { SC_CTHREAD(thread0, i_clk.pos()); async_reset_signal_is(i_resetn, false); if( dumpLevel > 0 ) trace_signals(); } void thread0(); // process void trace_signals() ..
#ifndef DUT_H #define DUT_H #include "defines.h" SC_MODULE(dut) { sc_in_clk i_clk; sc_in i_resetn; sc_in i_valid; sc_in i_bad[N]; // 1 -> bad, 0 -> good sc_in i_data[N]; sc_out o_valid; sc_out o_bad[N]; sc_out o_data[N]; SC_CTOR(dut) // constructor { SC_CTHREAD(thread0, i_clk.pos()); async_reset_signal_is(i_resetn, false); if( dumpLevel > 0 ) trace_signals(); } void thread0(); // process void tr..
1) 'port2trace.cmd' @echo off IF "%1"=="" ( perl D:\WORK\bin\port2trace.pl ) 2) port2trace.pl # vim: ft=perl ts=4 sw=4 tw=999 expandtab # ---------------------------------------------------------------------------- # File : list2trace.pl # Description : # Author : yc0325lee # Created : 2020-09-17 00:27:53 by lee2103 # Modified : 2020-09-17 00:27:53 by lee2103 # ----------------------------------..
- Reference See "How to compile SystemC code with sc_vector and SC_NAMED" from support.cadance.com // vim: ft=cpp ts=4 sw=4 tw=999 expandtab // ---------------------------------------------------------------------------- // File : sc_named.cpp // Author : yc0325lee // Created : 2022-02-17 13:45:08 by lee2103 // Modified : 2022-02-17 13:45:08 by lee2103 // Description : // -----------------------..