堆栈verilog设计实现及仿真
堆栈顶层模块设计代码如下:
使用verilog设计实现堆栈的写入和读出功能
工程及仿真如下:
代码设计如下:
module stack(input wire clk, reset, push, pop, input wire [15:0] value_in, output wire [15:0] value_out, output wire full, empty);
wire is_7, is_7_reg, is_0, is_0_reg, write_push, write_pop, top_write_enable, carry_a, carry_s;
wire [2:0] top, inc, dec, inc_dec;
wire [15:0] d_care;
regr_1 reg1(clk, reset, is_7, is_7_reg);
//push
mux2 push_checker(push, 1’b0, is_7_reg, write_push);
regs_1 reg2(clk, reset, is_0, is_0_reg);
//pop
mux2 pop_checker(pop, 1'b0, is_0_reg, write_pop);or2 top_reg_writer(write_pop, write_push, top_write_enable);
reg_3 top_reg(clk, reset, top_write_enable, inc_d
堆栈verilog设计实现及仿真相关推荐
- Verilog设计实例(8)按键防抖设计之软件防抖
博文目录 写在前面 正文 背景介绍及回顾 单个按键 单按键的其他设计版本 多个按键 写在最后 参考资料 交个朋友 写在前面 个人微信公众号: FPGA LAB 个人博客首页 注:学习交流使用! 正文 ...
- Verilog设计实例(7)基于Verilog的数字电子钟设计
博文目录 写在前面 正文 设计要求 设计思想 设计文件 仿真文件 参考资料 交个朋友 写在前面 前段时间,有几个小伙伴向我请教数字电子钟设计的问题,这个问题我在之前的BCD计数器以及数码管显示问题中已 ...
- Verilog设计实例(3)基于Verilog的单端口同步读写RAM设计
文章目录 写在前面 正文 电路设计 行为仿真 交个朋友 写在前面 为什么要写单端口同步读写RAM呢? 没有那么多为什么?就是因为简单.基础,能清晰说明单端口RAM的原理,顺手给出设计,也能说明你的设计 ...
- Verilog设计实例(2)一步一步实现一个多功能通用计数器
博文目录 写在前面 正文 普通的二进制计数器 电路设计 行为仿真 普通的格雷码计数器 电路设计 行为仿真 LFSR 电路设计 行为仿真 多功能计数器 电路设计 行为仿真 生成语句实现方式 电路设计 行 ...
- (26)System Verilog设计自动饮料机
(26)System Verilog设计自动饮料机 1.1 目录 1)目录 2)FPGA简介 3)System Verilog简介 4)System Verilog设计自动饮料机 1.自动饮料机基础知 ...
- (27)System Verilog设计UART接收
(27)System Verilog设计UART接收 1.1 目录 1)目录 2)FPGA简介 3)System Verilog简介 4)System Verilog设计UART接收 1.UART接收 ...
- (28)System Verilog设计UART发送
(28)System Verilog设计UART发送 1.1 目录 1)目录 2)FPGA简介 3)System Verilog简介 4)System Verilog设计UART发送 1.UART发送 ...
- (29)System Verilog设计SPI接收
(29)System Verilog设计SPI接收 1.1 目录 1)目录 2)FPGA简介 3)System Verilog简介 4)System Verilog设计SPI接收 1.SPI接收基础知 ...
- (30)System Verilog设计SPI发送
(30)System Verilog设计SPI发送 1.1 目录 1)目录 2)FPGA简介 3)System Verilog简介 4)System Verilog设计SPI发送 1.SPI发送基础知 ...
最新文章
- 专访博世王红星:大数据和AI将是中国制造业升级新动力
- php乱码解决方案,php中文乱码问题的4种解决方案
- AcWing P164 可达性统计 题解
- MySQL内核调试_MySQL内核技术之“Opt_trace_系列”
- [USACO1.3]修理牛棚 Barn Repair
- 无盘服务器为什么重启还原,无盘站反复重启怎么办
- react提交数据到数据库_React型关系数据库事务
- android 刷rom,刷ROM是什么?刷ROM是什么意思?
- 使用 ESS SDK 快速创建多实例规格伸缩配置
- mysql dml原理_InnoSQL/MySQL DML Flashback功能简介
- 结合源码探讨Android距离传感器亮灭屏机制
- sparse-to-dense.pytorch 代码主流程
- win10开启cpu虚拟化
- 推荐两款超高质量的壁纸软件
- Windows搭建幼麟麻将运行环境
- 对象流水线 -- 工厂模式介绍 使用案例及代码演示
- [nRF51822] 1、一个简单的nRF51822驱动的天马4线SPI-1.77寸LCD彩屏DEMO
- android app 仿小米全面屏手势返回UI样式
- 六、Quartz-配置详解
- (转)有个星座叫天平(一)
热门文章
- sap.ca.scfld.md.Startup.init('cus.crm.notes', this);
- some VM operation when debugging appointment startup
- 如何关闭SAP Fiori的病毒扫描设置
- Cloud for Customer UI checkbox控件在PC和mobile端的不同显示
- SAP云平台CloudFoundry上部署了一个应用的技术明细
- 在Windows 10 系统上启用Hyper V遇到的错误:0x800f0831
- 使用ABAP正则表达式解析HTML标签
- 一个查看 SAP UI5 控件所有公有方法的小技巧
- java integer引用传递_在java中String,对象,Integer(包装类型的)关于引用传递还是值传递...
- 关闭mina服务_如何彻底关闭MINA客户端