当前位置:网站首页>SystemC time
SystemC time
2022-06-12 13:55:00 【123axj】
The first thing to distinguish is SystemC Simulation time and Machine execution time , Machine execution time It is our CPU The physical time spent by the physical machine running the program , This time is the time we really feel ,1s,1min … ; and SystemC The simulation time is SystemC Program execution kernel Scheduled time ,SystemC Simulation time does not correspond to physical execution time in any granularity , Like a program , stay SystemC Simulation time from 0ns To 100 ns It took CPU The physical time is 10s; It is not possible to deduce from 100ns To 200ns The process also costs 10s The physical time of .
about 1G Hz Of silicon ( Hardware chip ),1s Is to execute 1G individual cycle; But if it's running RTL code Of Simulation, Then run 1 m Cycle It will probably cost CPU Physical time 1h, because Simulation It's serial execution . because Simulation Running too slowly , So we usually use emulation platform To run RTL code, use FPGA Hardware devices to speed up the simulation process .
SystemC It uses pure software to simulate the implementation of hardware , The simulation speed of the program is closely related to our code implementation . It can be used in general cycle per S To express the simulation speed , That is, the physical execution time 1S,SystemC How many times has the simulation time been advanced cycle, If we SystemC The program is configured with 1G Hz, be 1 individual cycle Namely 1ns.
You can use... In the code sc_core::sc_time_stamp() Get the current simulation time .
SC_ZERO_TIME yes SystemC Define a time macro , Express delta T, yes SystemC Kernel The smallest unit of time for scheduling , For programmers , In most cases, it can be simply understood as 0T. notes : If it involves SystemC Problems caused by scheduling sequence , You may need to consider delta T Influence .
Class sc_time yes SystemC Type of time used ,SystemC Supported time units enum sc_time_unit {SC_FS = 0, SC_PS, SC_NS, SC_US, SC_MS, SC_SEC};
Simulation time is an integer quantity. Simulation time is initialized to zero at the start of simulation and increases monotonically during simulation. The physical significance of the integer value representing time within the kernel is determined by the simulation time resolution. Simulation time and time intervals are represented by class sc_time. Certain functions allow time to be expressed as a value pair having the signature <double,sc_time_unit>
The simulation time is an integer . The simulation time is initialized to zero at the beginning of the simulation , Monotonically increase in the simulation process . The physical meaning of the integer value representing the time in the core is determined by the resolution of the simulation time . The simulation time and time interval are determined by the class sc_time Express . Some functions allow you to time Expressed as < double sc_time_unit> Value .
边栏推荐
- Cmake basic tutorial - 02 b-hello-cmake
- go-zero 微服务实战系列(二、服务拆分)
- Alibaba cloud development board haas510 parses serial port JSON data and sends attributes
- Codeforces 1638 A. reverse - simple thinking
- chrome://tracing Performance analysis artifact
- Factory mode of "object creation" mode
- Codeforces 1629 D. pecuriar movie preferences - simple thinking, palindrome strings
- NotePad 常用设置
- Knowledge of wireless card driver
- CSDN博客积分规则
猜你喜欢

编译安装基于fastcgi模式的多虚拟主机的wordpress和discuz的LAMP架构

正点原子STM32F429核心板的插座型号

单总线温度传感器18B20数据上云(阿里云)

Write policy of cache

当字节跳动在美国输出中国式 996

数据类型转换和条件控制语句
![[semidrive source code analysis] [x9 chip startup process] 25 - Introduction to mailbox inter core communication mechanism (code analysis) rpmsg-ipcc RTOS & QNX](/img/90/98faa5856fbc55ff7fda4a3adb3650.png)
[semidrive source code analysis] [x9 chip startup process] 25 - Introduction to mailbox inter core communication mechanism (code analysis) rpmsg-ipcc RTOS & QNX

Mold and remainder

Codeforces 1637 D. yet another minimization problem - Mathematics, DP

Formal analysis of Woo Lam protocol with scyther tool
随机推荐
2021-05-28
Codeforces 1638 D. Big Brush —— BFS
Ffmpeg Learning Guide
动态搜索广告智能查找匹配关键字
【视频课】android studio物联网APP设计制作全套教程--国庆期间全掌握
编译安装基于fastcgi模式的多虚拟主机的wordpress和discuz的LAMP架构
Mold and remainder
Cmake basic tutorial - 01 a-hello-cmake
Codeforces 1638 B. odd swap sort - tree array, no, simple thinking
Codeforces 1629 C. Mexico array - simple greed
Void pointer (void*) usage
简述CGI与FASTCGI区别
拆改广告机---业余解压
【SemiDrive源码分析】【X9芯片启动流程】25 - MailBox 核间通信机制介绍(代码分析篇)之 RPMSG-IPCC RTOS & QNX篇
Codeforces 1634 F. Fibonacci additions - Fibonacci sequence addition, ideas
阿里云开发板HaaS510解析串口JSON数据并发送属性
事件的传递和响应以及使用实例
Codeforces 1629 F2. Game on sum (hard version) - Yang Hui's triangle, violence, finding rules
Language skills used in development
Introduction to database system (Fifth Edition) notes Chapter 1 Introduction