Home / admin

admin

Simulation Engine in SystemC

SystemC is applied to system-level modeling, architectural exploration, performance modeling, software development, functional verification, and high-level synthesis. SystemC is often associated with electronic system-level (ESL) design, and with transaction-level modeling (TLM). notify() : Immediate notify(SC_ZERO_TIME), wait(SC_ZERO_TIME) : Delta notify(t), wait(t) : Timed First, elaboration occurs.During elaboration, SystemC modules are constructed …

Read More »

How does “#include” keyword work?

Have you ever wondered :  .#include meaning ? .what is “#include” keyword? .How does #include work? we will discuss it. DESCRIPTION # : is a pound sign which helps to pre-process the program before the compilation include : is a simple directive that tells pre-processor to include the library’s data(i.e. …

Read More »

How to fix : “Error downloading http://arduino…”

When you install the ESP8266 board in Arduino IDE . Some times, you can got an error.  [crayon-5d62184aab195894731345/] You can fix the error by 2 ways: Using other network » delete folder Arduino15 in “C:\Users\Administrator\AppData\Local”   » disconnect curent network and using DCOM 3G network. Using other source address » delete folder …

Read More »

What’s the diffrence between notify() and notify(SC_ZERO_TIME)

notify() function in order to trigger event. It can be called with parameters as below. notify() :Immediate notification notify(SC_ZERO_TIME) :Delta notification notify(double v, sc_time_unit tu) :Timed notification In fact, Delta notification is Timed notification with timed value is zero. When an event using Immediate notification, It is implies execution will …

Read More »

Unit tests SystemC model with GTest

Base on Google Test , we build a template framework for unit tests systemc model. About some information Google Test, you can refer here By using this framework, you can do unit tests for your model and ensure quality for your product. After download, follow the steps below. Step 1: …

Read More »

Verify your code with Google test

What is GTEST ? Google Test (also known as gtest for e.g. the ROS environment) is a unit testing library for the C++ programming language, based on the xUnit architecture. The library is released under the BSD 3-clause license. It can be compiled for a variety of POSIX and Windows platforms, allowing unit-testing of C sources as well as C++ with minimal source modification. …

Read More »

When to use “explicit” keyword

Use it when the constructor has one and only one argument. » It has meaning only when applied to constructor which can be called with exactly 1 argument provided. (Either it has 1 argument or has default values for all other) Use it only on the default, copy, and move …

Read More »