当前位置:网站首页>How to become a senior digital IC Design Engineer (1-4) Verilog coding syntax: expression
How to become a senior digital IC Design Engineer (1-4) Verilog coding syntax: expression
2022-07-03 11:18:00 【New core design】
One 、 Define expressions
Take the function definition of advanced mathematics as an example ,Verilog HDL The expression is defined as follows :
result = operator(operand)
here ,operand It's input. ( The independent variables )x,result It is output. ( The dependent variable )y,operator It's the circuit ( The mapping relationship )f, By entering operators and data , You can determine the unique output data . As shown below :
assign result = dina + dinb; // arithmetic operator
assign reslut = dina > dinb; // Comparison operator
assign reslut = dina && dinb; // Logical operators
assign reslut = dina & dinb; // Bit operators
assign reslut = dina >> dinb; // Shift operator
assign reslut = sel ? dinb : dina; // Conditional operators
assign reslut = {dina, dinb}; // Join operators
It is worth noting that , Operators have priority characteristics , Brackets are recommended in place of their priority !
边栏推荐
- Clion debug
- 2022-07-02: what is the output of the following go language code? A: Compilation error; B:Panic; C:NaN。 package main import “fmt“ func mai
- 在职美团测试工程师的这八年,我是如何成长的,愿技术人看完都有收获
- Google Earth Engine(GEE)——GHSL 全球人口网格数据集250米分辨率
- ExecutorException: Statement returned more than one row, where no more than one was expected.
- Google Earth engine (GEE) -- when we use the front and back images to make up for the interpolation effect, what if there is no effect?
- 【obs】obs的ini格式的ConfigFile
- Hal - General
- Summary of the history of Mathematics
- Tablespace creation management and control file management
猜你喜欢
高精度室内定位技术,在智慧工厂安全管理的应用
嵌入式軟件測試怎麼實現自動化測試?
2021 reading summary (continuously updating)
英特尔13代酷睿旗舰曝光,单核5.5GHz
Solve the problem that pycharm Chinese input method does not follow
Tencent micro app to get wechat user information
After 8 years of industry thinking, the test director has a deeper understanding of test thinking
Encapsulation attempt of network request framework of retro + kotlin + MVVM
Matlab extracts numerical data from irregular txt files (simple and practical)
Comment réaliser des tests automatisés pour les tests logiciels embarqués?
随机推荐
php如何解决高并发问题
Lecture 1 number field
Unique in the industry! Fada electronic contract is on the list of 36 krypton hard core technology enterprises
C语言二维数组
11. Provider service registration of Nacos service registration source code analysis
IIS修改配置信息后不生效
在职美团测试工程师的这八年,我是如何成长的,愿技术人看完都有收获
A simple method of adding dividing lines in recyclerview
线性表顺序表综合应用题P18
15 software testing Trends Worthy of attention
反正切熵(Arctangent entropy):2022.7月最新SCI论文
ORACLE 11G 单机冷备数据库
Tencent micro app to get wechat user information
One hot code
POI excel 单元格换行
公司测试部门来了个00后卷王之王,老油条感叹真干不过,但是...
Have you learned the new technology to improve sales in 2021?
Cause: org. apache. ibatis. builder. Builderexception: error parsing SQL mapper configuration problem analysis
【obs】封装obs实现采集的基础流程
After a month, I finally got Kingdee offer! Share tetrahedral Sutra + review materials