当前位置:网站首页>Verilog HDL Bits training 09 grammar foundation
Verilog HDL Bits training 09 grammar foundation
2022-08-08 13:33:00 【Students with poor south post grades】
文章目录
Circuits:Karnaugh Map to Circuit
一、3-variable
This section talks about the expression obtained through Karnaugh map simplification
This question is simplified
- RTL代码
module top_module(
input a,
input b,
input c,
output out );
assign out = ~(~a & ~b & ~c);
endmodule
- 仿真波形图
二、4-variable
Karnaugh map simplification result is
- 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
Karnaugh map reduces to(Pay attention to the numbers on the outer row,有陷阱)
- 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是以1The center circle is the Carnot circle,POS是以0The center circle is the Carnot circle,Both use the same Karnaugh map.
- 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
- 仿真波形图
边栏推荐
- (4)FlinkSQL将socket数据写入到mysql方式一
- 一名合格的程序员是如何优雅地解决线上问题的?
- (8)FlinkSQL自定义UDF
- qsort 函数的使用及其模拟实现
- 【软考 系统架构设计师】软件架构设计⑦ 构件与中间件技术
- MySQL:索引(1)原理与底层结构
- 简析LDO静态电流与功耗的关系
- 迁移学习(Transfer Learning)的背景、历史及学习课
- The maximum validity period of an SSL certificate is 13 months. Is it necessary to apply for multiple years at a time?
- win32&mfc————win32菜单栏&库
猜你喜欢
[8月4日]剑指 Offer 52. 两个链表的第一个公共节点
Knowledge points and written test questions related to shift operations, bit operations, and logical operations
win32&mfc————win32菜单栏&库
[界面开发]DevExpress WinForms流程图控件——XtraDiagrams组件入门指南
[C language] In-depth analysis of data storage in memory
一名合格的程序员是如何优雅地解决线上问题的?
Docker - persistent database (data volume)
看到这个应用上下线方式,不禁感叹:优雅,太优雅了!
The most complete JVM performance tuning in history: thread + subsystem + class loading + memory allocation + garbage collection
textarea disable drag and drop
随机推荐
译文推荐|深入解析 BookKeeper 协议模型与验证
Pointer and array written test questions analysis
R语言ggplot2可视化:使用ggpubr包的ggline函数可视化折线图(点线图、line plot)、设置add参数为mean可视化不同水平均值的折线图
【Redis】redis安装与客户端redis-cli的使用(批量操作)
使用单点登录 (SSO):便捷访问,降低风险,精简流程
用 Antlr 重构脚本解释器
Background, History and Lessons of Transfer Learning
深入浅出对话系统——任务型对话系统技术框架
Implement a customized pin code input control
AfterEffect插件-图层排序-js脚本开发-AE插件
C语言的三个经典题目:三步翻转法、杨氏矩阵、辗转相除法
程序员必备的VS调试技巧
SSL证书最长有效期13个月,还有必要一次申请多年吗?
牛 plus,多层嵌套动态 JSON 该如何解析总结
Jenkins - install (2)
【C语言】动态内存管理
“自降估值”3个亿的咖啡独角兽要IPO了
textarea 禁止拖拽
一名合格的程序员是如何优雅地解决线上问题的?
Photoshop插件-charIDToTypeID-PIStringTerminology.h-不同值的解释及参考-脚本开发-PS插件