位置: IT常识 - 正文

【HDLBits刷题日记】08 Karnaugh Map to Circuit(高效刷题app)

编辑:rootadmin
Kmap1 化简卡诺图即可。 module top_module( input a, input b, input c, output out ); assign out=b|c|a; endmodule Kmap2 我是这样化简的。 module top_module( input a, inpu ... Kmap1

推荐整理分享【HDLBits刷题日记】08 Karnaugh Map to Circuit(高效刷题app),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:刷题狗知乎,middle刷题,hdu刷题,hdoj刷题指南,刷题功能,hdoj刷题指南,刷题功能,刷题功能,内容如对您有帮助,希望把文章链接给更多的朋友!

化简卡诺图即可。

module top_module( input a, input b, input c, output out ); assign out=b|c|a;endmoduleKmap2

我是这样化简的。

module top_module( input a, input b, input c, input d, output out ); assign out=(~a&~d)|(~b&~c)|(a&~b&d)|(b&c&d);endmoduleKmap3

这里d代表的是无关项,要不要圈起来都可以。

module top_module( input a, input b, input c, input d, output out ); assign out=(~b&c)|(a&c)|(a&~d);endmoduleKmap4

这道题一眼看过去根本没办法化简,但是根据提示,改变一个输入值总会使输出反转,所以可以推断出a、b、c、d应该进行的是异或运算。

module top_module( input a, input b, input c, input d, output out ); assign out=a^b^c^d;endmoduleExams/ece241 2013 q2

【HDLBits刷题日记】08 Karnaugh Map to Circuit(高效刷题app)

sop形式直接写就可以了,pos形式则需要sop形式使用摩根定理取反两次进行变换。

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&(~a|d)&(~b|d);endmoduleExams/m2014 q3

也是直接化简就可以了。

module top_module ( input [4:1] x, output f ); assign f=(~x[1]&x[3])|(x[1]&x[2]&~x[3]);endmoduleExams/2012 q1g

化简的时候注意四个角。

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]);endmoduleExams/ece241 2014 q3

这里要使用一个4-to-1的数据选择器实现四输入的逻辑。

逻辑为:f=(~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为00时,选中mux_in[0],也就是说控制mux_in[0]就可以了。

module top_module ( input c, input d, output [3:0] mux_in); assign mux_in[0]=(~c&~d)?1'b0:1'b1; assign mux_in[1]=1'b0; assign mux_in[2]=(~d)?1'b1:1'b0; assign mux_in[3]=(c&d)?1'b1:1'b0;endmodule

我这里貌似还是用了逻辑门,不符合要求,答案的表达式更加简洁,可以参考一下。

module top_module ( input c, input d, output [3:0] mux_in); // After splitting the truth table into four columns, // the rest of this question involves implementing logic functions // using only multiplexers (no other gates). // I will use the conditional operator for each 2-to-1 mux: (s ? a : b) assign mux_in[0] = c ? 1 : d; // 1 mux: c|d assign mux_in[1] = 0; // No muxes: 0 assign mux_in[2] = d ? 0 : 1; // 1 mux: ~d assign mux_in[3] = c ? d : 0; // 1 mux: c&dendmodule
本文链接地址:https://www.jiuchutong.com/zhishi/311738.html 转载请保留说明!

上一篇:webpack调优技巧(webpack怎么优化)

下一篇:python import的本质探究(python中import语句)

  • 收到上年度所得税返还会计分录
  • 交易性金融资产的交易费用计入哪里
  • 员工出差自驾怎么看待
  • 合资公司注册成立流程
  • 投资收益和公允价值变动的区别
  • 金融资产减值准备可以转回吗
  • 小规模纳税人第一次网上报税
  • 票据贴现业务利润怎么算
  • 被收购的收入计什么科目
  • 税费改革是什么
  • 跨年度销售费用如何调账
  • 固定资产怎么盘点
  • 退休返钱怎么算的
  • 机动车发票可以红冲重开吗
  • 减免税额结转到待认证是什么意思
  • 增值税专用发票和普通发票的区别
  • 递延年金现值计算公式解释
  • 本月只有红字发票该怎么申报小规模
  • 工会经费人数在哪里查询
  • 吸收合并具体分录
  • 租金返还方式销售
  • 公司理财取得的成果
  • 季报小微企业不包括哪些
  • 销售收入净额与销售收入的区别
  • 兼职人员工资个税怎么申报
  • 费用报销单应怎样填写
  • 成本的分类有哪些如何分类
  • 红字增值税专用发票是什么
  • PHP:xml_get_error_code()的用法_XML解析器函数
  • 企业存货成本包括利润吗
  • mmc.exe是什么进程
  • 小米路由器青春版r1cl参数
  • 免购车税政策
  • php 获取文件类型
  • php ajax 教程
  • php删除数组中指定元素
  • 什么是webrip
  • vue中computed和watch区别
  • 2022年windows11windows10最强VMware Workstation 16 Pro for Windows虚拟机软件最新授权版16.2.3-19376536版本
  • 帝国cms功能
  • 弥补以前年度亏损最多几年
  • 合伙企业个人所得税税率表
  • php 队列
  • uni-app表单验证
  • 材料采购成本是什么科目
  • 织梦相关文章调用
  • react 16新特性
  • 支付宝提取到公积金账户
  • 库房食品过期报告怎么写
  • 携程 海外
  • 折旧汇总分配周期参数设定完成可以更改吗
  • mongodb重置密码
  • 所得税汇算清缴怎么操作
  • 社会保险与商业人身保险的区别有
  • 可以假设两种情形吗
  • 事业单位财政直接支付购置固定资产
  • 以前年度损益调整结转到哪里
  • 成本暂估跨年度怎么算
  • 小规模商贸公司没有进项票怎么办
  • Linux环境mysql5.7.12安装教程
  • 怎么提高sql语句
  • 利用arp指令,能够防止arp欺骗吗?
  • 不能用鼠标
  • hyper-v是啥
  • linux常用的几种压缩工具
  • win10缺少文件如何修复
  • centos 常用命令教程
  • hotkey在哪
  • win7声音方案存在哪里
  • LiteSpeed添加虚拟主机+支持htaccess图文教程
  • cocos2dx 2.2.2
  • python的正则语法
  • javascript中cookie
  • 自定义标签的开发的3个步骤?
  • 终端执行
  • ActivityManagerService (三)
  • python解析chunked
  • 钢结构蔬菜大棚造价多少钱一平方
  • 土地整理费用由谁承担
  • 德税手卷烟海淘
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设