?? 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 + -