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

📄 sintab_altera.v

📁 在利用Verilog在FPGA平台上输出正弦波
💻 V
字号:
module Sintab_Altera(sys_clk, sin_output,counter,rst_n);
    input sys_clk;
	 input rst_n;
    output [13:0] sin_output;	 
	 output [9:0] counter;
	 wire [13:0] sin_output;
	 
	 reg [9:0] counter;
	 
	 always @(posedge sys_clk or negedge rst_n)
	 begin
		if(~rst_n)
		begin
			counter <= 0;
		end
		else if(counter != 1024 )
			counter <= counter + 1;
		else
			counter <= 0;
	 end
	 
	 sintab sintab1(counter,sys_clk,0,0,sin_output);

endmodule

⌨️ 快捷键说明

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