摘要: 预处理 // a.c #include <stdio.h> #define MSG "Hello \ World!\n" #define _str(x) #x #define _concat(a, b) a##b int main() { printf(MSG /* "hi!\n" */); #if 阅读全文
posted @ 2026-01-03 18:42 与非或非门 阅读(4) 评论(0) 推荐(0)
摘要: 一生一芯数电实验2,3,6,7,8 NVBoard还是比较好用的,直接抄example的makefile改一下top和main.cpp以及引脚绑定即可使用 组合逻辑电路main.c代码 #include <nvboard.h> #include <Vxxx.h> static TOP_NAME du 阅读全文
posted @ 2026-01-01 20:28 与非或非门 阅读(22) 评论(0) 推荐(0)
摘要: ysyx的yosys工具 yosys工具使用 执行下面命令(粗粒度,yosys使用字级单元表示) read_verilog counter.v //细化 hierarchy -check -top counter //查看rtl视图 show //粗粒度综合 proc //优化 opt //执行fs 阅读全文
posted @ 2025-12-28 20:50 与非或非门 阅读(26) 评论(0) 推荐(0)
摘要: 本课程需要使用类 Unix shell,例如 Bash 或 ZSH。如果您在 Linux 或者 MacOS 上面完成本课程的练习,则不需要做任何特殊的操作。如果您使用的是 Windows,则您不应该使用 cmd 或是 Powershell;您可以使用 Windows Subsystem for Li 阅读全文
posted @ 2025-12-18 11:12 与非或非门 阅读(10) 评论(0) 推荐(0)
摘要: The Missing Semester of Your CS Education 中文版-版本控制git解答 - 新手初学,大佬勿喷,如有错误,欢迎留言 2.克隆本课程网站的仓库(https://github.com/missing-semester-cn/missing-semester-cn. 阅读全文
posted @ 2025-12-16 20:27 与非或非门 阅读(11) 评论(0) 推荐(0)
摘要: 习题1-8,11-12稍微鸽下,还在感悟中.21-24 第一章程序的基本概念 第二章-常量,变量和表达式 1、总结前面介绍的转义序列的规律,想想在printf的格式化字符串中怎么表示一个%字符?写个小程序试验一下。 void test01() { printf("%%\n"); } 2、假设变量x和 阅读全文
posted @ 2025-12-12 11:07 与非或非门 阅读(11) 评论(0) 推荐(0)
摘要: markdown简单学习 这是我markdown的开始,我将把他作为我的ysyx笔记 markdon记录 标题使用 就表示几级几级,很简单不多说 文本格式 ####### 斜体文本 粗体文本 粗斜体文本 分隔线 可以使用 来表示 代码块 int main6(void) { diamond(7, '* 阅读全文
posted @ 2025-12-09 20:16 与非或非门 阅读(8) 评论(0) 推荐(0)