10 2022 档案

摘要:看起来 DPI-C 似乎并不只在 verilator 上起作用 下面这个网址包含了 一些 verilator 手册上没有的 DPI-C 用法,包括二维数组传递: svOpenArrayHandle https://blog.csdn.net/zhajio/article/details/109362 阅读全文
posted @ 2022-10-31 21:26 yinhuachen 阅读(392) 评论(0) 推荐(0) 编辑
摘要:最主要的可能:你在头文件里写了 非 static inline 的函数定义(注意定义和声明的区别) 有函数体的函数 -> 定义,而非声明 有初始化的全局变量 -> 定义,而非声明 (对于全局变量来说,似乎凡是不加 extern 的都会编程定义) 原因: 1. 有可能是头文件里没有加 #ifndef 阅读全文
posted @ 2022-10-29 16:21 yinhuachen 阅读(279) 评论(0) 推荐(0) 编辑
摘要:答案来源:https://askubuntu.com/questions/681637/grep-the-asterisk-doesnt-always-work 看高赞回答 阅读全文
posted @ 2022-10-29 14:17 yinhuachen 阅读(59) 评论(0) 推荐(0) 编辑
摘要:了解程序/工具行为的两种方法: 1. 看源码:可以得知每一处静态细节,但较繁琐 2. 看踪迹:容易了解运行动态行为,但不全面 下手要选容易的方式:看踪迹 啊 啊 啊 在面对比较大的项目时,如果这个项目有自带的 log/trace,那简直就是无价之宝 a a 使用 man console_codes 阅读全文
posted @ 2022-10-28 21:57 yinhuachen 阅读(335) 评论(0) 推荐(0) 编辑
摘要:分为两种:1. immediate assert 2. concurrent assert 自己去网页里看吧 答案来源:https://www.doulos.com/knowhow/systemverilog/systemverilog-tutorials/systemverilog-asserti 阅读全文
posted @ 2022-10-22 16:30 yinhuachen 阅读(46) 评论(0) 推荐(0) 编辑
摘要:1. py2flowchart - giveup 2. code2flow - beautiful, modulation, python not support, needs to pay. youtube tutorial https://www.youtube.com/watch?v=oOht 阅读全文
posted @ 2022-10-20 14:44 yinhuachen 阅读(37) 评论(0) 推荐(0) 编辑
摘要:感谢 yzh 大神的分享!!!! gcc的几个选项: -ffreestanding (表示编译出的程序将在裸机上运行)(注意:freestanding运行时环境默认的入口是_start()) Assert that compilation targets a freestanding environ 阅读全文
posted @ 2022-10-17 19:32 yinhuachen 阅读(223) 评论(0) 推荐(0) 编辑
摘要:1. 使用 assign reg_wen[rd] = 1'b1; 可以用一行实现一个 32-1 decoder - 错误,貌似会生成锁存器/存储器 阅读全文
posted @ 2022-10-12 20:33 yinhuachen 阅读(39) 评论(0) 推荐(0) 编辑
摘要:我所做的努力:1. 直接阅读报错信息所推荐的网页 得到方案1:使用PAT作为密码 缺点:麻烦 阅读全文
posted @ 2022-10-12 19:00 yinhuachen 阅读(20) 评论(0) 推荐(0) 编辑
摘要:" Try to prevent bad habits like using the arrow keys for movement. This is " not the only possible bad habit. For example, holding down the h/j/k/l k 阅读全文
posted @ 2022-10-12 17:18 yinhuachen 阅读(118) 评论(0) 推荐(0) 编辑
摘要:参考网址:https://www.makeuseof.com/windows-10-11-disable-caps-lock/ ( How to Disable Caps Lock by Editing the Registry 其中第八改成下面这个 "Scancode Map"=hex:00,00 阅读全文
posted @ 2022-10-12 14:30 yinhuachen 阅读(58) 评论(0) 推荐(0) 编辑
摘要:1. 把 ics2021 做个备份,存为 ics2021_backup 2. 来到 ics2021/PA,把 PA1-2 的所有 commit 压缩成一个 commit,使用 git rebase -i <after-this-commit> 命令 来源:https://stackoverflow. 阅读全文
posted @ 2022-10-11 10:13 yinhuachen 阅读(72) 评论(0) 推荐(0) 编辑
摘要:find . -iname "*.v" | xargs sed -r -i 's/([^a-zA-Z0-9_])([A-Z_]+)([^a-zA-Z0-9_])/\1<特定前缀>\2\3/g' 这里使用了 find 和 sed,宏的格式是[A-Z_]+,使用了 extended regexp 阅读全文
posted @ 2022-10-10 19:25 yinhuachen 阅读(43) 评论(0) 推荐(0) 编辑
摘要:提问:.gitignore。如何修改 .gitignore 才能忽略掉项目中的某个特定子目录下的任何修改。 详细解释:(展示 git status 结果)我想要让 git 忽略 npc/build 下的所有修改以下是我在 ysyx-workbench 下的 .gitignore (展示 .gitig 阅读全文
posted @ 2022-10-10 17:45 yinhuachen 阅读(1231) 评论(0) 推荐(0) 编辑
摘要:来源:ysyx5期, PA2 基础设施(2)- “测试你的klib” 内存和字符串的写入函数, 例如memset(), strcpy()等. 内存和字符串的只读函数, 例如memcmp(), strlen()等. 格式化输出函数, 例如sprintf()等. 如何进行充分的测试: 1. 在可以遍历输 阅读全文
posted @ 2022-10-05 14:09 yinhuachen 阅读(208) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示