# TLM2.0的建模时间精度 TLM2.0支持两种不同的建模时间精度 粗略时间精度 适用于操作系统启动时间级别的评估以及多核架构评估 处理器运算可以超前于仿真时间 每次传输事务支持2个时间点:起始和结束 支持直接存储器接口(DMI) 精确时间精度 时钟周期级别的精度 适用于架构级别的评估 处理器运算与仿真时间完全同步 每次传输事务支持4个时间点:开始请求、结束请求、开始响应、结束响应 TLM2.0的接口类型 阻塞传输接口: void b_transport(TRANS& trans, sc_time& delay); 包括时间标记 通常用于粗略时间精度 仅提供正向传输 非阻塞传输接口: nb_transport_fw(TRANS&, PHASE&, sc_time&); nb_transport_bw(TRANS&, PHASE&, sc_time&); 包括时间标记和传输阶段 通常用于精确时间精度 包括正向和反向传输 直接存储器访问接口: get_direct_mem_ptr(TRANS& trans, tlm_dmi& dmi_data); invalidate_direct_mem_ptr(sc_dt::uint64 start_range, sc_dt:uint64 end_range); 调试传输接口 transport_dbg(TRANS& trans); 00
SpinalHDL与Verilog的比较
近似语法比较 语法 SpinalHDL Verilog 阻塞赋值 a := U"h3" a <= 4'h3; 非阻塞赋值 a \= U"b11" `a = 4’b11; 连线 a <> b .a(b) 线 val a = UInt(4 bits) wire[3:0] a; 寄存器 val a = Reg(UInt(4 bits)) reg[3:0] a; 复位 always@(posedge clk or negedge rstn) if(!rstn) a <= 4'h0; val a = Reg(Uint(4 bits)) init(0) […]
LittleTalks20200103
This is the first blog in this brand new year. When look back to the year that just passed by, I’d say it’s been really a very busy year. I spent many hours on my work in the past year, had many fights between me and my wife because of that. There were times when […]
LittleTalks20191207
It has been about half a year since my last post. So many things happened during the time. Firstly, I have finished my first wechat game and submitted the soft copyright application request a few months ago. Hopefully I could get it approved by this winter. If so, I’d love to put it upon the […]
LittleTalks 20190316
How time flies! I have been extremely busy last week, for nothing. I have got no any good news ever since last post. So sad. When we grow older, we feel more of loneliness. That’s how I feel very much lately. Now I have nobody else to rely on, except for my wife. I missed […]
LittleTalks 20190308
I have been through a very busy week. Every time I made a joke with my wife, I wanted to write that joke down, but when I could, I had forgotten the joke completely. Which is just sad. So, I’m not gonna miss this one: I am awake now in the midnight, since I just […]
LittleTalks 20190224
Today I told my wife about my new year revolution, that is, I will stick my actions to these rules for this year: I will not buy any new games before I really have finished one that I have bought. I will not take any more part-time jobs before my game is finished. I will […]
LittleTalks 20190223
My wife asked me today, that if I could write her a little piece of words everyday. I said, yes. So this is why this article is born. I had not written anything in this blog for a very long time, but now I would like to restart writing things here. I don’t expect any […]
(中文) 小葵的傻瓜学习笔记:趣学JavaScript—教孩子学编程
第一部分 基础知识 第6章 条件与循环 条件有if和else if; if是只判断( )里的条件是否为真,else if是既判断之间if是否为假,再判断( )里的条件是否为真 if的写法:if(condition // 为真) { //do something } if…else的写法:if (condition // 为真) { // do something } else { // do something else } 程序举例25 // Make an order var lemonChicken = false var beefWithBlackBean = false var sweetAndSourPork = true […]
(中文) 小葵的傻瓜学习笔记:趣学JavaScript—教孩子学编程
第一部分 基础知识 第4章 对象 数组跟对象的区别:a). 位置索引;b). 对象中可包含JS内置函数 创建对象的基本语法:var cat = { leg: 4, name: “Harmony”, […]