?? addr_mux.v
字號:
//////////////////////////////////////////////////////////////////////////// Block Name : addr_mux.v// Author : Jason Kassoff// Date : 01/28/01// Last Revision : 01/28/01 (by Jason Kassoff)//// Block Description :// This block models the multiplexor that selects between// the RAM address from the priority block and the address// from the bus//// Controls: amx_sel_s2// Inputs: amx_pri_addr_v2, amx_cam_addr_s2// Outputs: amx_addr_out_v2////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////`include "definitions.v"////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////module addr_mux ( amx_sel_s2, amx_pri_addr_v2, amx_cam_addr_s2, amx_addr_out_v2 );////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// Port Declarations////////////////////////////////////////////////////////////////////////////input amx_sel_s2;input [19:0] amx_pri_addr_v2;input [19:0] amx_cam_addr_s2;output [19:0] amx_addr_out_v2;/////////////////////////////////////////////////////////////////////////////// Internal Variable Declarations/////////////////////////////////////////////////////////////////////////////wire [19:0] amx_addr_out_v2;// select output based on amx_sel_s2assign amx_addr_out_v2 = (amx_sel_s2 == `ADDR_SEL_PRI) ? amx_pri_addr_v2 : amx_cam_addr_s2;endmodule // addr_mux
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -