摘要: 将代码打包为一个IP模块 以FIFO代码为例:https://www.cnblogs.com/waqdgstd/p/15267726.html 1.打开向导 2.源文件和外围接口选择,这里不选AXI4 3.保存位置 4.最后检查后点解Package IP 将IP模块添加到库里面供搭建BD文件调用 B 阅读全文
posted @ 2021-09-16 15:23 冰峰漫步 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.cnblogs.com/aslmer/p/6114216.html 文章:Simulation and Synthesis Techniques for Asynchronous Asynchronous FIFO Design 异步FIFO的读写指针 写指针 写指针指 阅读全文
posted @ 2021-09-14 15:18 冰峰漫步 阅读(1840) 评论(0) 推荐(0) 编辑
摘要: // a 3-input look-up-table // In this question, you will design a circuit for an 8x1 memory, // where writing to the memory is accomplished by shiftin 阅读全文
posted @ 2021-09-06 21:38 冰峰漫步 阅读(372) 评论(0) 推荐(0) 编辑
摘要: ## 题目要求 使用verilog描述如图所示得移位寄存器: Write a top-level Verilog module (named top_module) for the shift register, assuming that n = 4. Instantiate four copie 阅读全文
posted @ 2021-09-06 19:37 冰峰漫步 阅读(598) 评论(0) 推荐(0) 编辑
摘要: //四级移位寄存器 module top_module ( input clk, input resetn, // synchronous reset input in, output reg out); reg [2:0] Q; always @(posedge clk)begin if(~res 阅读全文
posted @ 2021-09-06 14:21 冰峰漫步 阅读(444) 评论(0) 推荐(0) 编辑
摘要: //Build a 32-bit Galois LFSR with taps at bit positions 32, 22, 2, and 1. 草图 verilog描述 module top_module( input clk, input reset, // Active-high synch 阅读全文
posted @ 2021-09-06 10:06 冰峰漫步 阅读(753) 评论(0) 推荐(0) 编辑
摘要: 1.描述电路图里面的一个子模块 Assume that you want to implement hierarchical Verilog code for this circuit, using three instantiations of a submodule that has a fli 阅读全文
posted @ 2021-09-04 17:31 冰峰漫步 阅读(441) 评论(0) 推荐(0) 编辑
摘要: Build this LFSR. The reset should reset the LFSR to 1 module top_module( input clk, input reset, // Active-high synchronous reset to 5'h1 output reg [ 阅读全文
posted @ 2021-09-04 15:16 冰峰漫步 阅读(295) 评论(0) 推荐(0) 编辑
摘要: // Build a 64-bit arithmetic shift register, // with synchronous load. The shifter can shift both left and right, // and by 1 or 8 bit positions, sele 阅读全文
posted @ 2021-09-04 12:03 冰峰漫步 阅读(1265) 评论(0) 推荐(0) 编辑
摘要: verilog代码: // Build a 100-bit left/right rotator, with synchronous load and left/right enable. //A rotator shifts-in the shifted-out bit from the othe 阅读全文
posted @ 2021-09-04 10:51 冰峰漫步 阅读(435) 评论(0) 推荐(0) 编辑