当前位置:网站首页>Verilog语法基础HDL Bits训练 09
Verilog语法基础HDL Bits训练 09
2022-08-08 13:06:00 【南邮学渣】
文章目录
Circuits:Karnaugh Map to Circuit
一、3-variable
本小节讲通过卡诺图化简得出表达式
本题化简完毕是
- RTL代码
module top_module(
input a,
input b,
input c,
output out );
assign out = ~(~a & ~b & ~c);
endmodule
- 仿真波形图
二、4-variable
卡诺图化简结果为
- RTL代码
module top_module(
input a,
input b,
input c,
input d,
output out );
assign out = ( ~a & ~b & ~c) | (a & ~b & ~c) | (~a & ~d) | (b & c & d) | (a & ~b & d);
endmodule
- 仿真波形图
三、4-variable
卡诺图化简为(要注意看外一行的数字,有陷阱)
- RTL代码
module top_module(
input a,
input b,
input c,
input d,
output out );
assign out = a | (~b & c);
endmodule
- 仿真波形图
四、4-variable
- RTL代码
module top_module(
input a,
input b,
input c,
input d,
output out );
assign out = (~a&~b&~c&d)|(~a&b&~c&~d)|(a&b&~c&d)|(a&~b&~c&~d)|(~a&b&c&d)|(a&~b&c&d)|(~a&~b&c&~d)|(a&b&c&~d);
endmodule
- 仿真波形图
五、Minimum SOP and POS
SOP是以1为中心圈卡诺圈,POS是以0为中心圈卡诺圈,二者用的是同一张卡诺图。
- RTL代码
module top_module (
input a,
input b,
input c,
input d,
output out_sop,
output out_pos
);
assign out_sop = (c & d) | (~a & ~b &c);
assign out_pos = c & (~b | d) & (~a | d);
endmodule
六、Karnaugh map
- RTL代码
module top_module (
input [4:1] x,
output f );
assign f = (x[2] & x[4]) | (x[3] & x[4]) | (~x[1] & x[3]);
endmodule
七、Karnaugh map
- RTL代码
module top_module (
input [4:1] x,
output f
);
assign f = (~x[2] & ~x[4]) | (~x[1] & x[3]) | (x[2] & x[3] & x[4]);
endmodule
八、K-map implemented with a multiplexer
- RTL代码
module top_module (
input c,
input d,
output [3:0] mux_in
);
assign mux_in[0] = c | d;
assign mux_in[1] = 1'b0;
assign mux_in[2] = ~d;
assign mux_in[3] = c & d;
endmodule
- 仿真波形图
边栏推荐
- Win10环境下使用Flask配合Celery异步推送实时/定时消息(Socket.io)/2020年最新攻略
- Collection of shell basics
- The maximum validity period of an SSL certificate is 13 months. Is it necessary to apply for multiple years at a time?
- STM32入门开发 制作红外线遥控器(智能居家-万能遥控器)
- 安装MinGW-w64
- 指针和数组笔试题解析
- [C language] Detailed explanation of custom types: structure, enumeration, union
- 使用shardingjdbc实现读写分离配置
- 字节跳动资深架构师整理2022年秋招最新面试题汇总:208页核心体系
- MySQL database storage series (5) the InnoDB storage format
猜你喜欢
金融行业数智化供应链管理系统:多维度评估分析供应商,赋能智能金融变革
【C语言】深度剖析数据在内存中的存储
【C语言】动态内存管理
[8月4日]剑指 Offer 52. 两个链表的第一个公共节点
2022-08-05
数据解析(XPath、BeautifulSoup、正则表达式、pyquery)
使用.NET简单实现一个Redis的高性能克隆版(三)
[C language] file related operations
Jenkins - Introduction to Continuous Integration (1)
【黑马早报】巴菲特罕见巨亏近3000亿;周鸿祎回应360不能卸载;三亚倡议酒店不变相提高房价;首个国产抗新冠口服药定价不超300元...
随机推荐
Codeblocks安装与配置教程
连锁小酒馆第一股,海伦司能否梦圆大排档?
shell基础知识合集
STM32入门开发 制作红外线遥控器(智能居家-万能遥控器)
R语言ggpubr包的ggsummarystats函数可视化分面箱图(通过ggfunc参数和facet.by参数设置)、添加描述性统计结果表格、palette参数配置不同水平可视化图像和统计值的颜色
Background, History and Lessons of Transfer Learning
sample函数—R语言
优刻得“失速”:营收转降,定向增发股东浮亏超三成
R语言ggplot2可视化:使用ggpubr包的ggtexttable函数可视化表格数据(直接绘制表格图或者在图像中添加表格数据)、使用tab_add_hline函数为表头添加横线并自定义线条宽度
Qt的简易日志库实现及封装
迁移学习(Transfer Learning)的背景、历史及学习课
(8)FlinkSQL自定义UDF
又一个千亿市场,冰淇淋也成了创新试验田
Program Environment and Preprocessing
字符串函数、字符函数、内存函数的使用及其模拟实现
SSL证书最长有效期13个月,还有必要一次申请多年吗?
【JS高级】ES5标准规范之严格模式下的保护对象_09
分享面试阿里、京东、网易等大厂后的面经及面试心得,让你秋招不再害怕
一文搞懂│XSS攻击、SQL注入、CSRF攻击、DDOS攻击、DNS劫持
xxd命令(反编译、二进制文件转十六进制文件)