当前位置:网站首页>Verilog 拼接操作符号
Verilog 拼接操作符号
2022-06-29 08:21:00 【嗒曦】
拼接操作符
拼接操作符用大括号 {,} 来表示,用于将多个操作数(向量)拼接成新的操作数(向量),信号间用逗号隔开。
拼接符操作数必须指定位宽,常数的话也需要指定位宽。例如:
实例
A = 4'b1010 ;
B = 1'b1 ;
Y1 = {B, A[3:2], A[0], 4'h3 }; //结果为Y1='b1100_0011
Y2 = {4{B}, 3'd4}; //结果为 Y2=7'b111_1100
Y3 = {32{1'b0}}; //结果为 Y3=32h0,常用作寄存器初始化时匹配位宽的赋初值
边栏推荐
猜你喜欢

Oracle subquery

2022第六季完美童模 合肥賽區 决賽圓滿落幕

机器人代码生成器之Robcogen使用教程

工厂模式和策略模式的区别

Huawei equipment is configured with medium-sized network WLAN basic services

How to recite words in tables

Summary of various series (harmonic, geometric)

New paid Tarot calculation source code (with building tutorial)

2022 spring summer collection koreano essential reshapes the vitality of fashion

2022第六季完美童模 合肥赛区 决赛圆满落幕
随机推荐
Déclaration de la variable Typescript - - assertion de type
Unity C# 网络学习(十二)——Protobuf生成协议
2022第六季完美童模 清远赛区 海选赛圆满落幕
La finale de la zone de compétition Hefei de la sixième saison 2022 a été couronnée de succès.
Batch processing of experimental contact angle data matlab analysis
hostname -f与uname -n的返回值可能不同
[most complete] download and installation of various versions of PS and tutorial of small test ox knife (Photoshop CS3 ~ ~ Photoshop 2022)
单例模式的理解
随心玩玩(三)Mirai框架QQ机器人
工厂模式和策略模式的区别
The final of the sixth season of 2022 perfect children's model Hefei division came to a successful conclusion
(pytorch进阶之路三)encoder self attention mask
Baodawei of the people's Chain: break down barriers and establish a global data governance sharing and application platform
工厂模式
NP3 formatted output (I)
How to gain profits from the operation of the points mall
Calculus Learning
网上开股票账户真的安全吗?求答案
启牛学堂让开的证券账户是真的安全靠谱吗?
uniapp微信小程序报错 TypeError: Cannot read property ‘call‘ of undefined