coregen.xml
来自「用vhdl编写的FFT的代码,很全,很强大.」· XML 代码 · 共 205 行
XML
205 行
<?xml version="1.0" encoding="UTF-8"?>
<RootFolder label="COREGEN" treetype="folder" language="COREGEN">
<Folder label="VERILOG Component Instantiation" treetype="folder">
<Template label="fft_128" treetype="template">
// The following must be inserted into your Verilog file for this
// core to be instantiated. Change the instance name and port connections
// (in parentheses) to your own signal names.
fft_128 YourInstanceName (
.xn_re(xn_re),
.xn_im(xn_im),
.start(start),
.unload(unload),
.fwd_inv(fwd_inv),
.fwd_inv_we(fwd_inv_we),
.clk(clk),
.xk_re(xk_re),
.xk_im(xk_im),
.xn_index(xn_index),
.xk_index(xk_index),
.rfd(rfd),
.busy(busy),
.dv(dv),
.edone(edone),
.done(done),
.blk_exp(blk_exp));
</Template>
<Template label="fft" treetype="template">
// The following must be inserted into your Verilog file for this
// core to be instantiated. Change the instance name and port connections
// (in parentheses) to your own signal names.
fft YourInstanceName (
.xn_re(xn_re),
.xn_im(xn_im),
.start(start),
.unload(unload),
.fwd_inv(fwd_inv),
.fwd_inv_we(fwd_inv_we),
.clk(clk),
.xk_re(xk_re),
.xk_im(xk_im),
.xn_index(xn_index),
.xk_index(xk_index),
.rfd(rfd),
.busy(busy),
.dv(dv),
.edone(edone),
.done(done),
.blk_exp(blk_exp));
</Template>
<Template label="ram" treetype="template">
</Template>
</Folder>
<Folder label="VHDL Component Instantiation" treetype="folder">
<Template label="fft_128" treetype="template">
-- The following code must appear in the VHDL architecture header:
component fft_128
port (
xn_re: IN std_logic_VECTOR(15 downto 0);
xn_im: IN std_logic_VECTOR(15 downto 0);
start: IN std_logic;
unload: IN std_logic;
fwd_inv: IN std_logic;
fwd_inv_we: IN std_logic;
clk: IN std_logic;
xk_re: OUT std_logic_VECTOR(15 downto 0);
xk_im: OUT std_logic_VECTOR(15 downto 0);
xn_index: OUT std_logic_VECTOR(6 downto 0);
xk_index: OUT std_logic_VECTOR(6 downto 0);
rfd: OUT std_logic;
busy: OUT std_logic;
dv: OUT std_logic;
edone: OUT std_logic;
done: OUT std_logic;
blk_exp: OUT std_logic_VECTOR(4 downto 0));
end component;
-------------------------------------------------------------
-- The following code must appear in the VHDL architecture body.
-- Substitute your own instance name and net names.
your_instance_name : fft_128
port map (
xn_re => xn_re,
xn_im => xn_im,
start => start,
unload => unload,
fwd_inv => fwd_inv,
fwd_inv_we => fwd_inv_we,
clk => clk,
xk_re => xk_re,
xk_im => xk_im,
xn_index => xn_index,
xk_index => xk_index,
rfd => rfd,
busy => busy,
dv => dv,
edone => edone,
done => done,
blk_exp => blk_exp);
</Template>
<Template label="fft" treetype="template">
-- The following code must appear in the VHDL architecture header:
component fft
port (
xn_re: IN std_logic_VECTOR(15 downto 0);
xn_im: IN std_logic_VECTOR(15 downto 0);
start: IN std_logic;
unload: IN std_logic;
fwd_inv: IN std_logic;
fwd_inv_we: IN std_logic;
clk: IN std_logic;
xk_re: OUT std_logic_VECTOR(15 downto 0);
xk_im: OUT std_logic_VECTOR(15 downto 0);
xn_index: OUT std_logic_VECTOR(6 downto 0);
xk_index: OUT std_logic_VECTOR(6 downto 0);
rfd: OUT std_logic;
busy: OUT std_logic;
dv: OUT std_logic;
edone: OUT std_logic;
done: OUT std_logic;
blk_exp: OUT std_logic_VECTOR(4 downto 0));
end component;
-------------------------------------------------------------
-- The following code must appear in the VHDL architecture body.
-- Substitute your own instance name and net names.
your_instance_name : fft
port map (
xn_re => xn_re,
xn_im => xn_im,
start => start,
unload => unload,
fwd_inv => fwd_inv,
fwd_inv_we => fwd_inv_we,
clk => clk,
xk_re => xk_re,
xk_im => xk_im,
xn_index => xn_index,
xk_index => xk_index,
rfd => rfd,
busy => busy,
dv => dv,
edone => edone,
done => done,
blk_exp => blk_exp);
</Template>
<Template label="ram" treetype="template">
-- The following code must appear in the VHDL architecture header:
component ram
port (
addr: IN std_logic_VECTOR(6 downto 0);
clk: IN std_logic;
din: IN std_logic_VECTOR(15 downto 0);
dout: OUT std_logic_VECTOR(15 downto 0);
we: IN std_logic);
end component;
-------------------------------------------------------------
-- The following code must appear in the VHDL architecture body.
-- Substitute your own instance name and net names.
your_instance_name : ram
port map (
addr => addr,
clk => clk,
din => din,
dout => dout,
we => we);
</Template>
</Folder>
</RootFolder>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?