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

📄 amplifier.v

📁 Abstract A new intelligent milometer base on a microcontroller can count the sum. By taking full u
💻 V
字号:
// Copyright (c) Charles HY Cheung, Cornell University
/*`Data is read on positive clk edge*/
/* ampin * gain = ampout*/
/*amplifier based on gain factor*320mV*/
/*output is 16-bit 2s comp (c000-FFFF, 0000-4000)*/
module AMPLIFIER(gain, ampin, ampout);

input signed [17:0] gain; /*gain factor from -320mV to 320mV*/
input [15:0] ampin; /*16-bit input*/

output [15:0] ampout; /*16-bit output*/

wire signed [17:0] outputdata;

assign ampout = outputdata[15:0];

//apply gain
signed_mult ampmult0 (outputdata,{ampin[15],ampin[15],ampin}, gain);

endmodule

⌨️ 快捷键说明

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