当前位置:网站首页>如何成为一名高级数字 IC 设计工程师(1-4)Verilog 编码语法篇:表达式
如何成为一名高级数字 IC 设计工程师(1-4)Verilog 编码语法篇:表达式
2022-07-03 09:55:00 【新芯设计】
一、定义表达式
以高等数学的函数定义为例,Verilog HDL 表达式定义如下:
result = operator(operand)这里,operand 就是输入(自变量)x,result 就是输出(因变量)y,operator 就是电路(映射关系)f,通过输入操作符和输入数据,就可以确定唯一的输出数据。如下所示:
assign result = dina + dinb; //算术操作符
assign reslut = dina > dinb; //比较操作符
assign reslut = dina && dinb; //逻辑操作符
assign reslut = dina & dinb; //位操作符
assign reslut = dina >> dinb; //移位操作符
assign reslut = sel ? dinb : dina; //条件操作符
assign reslut = {dina, dinb}; //连接操作符值得注意的是,操作符是具有优先级特性的,推荐括号代替其优先级!
边栏推荐
- 11. Provider service registration of Nacos service registration source code analysis
- QT: QSS custom qtableview instance
- Stack, monotone stack, queue, monotone queue
- 表空间创建管理及控制文件管理
- 行业唯一!法大大电子合同上榜36氪硬核科技企业
- After 8 years of industry thinking, the test director has a deeper understanding of test thinking
- Have you learned the new technology to improve sales in 2021?
- QT: QSS custom qtoolbutton instance
- 反正切熵(Arctangent entropy):2022.7月最新SCI论文
- 8年测试总监的行业思考,看完后测试思维认知更深刻
猜你喜欢

那些一门心思研究自动化测试的人,后来怎样了?

Multiple IO transfer - preamble

After 8 years of industry thinking, the test director has a deeper understanding of test thinking

Probability theory: application of convolution in calculating moving average

【蓝桥杯选拔赛真题44】Scratch消灭骷髅军团 少儿编程scratch蓝桥杯选拔赛真题讲解

The testing department of the company came to the king of the Post-00 roll, and the veteran exclaimed that it was really dry, but

Exclusive analysis | truth about resume and interview

Expandablelistview that can expand and shrink (imitating the list page of professional selection of Zhilian recruitment)

Solve the problem that pycharm Chinese input method does not follow

ByteDance layoffs, test engineers were almost destroyed: how terrible is the routine behind the recruitment of large factories?
随机推荐
IIS does not take effect after modifying the configuration information
Word line and bit line
17K薪资要什么水平?来看看95后测试工程师的面试全过程…
ConstraintLayout跟RelativeLayout嵌套出现的莫名奇妙的问题
I have been doing software testing for three years, and my salary is less than 20K. Today, I put forward my resignation
"Core values of testing" and "super complete learning guide for 0 basic software testing" summarized by test engineers for 8 years
嵌入式軟件測試怎麼實現自動化測試?
QT: QSS custom qtreeview instance
The normal one inch is 25.4 cm, and the image field is 16 cm
Summary of the history of Mathematics
Game test related tests a hero's skills (spring moves are asked more questions)
测试Leader应该做哪些事
Solution: jupyter notebook does not pop up the default browser
10. Nacos source code construction
解决undefined reference to `__aeabi_uidivmod‘和undefined reference to `__aeabi_uidiv‘错误
8年测试总监的行业思考,看完后测试思维认知更深刻
Expandablelistview that can expand and shrink (imitating the list page of professional selection of Zhilian recruitment)
15 software testing Trends Worthy of attention
A simple method of adding dividing lines in recyclerview
Communication software development and Application