📄 audio_0.v
字号:
//Legal Notice: (C)2006 Altera Corporation. All rights reserved. Your
//use of Altera Corporation's design tools, logic functions and other
//software and tools, and its AMPP partner logic functions, and any
//output files any of the foregoing (including device programming or
//simulation files), and any associated documentation or information are
//expressly subject to the terms and conditions of the Altera Program
//License Subscription Agreement or other applicable license agreement,
//including, without limitation, that your use is for the sole purpose
//of programming logic devices manufactured by Altera and sold by Altera
//or its authorized distributors. Please refer to the applicable
//agreement for further details.
// synthesis translate_off
`timescale 1ns / 1ps
// synthesis translate_on
// turn off superfluous verilog processor warnings
// altera message_level Level1
// altera message_off 10034 10035 10036 10037 10230 10240 10030
module Audio_0 (
// inputs:
iCLK_18_4,
iDATA,
iRST_N,
iWR,
iWR_CLK,
// outputs:
oAUD_BCK,
oAUD_DATA,
oAUD_LRCK,
oAUD_XCK,
oDATA
)
;
output oAUD_BCK;
output oAUD_DATA;
output oAUD_LRCK;
output oAUD_XCK;
output [ 15: 0] oDATA;
input iCLK_18_4;
input [ 15: 0] iDATA;
input iRST_N;
input iWR;
input iWR_CLK;
wire oAUD_BCK;
wire oAUD_DATA;
wire oAUD_LRCK;
wire oAUD_XCK;
wire [ 15: 0] oDATA;
AUDIO_DAC_FIFO the_AUDIO_DAC_FIFO
(
.iCLK_18_4 (iCLK_18_4),
.iDATA (iDATA),
.iRST_N (iRST_N),
.iWR (iWR),
.iWR_CLK (iWR_CLK),
.oAUD_BCK (oAUD_BCK),
.oAUD_DATA (oAUD_DATA),
.oAUD_LRCK (oAUD_LRCK),
.oAUD_XCK (oAUD_XCK),
.oDATA (oDATA)
);
defparam the_AUDIO_DAC_FIFO.CHANNEL_NUM = 2,
the_AUDIO_DAC_FIFO.DATA_WIDTH = 16,
the_AUDIO_DAC_FIFO.REF_CLK = 18432000,
the_AUDIO_DAC_FIFO.SAMPLE_RATE = 48000;
endmodule
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -