HDLbits——Lfsr32
//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 synchronous reset to 32'h1
    output reg [31:0] q
); 
always @(posedge clk) begin
    if(reset)begin
        q <= 32'h1;
    end
    else begin
        q <= {1'b0^q[0],q[31:23],q[22]^q[0],q[21:3],q[2]^q[0],q[1]^q[0]};
    end
end
endmodule
vivado下的RTL原理图:

quartus下的RTL原理图:采用大量选择器

HDLbits——Lfsr32的更多相关文章
- 学会使用Hdlbits网页版Verilog代码仿真验证平台
		
给大家推荐一款网页版的 Verilog代码编辑仿真验证平台,这个平台是国外的一家开源FPGA学习网站,通过“https://hdlbits.01xz.net/wiki/Main_Page” 地址链接进 ...
 - HDLBits答案——Circuits
		
1 Combinational Logic 1.1 Basic Gates 1.1.1 Exams/m2014 q4h module top_module ( input in, output out ...
 - HDLBits答案——Verification: Writing Testbenches
		
1 clock module top_module ( ); reg clk; dut U1(.clk(clk)); initial begin clk = 0; end always begin # ...
 - HDLBits答案——Verification: Reading Simulations
		
1 Finding bugs in code 1.1 Bugs mux2 module top_module ( input sel, input [7:0] a, input [7:0] b, ou ...
 - HDLBits答案——Verilog Language
		
Verilog Language 1 Basics 1.1 Wire module top_module( input in, output out ); assign out = in; endmo ...
 - HDLBits答案——Getting started
		
Getting started 1 Step one module top_module( output one ); // Insert your code here assign one = 1' ...
 - verilog常见错误列表
		
Error/Warning 来源:https://hdlbits.01xz.net/wiki/ 题目: 1.Quartus Warning 10235: Warning (): Verilog HDL ...
 - Verilog HDL
		
https://wenku.baidu.com/view/9943b7acf524ccbff1218463.html https://hdlbits.01xz.net/wiki/Main_Page h ...
 - Verilog设计技巧实例及实现
		
Verilog设计技巧实例及实现 1 引言 最近在刷HDLBits的过程中学习了一些Verilog的设计技巧,在这里予以整理.部分操作可能降低代码的可读性和Debug的难度,请大家根据实际情况进行使用 ...
 - 入行数字IC验证的一些建议
		
0x00 首先,推荐你看两本书,<"胡"说IC菜鸟工程师完美进阶>(pdf版本就行)本书介绍整个流程都有哪些岗位,充分了解IC行业的职业发展方向.<SoC设计方法 ...
 
随机推荐
- Deer_GF之UIButtonSuper
			
Deer_GF之UIButtonSuper介绍 待完善...
 - C++程序设计实验二 数组、指针与C++标准库
			
Info.hpp文件源码 #include<iostream> #include<string> #include<iomanip> using namespace ...
 - Spring oauth2 ,Spring security, Session,Cookie,token,SSO 是什么,解决什么问题,如何集成?
			
背景假设就是一个多个域名web系统需要SSO单点登陆 什么Session? 2.什么是Token? 3.什么是Cookie? 4.Spring security? 5.Spring oauth2?
 - [后端-python实战总结]-chapter1-python基础01
			
1.1 week 1 > 密码秘文: import getpass username = input('username:') passwd = getpass.getpass('passwd: ...
 - RockyLinux8.7 制作OpenSSH9.2 rpm包
			
由于系统原装的openssh存在高危的漏洞,安全扫描不过,故制作出最新版本的rpm包修复openssh高危漏洞. 1.安装基础环境工具 dnf install wget make gcc perl r ...
 - Jest - Using test function to test the function
			
Note: Please check the prev blog to see the jest configuration. calculator.js const plus = (a, b) =& ...
 - Unity简单使用 Addressables远端打包流程
			
跟着一步步操作即可 1.先打开一个unity项目 2.导入插件资源包地址,点击如图片所示 3.最后点击导入就行了也就是第三步 Install 4.这是在点击 Window 安装后Window/多了一个 ...
 - boss直聘上看信息 但是不会显示已读
			
大家在boss直聘上看 想看的boss回你的信息但是又不想显示已读 可以按F12 打开控制台 查找标出文件 查看lastmsg文本里面就是最后一次发你的信息
 - 2、k8s 基础环境安装
			
3 k8s 环境配置 3.1 基础环境准备 所有机器执行 #各个机器设置自己的域名 我的设置为 hostnamectl set-hostname ks8-master.hostnamectl set- ...
 - ENGG1310 P2.1 Intro to CE Computer Systems, Programming & Networking
			
课程内容笔记,自用,不涉及任何 assignment,exam 答案 Notes for self-use, do not include any assignments or exams H/W & ...