⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 half_sel.v

📁 用VERILOG HDL实现的任意 频率分频器源代码
💻 V
字号:
//--------------------------------------//
//module name: Half_sel-----------------//
//file   name: Half_sel.v---------------//
//module function:
//            Xor select module---------//
//Coder      : h0nly--------------------//
//Time       : 2008-08-13th 11:00pm-----//
//--------------------------------------//
module Half_sel(sel,
				a,
				b,
				c
				);
//output ports----------------------------
output c;
//input  ports----------------------------
input  b, a;
input  sel;
//inner parameter declaration-------------
wire   w;
//code starts here------------------------
xor xor_ (w, a, b);
//----------------------------------------
//sel |  function
//----------------------------------------
// 1  |  half_integer_Freq_div
// 0  |  integer_Freq_div
//----------------------------------------
assign c = sel ? w : a;
//
endmodule//End Of Module Half_sel

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -