📄 led_top_inst.v
字号:
////////////////////////////////////////////////////////////////////////////////
// ____ _ __ ___ //
// / __ \(_)____/ / / (_)____ RICHIC CONFIDENTIAL PROPRIETARY NOTE //
// / /_/ / / ___/ /_/ / / ___/ This source codes contains information//
// / _, _/ / /__/ __ / / /__ confidential and proprietary to RicHic//
// /_/ |_/_/\___/_/ /_/_/\___/ Inc. It shall not be reproduced in //
// whole or in part or transferred to //
// other documents, or disclosed to third parties, or used for any purpose //
// other than that for which it was obtained, without the prior written //
// consent of RicHic Inc. //
// //
// (c) 2003, 2004, 2005 RicHic Inc. //
// All rights reserved //
// ************************************************************************* //
// //
// Email: fpga_ic@yahoo.com.cn; fpga.ic@gmail.com; mail007@richic.com //
// http://www.richic.com //
// //
////////////////////////////////////////////////////////////////////////////////
// 本设计示例在RicHic开发系统上验证通过
// ***************************************************************************//
// 文件说明:
// 1.dynamix_hex.v : 动态十六进制数据时分复用。
// 输入: 4位十六进制数据data,以及每一位数据的小数点dot
// dot[3]=1则最高位有小数点,依次类推
// 输出: 分时复用后的十六进制数据hex以及对应于本开发系统的段码。段码
// 用来区分当前需要显示的数码段,以及本段是否有小数点。
// 2.hex2led_common_cathode:十六进制数据到led数码管转换
// 输入: hex 十六进制数据
// 输出: led 数码管的位码
// 3.ledout:数码管数据数输出。
// 输入: led 数码管位码led,以及段码segcode
// 输出: seg 数码管输出显示
// 4.led_top:共阴极四位数码管显示顶层文件。
// 输入: 系统时钟50MHz以及异步复位信号输入rst_n
// 4位十六进制数据data以及每一位数据的小数点dot
// 输出: 直接连接本开发系统数码管各个管脚seg[11:0]
//****************************************************************************//
module led_top(
clk,
rst_n,
data,
dot,
seg
);//synthesis black_box
input clk;
input rst_n;
input [15:0] data;
input [3 :0] dot;
output [11:0] seg;
endmodule
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -