当前位置:网站首页>Verilog size and +: Using
Verilog size and +: Using
2022-06-29 09:01:00 【Da Xi】
module test;
reg [7:0] vect_1;
reg [0:7] vect_2;
initial
begin
vect_1 = 'b0001_1010;
vect_2 = 'b0010_0010;
$display("vect_1[3] = %b, vect_2[3] = %b", vect_1[3], vect_2[3]);
$display("vect_1[7:0] = %b, vect_2[0:7] = %b", vect_1, vect_2);
$display("vect_1[4+:3] = %b, vect_1[4-:3] = %b", vect_1[4+:3], vect_1[4-:3]);
$display("vect_2[4+:3] = %b, vect_2[4-:3] = %b", vect_2[4+:3], vect_2[4-:3]);
// vect_1[3] = 1, vect_2[3] = 0
// vect_1[7:0] = 00011010, vect_2[0:7] = 00100010
// vect_1[4+:3] = 001, vect_1[4-:3] = 110
// vect_2[4+:3] = 001, vect_2[4-:3] = 100
$stop;
end
endmodule

边栏推荐
- ThinkPHP 6 使用 mongoDB
- 2022第六季完美童模 合肥賽區 决賽圓滿落幕
- Notes on key words in the original English work biography of jobs (VII) [chapter five]
- Measure the level of various chess playing activities through ELO mechanism
- Carbon emission reduction of second-hand trading platform, with assessment standards
- 2022年7月(软考高级)信息系统项目管理师认证招生简章
- 操作系统产品密钥查看方法
- 闭关修炼(二十五)基础web安全
- Unity C# 网络学习(十二)——Protobuf生成协议
- Standard | China payment and clearing Association releases the first privacy computing financial specification
猜你喜欢

2022第六季完美童模 清远赛区 海选赛圆满落幕

TypeScript 变量声明 —— 类型断言

Product manager certification enrollment brochure (NPDP) in July 2022

Mutex mutex

Open3D 最远点采样(FPS)

二手交易平台碳减排,有了评估标准

How to recover data loss of USB flash disk memory card

搭建开源物联网平台教程

Robcogen tutorial of robot code generator

Carbon emission reduction of second-hand trading platform, with assessment standards
随机推荐
mongoDB 持久化
各種級數(調和、幾何)總結
How to recover data loss of USB flash disk memory card
Open3D 隐藏点移除
Sorting out easily confused words in postgraduate entrance examination English 【 flash 】
TypeScript 變量聲明 —— 類型斷言
MQTT第二话 -- emqx高可用集群实现
First electric shock, so you are such a dragon lizard community | dragon lizard developer said that issue 8
Summary of various series (harmonic, geometric)
802.11--802.11n protocol phy
uni-app获取当前页面路由url
Backpack Lecture 9 - detailed understanding and code implementation
verilog 移位操作符
The final of the sixth season of 2022 perfect children's model Hefei division came to a successful conclusion
Unity C# 网络学习(十二)——Protobuf生成协议
io流的总结
Typescript variable declaration - type assertion
P6772 [noi2020] gourmet (matrix fast power)
Standard | China payment and clearing Association releases the first privacy computing financial specification
Is the securities account of qiniu school really safe and reliable?