当前位置:网站首页>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,常用作寄存器初始化时匹配位宽的赋初值
边栏推荐
- Core development board & debugger
- 重磅发布 | 《FISCO BCOS应用落地指南》
- verilog 等价操作符
- Wechat applet development, how to add multiple spaces
- 微积分学习
- 今年的网络安全“体检”你做了吗?
- Notes on key words in the original English work biography of jobs (VIII) [chapter six]
- 网上开股票账户真的安全吗?求答案
- Dialogue | prospects and challenges of privacy computing in the digital age
- 通过ELO机制衡量各类对弈活动水平
猜你喜欢

实战回忆录从webshell开始突破边界

对话| 数字时代,隐私计算的发展前景与挑战

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

Summary of various series (harmonic, geometric)

TypeScript 變量聲明 —— 類型斷言

【最全】PS各个版本下载安装及小试牛刀教程(PhotoShop CS3 ~~ PhotoShop 2022)

uni-app获取当前页面路由url

hostname -f与uname -n的返回值可能不同

Oracle-子查询

Standard | China payment and clearing Association releases the first privacy computing financial specification
随机推荐
Mutex mutex
ThreadLocal线程变量
观察者模式怎么实现
51单片机中断与定时器计数器,基于普中科技HC6800-ESV2.0
Measure the level of various chess playing activities through ELO mechanism
“国防七校”之一西工大遭境外网络攻击
批量处理实验接触角数据-MATLAB分析
TypeScript 變量聲明 —— 類型斷言
verilog 等价操作符
对比HomeKit、米家,智汀家庭云版有哪些场景化的体验
ThreadLocal thread variable
Huawei equipment is configured with small network WLAN basic services
工厂模式
华为设备配置小型网络WLAN基本业务
积分商城运营要如何做才能获取到利润
Write time replication of hugetlbfs
对话| 数字时代,隐私计算的发展前景与挑战
uniapp微信小程序报错 TypeError: Cannot read property ‘call‘ of undefined
How to recover data loss of USB flash disk memory card
Official reply on issues related to the change of children's names after parents' divorce