摘要: namespace System.IO { public enum LogLevel { Debug, Info, Warning, Error, Fatal } public static class Logging { private static string _logFilePath; pr 阅读全文
posted @ 2023-03-02 22:26 vicky2021 阅读(395) 评论(0) 推荐(0) 编辑
摘要: Vivado版本:2015.4(新版本也可以的,至少2022.1版本是可以的。) 从TUL (tulembedded.com)网站中下载PYNQ-Z2板卡文件。直接下载链接:https://reference.digilentinc.com/learn/programmable-logic/tuto 阅读全文
posted @ 2023-02-04 23:38 vicky2021 阅读(1160) 评论(0) 推荐(0) 编辑
摘要: 启动Jupyter Notebook 当开发板成功启动起来之后,可以打开PC电脑的浏览器,输入http://192.168.2.99或http://pynq:9090/并回车,然后,浏览器会跳转至该地址,显示如下: 账号:xilinx,密码:xilinx 输入密码以后,浏览器进入Jupyter No 阅读全文
posted @ 2023-01-26 12:32 vicky2021 阅读(457) 评论(0) 推荐(0) 编辑
摘要: 准备软硬件 1块Pynq-Z2开发板 1张micro-SD卡(8GB即可) 1个micro-SD读卡器 1根micro-USB线 1根100/1000M网线 1台PC电脑,并安装好如下软件: Chrome / Edge PuTTy:https://the.earth.li/~sgtatham/put 阅读全文
posted @ 2023-01-26 12:28 vicky2021 阅读(992) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Drawing; using System.Runtime.InteropServices; using System.Security.Permissions; using System.Windows.Forms; namespace Vic 阅读全文
posted @ 2023-01-25 20:14 vicky2021 阅读(211) 评论(0) 推荐(0) 编辑
摘要: import logging LOG_FORMAT = "[%(asctime)s]\t%(levelname)s\t%(message)s" DATE_FORMAT = "%Y-%m-%d %H:%M:%S %P" ''' 只有在第一次调用logging.basicConfig()时会起作用,后续 阅读全文
posted @ 2023-01-25 17:20 vicky2021 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 功能说明 状态图 状态 信号 S0 Hwy=G, Cntry=R S1 Hwy=Y, Cntry=R S2 Hwy=R, Cntry=R S3 Hwy=R, Cntry=G S4 Hwy=R, Cntry=Y Verilog代码 `define TRUE 1'b1 `define FALSE 1'b 阅读全文
posted @ 2023-01-23 20:09 vicky2021 阅读(810) 评论(0) 推荐(0) 编辑
摘要: // 四选一多路选择器 module mux4_to_1(out, i0,i1,i2,i3,s1,s0) // 声明端口 output out; input i1,i2,i3,i4; input s1,s2; // 声明输出端口为寄存器变量 reg out; // 若输入信号改变,则重新计算输出信号 阅读全文
posted @ 2023-01-23 18:18 vicky2021 阅读(900) 评论(0) 推荐(0) 编辑
摘要: 门级建模 wire out1, in1, in2; // 与门(and)和或门(or) and a1(out1, in1, in2); // 与门 nand na1(out1, in1, in2); // 与非门 or or1(out1, in1, in2); // 或门 nor nor1(out1 阅读全文
posted @ 2023-01-23 13:04 vicky2021 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 模块 module <模块名> (<模块端口列表>, <端口声明>(若有), <参数声明>(可选)); ... // 模块内容 // 1 - wire, reg和其他类型的变量声明; // 2 - 数据流语句(assign); // 3 - 低层模块实例; // 4 - always和initial 阅读全文
posted @ 2023-01-09 22:13 vicky2021 阅读(105) 评论(0) 推荐(0) 编辑