【问题标题】:Unable to Elaborate FIFO on SP601无法在 SP601 上详细说明 FIFO
【发布时间】:2013-12-13 11:28:32
【问题描述】:

我正在尝试从 Xilinx 内核生成器生成一个 FIFO。

它有一个与块 RAM 共用的时钟,它是一个标准 FIFO,2 位宽和 16 位深。

我已经做了一个基于核心的测试台:

LIBRARY ieee;
USE ieee.std_logic_1164.ALL;

library unisim;
use unisim.VComponents.all;


ENTITY fifo_test IS
END fifo_test;

ARCHITECTURE behavior OF fifo_test IS 

    -- Component Declaration for the Unit Under Test (UUT)

    COMPONENT fifo_generator_v9_3
    PORT(
         clk : IN  std_logic;
         rst : IN  std_logic;
         din : IN  std_logic_vector(1 downto 0);
         wr_en : IN  std_logic;
         rd_en : IN  std_logic;
         dout : OUT  std_logic_vector(1 downto 0);
         full : OUT  std_logic;
         empty : OUT  std_logic
        );
    END COMPONENT;


   --Inputs
   signal clk : std_logic := '0';
   signal rst : std_logic := '0';
   signal din : std_logic_vector(1 downto 0) := (others => '0');
   signal wr_en : std_logic := '1';
   signal rd_en : std_logic := '1';

    --Outputs
   signal dout : std_logic_vector(1 downto 0);
   signal full : std_logic;
   signal empty : std_logic;

   -- Clock period definitions
   constant clk_period : time := 10 ns;

BEGIN

    -- Instantiate the Unit Under Test (UUT)
   uut: fifo_generator_v9_3 PORT MAP (
          clk => clk,
          rst => rst,
          din => din,
          wr_en => wr_en,
          rd_en => rd_en,
          dout => dout,
          full => full,
          empty => empty
        );

   -- Clock process definitions
   clk_process :process
   begin
        clk <= '0';
        wait for clk_period/2;
        clk <= '1';
        wait for clk_period/2;
   end process;


   -- Stimulus process
   stim_proc: process
   begin        
      -- hold reset state for 100 ns.
      wait for 100 ns;  

      wait for clk_period*10;

      -- insert stimulus here 

      wait;
   end process;

END;

这是文件在 ISE 中的样子:

我得到的错误:

ERROR:Simulator:793 - Unable to elaborate instantiated module FIFO_GENERATOR_V9_3

Process "Simulate Behavioral Model" failed

为什么会失败?

【问题讨论】:

    标签: vhdl core fifo


    【解决方案1】:

    Coregen 还将为您创建的 FIFO 输出一个 .vhd 文件。您需要此 .vhd 文件位于您正在使用的 modelsim 项目中。 fifo_generator_v9_3.vhd.

    【讨论】:

    • 干杯,这是我第一次使用核心生成器 - 我以为你可以只使用 .xco 文件。我猜是真正的项目,我不需要 .vhd 文件?
    • 这是真的,您不需要 .vhd 文件来合成和构建您的 FPGA。我不知道为什么赛灵思会改变 FIFO 的行为。过去你只能实例化它们,但现在你必须通过 coregen,这非常令人恼火。有谁知道他们为什么做出这个改变?
    • 还是不行。如果我只是创建我的 owwn .vhd FIFO,这可能会更容易/更快。我已经在上面添加了编辑后的图片
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-11-24
    • 1970-01-01
    • 1970-01-01
    • 2012-11-06
    相关资源
    最近更新 更多