摘要: list1 = ['1.00', '1.00', '1.00', '1.00', '1.00', '1.00', '1.00', '1.00', '1.00', '1.00', '1.00', '1.00'] # 定义指定输出Excel文件的名称,读入方式,编码方式 result = open('r 阅读全文
posted @ 2022-02-13 16:45 Q强 阅读(1339) 评论(0) 推荐(0)
摘要: 1. 坐标不变 将txt转 xml import os #指导入os模块到当前程序 from os import getcwd #需要导入模块 from PIL import Image #Python图像库PIL(Python Image Library)是python的第三方图像处理库PIL包括 阅读全文
posted @ 2021-11-23 13:09 Q强 阅读(234) 评论(0) 推荐(0)
摘要: 编写一个频率检测模块,输入端口:50M时钟,待检测时钟(范围1M-200M) 输入端口A:50M时钟 输入端口B:被测时钟 输入端口C:复位信号 输出端口D:频率值(单位Mhz module time_detect( input clk_ref_in , //参考时钟50M input clk_in 阅读全文
posted @ 2021-09-13 14:13 Q强 阅读(423) 评论(2) 推荐(0)
摘要: 异步FIFO的FPGA实现 FIFO 同步+异步 阅读全文
posted @ 2021-09-11 23:24 Q强 阅读(27) 评论(0) 推荐(0)
摘要: module fsm ( input clk, input rst_n, input [4:0] in_money, output reg [3:0] out_money, output reg [1:0] out_goods ); parameter s0 = 2’b00, s1 = 2’b01, 阅读全文
posted @ 2021-09-09 10:33 Q强 阅读(311) 评论(0) 推荐(0)
摘要: 分频 当分频为2的整数次幂时 8分频:将一个3位的计数器最高位输出,也就是计数长度为8 module divider #(parameterN=3) ( input clk, input rstn, output clk_div, ); reg [N-1] div_reg; always@(pose 阅读全文
posted @ 2021-09-09 10:28 Q强 阅读(355) 评论(0) 推荐(0)
摘要: (1)了解状态机:什么是摩尔型状态机,什么是米利型状态机,两者的区别是什么?一段式、二段式、三段式状态机的区别? 状态机由状态寄存器和组合逻辑电路构成,能够根据控制信号按照预先设定的状态进行状态转移,是协调相关信号动作、完成特定操作的控制中心。有限状态机简写为FSM(Finite State Mac 阅读全文
posted @ 2021-09-08 09:28 Q强 阅读(1599) 评论(0) 推荐(0)
摘要: 1. repeat repeat(10)begin ...//执行10次 end for integer i ; initial begin for (i = 0 ; i < 8 ; i = i +1 ) begin $display(“ i = %0d”, i) ; end $finish ; e 阅读全文
posted @ 2021-09-04 20:12 Q强 阅读(282) 评论(0) 推荐(0)
摘要: 同步FIFO module fifo#(parameter fifo_depth = 8, addr_width = 3, data_width = 16) (input clk, input rst_n, input [15:0] data_in, output reg [15:0] data_o 阅读全文
posted @ 2021-08-31 20:35 Q强 阅读(71) 评论(0) 推荐(0)