当前位置:网站首页>如何成为一名高级数字 IC 设计工程师(1-6)Verilog 编码语法篇:经典数字 IC 设计
如何成为一名高级数字 IC 设计工程师(1-6)Verilog 编码语法篇:经典数字 IC 设计
2022-07-07 06:53:00 【新芯设计】
--加法器(Adder):考虑进位溢出
assign o_sum[DATA_WIDTH:0] = i_parta[DATA_WIDTH-1:0] + i_partb[DATA_WIDTH-1:0];
--半加器(Half-Adder)(DATA_WIDTH == 1):没有进位输入(DATA_WIDTH == 1)
assign {o_carry, o_sum[DATA_WIDTH-1:0]} = i_parta[DATA_WIDTH-1:0] + i_partb[DATA_WIDTH-1:0];
--全加器(Full-Adder)(DATA_WIDTH == 1):存在进位输入(DATA_WIDTH == 1)
assign {o_carry, o_sum[DATA_WIDTH-1:0]} = i_parta[DATA_WIDTH-1:0] + i_partb[DATA_WIDTH-1:0] + i_carry;
比较器(Comparator)
assign equal = (compa == compb) ? 1'b1 : 1'b0;
assign bigger = (compa >= compb) ? 1'b1 : 1'b0;
assign smaller = (compa <= compb) ? 1'b1 : 1'b0;
选择器(Selector)(Arbiter)(Multiplexor)(MUX)
// 简单的给出了三种实现方式:
// 方式1:
assign result = sel ? dina : dinb;
// 方式2:
assign result = ({(DATA_WIDTH){sel}} & dina[D
边栏推荐
- MySql数据库-索引-学习笔记
- Jenkins modifies the system time
- 网易云微信小程序
- Over 100000 words_ Ultra detailed SSM integration practice_ Manually implement permission management
- The configuration and options of save actions are explained in detail, and you won't be confused after reading it
- DRF defines views and routes
- Unity uses mesh to realize real-time point cloud (II)
- 浏览器中如何让视频倍速播放
- asp. How to call vb DLL function in net project
- 战略合作|SubQuery 成为章鱼网络浏览器的秘密武器
猜你喜欢
Nested (multi-level) childrn routes, query parameters, named routes, replace attribute, props configuration of routes, params parameters of routes
Port multiplexing and re imaging
战略合作|SubQuery 成为章鱼网络浏览器的秘密武器
Mysql:select ... for update
信息安全实验三 :PGP邮件加密软件的使用
Information Security Experiment 4: implementation of IP packet monitoring program
Unity3d interface is embedded in WPF interface (mouse and keyboard can respond normally)
Jmeters use
Information Security Experiment 3: the use of PGP email encryption software
信息安全实验四:Ip包监视程序实现
随机推荐
[4G/5G/6G专题基础-146]: 6G总体愿景与潜在关键技术白皮书解读-1-总体愿景
華為HCIP-DATACOM-Core_03day
牛客网——华为题库(61~70)
Jenkins task grouping
Schema-validation: wrong column type encountered in column XXX in table XXX
SAP MM STO单据的外向交货单创建后新加ITEM?
Confitest of fixture py
Pytest+request+allure+excel interface automatic construction from 0 to 1 [familiar with framework structure]
战略合作|SubQuery 成为章鱼网络浏览器的秘密武器
第一讲:鸡蛋的硬度
Vs2013 generate solutions super slow solutions
【云原生】DevOps(一):DevOps介绍及Code工具使用
Jenkins modifies the system time
Entity of cesium data visualization (Part 1)
4、 Fundamentals of machine learning
LeetCode每日一题(2316. Count Unreachable Pairs of Nodes in an Undirected Graph)
Connecting mobile phone with ADB
Postman interface debugging method
scrapy爬虫mysql,Django等
When inputting an expression in the input box, an error is reported: incorrect string value:'\xf0\x9f... ' for column 'XXX' at row 1