1

我正在尝试在 Post-Route 模拟中运行我的项目。行为模拟工作正常,我希望它在 Spartan 3E 入门板上工作。它还能够生成正在执行的编程文件。

使用 ISE 14.7

我得到的错误是:

Process "Generate Post-Place & Route Simulation Model" completed successfully

Started : "Simulate Post-Place & Route HDL Model".

Determining files marked for global include in the design...
Running fuse...
Command Line: fuse -intstyle ise -incremental -lib simprims_ver -lib unisims_ver -lib unimacro_ver -lib xilinxcorelib_ver -o /home/alex/projects/ece369/datapath/PostRoute_tb_isim_par.exe -prj /home/alex/projects/ece369/datapath/PostRoute_tb_par.prj work.PostRoute_tb work.glbl {}
Running: /opt/Xilinx/14.7/ISE_DS/ISE/bin/lin64/unwrapped/fuse -intstyle ise -incremental -lib simprims_ver -lib unisims_ver -lib unimacro_ver -lib xilinxcorelib_ver -o /home/alex/projects/ece369/datapath/PostRoute_tb_isim_par.exe -prj /home/alex/projects/ece369/datapath/PostRoute_tb_par.prj work.PostRoute_tb work.glbl 
ISim P.20131013 (signature 0xfbc00daa)
Number of CPUs detected in this system: 4
Turning on mult-threading, number of parallel sub-compilation jobs: 8 
Determining compilation order of HDL files
Analyzing Verilog file "/home/alex/projects/ece369/datapath/src/PostRoute_tb.v" into library work
ERROR:Simulator:702 - Can not find design unit work.glbl in library work located at isim/work 

在“设计选项卡”中,它将 ClockDivider 和 DATAPATH_TEST 显示为“?”。当我将关联从“全部”设置为“模拟”时,文件会出现,但我收到有关“尚未指定顶级模块”的错误

从谷歌搜索,我尝试“清理项目文件”并重新创建项目。我还尝试从 /opt/Xilinx/14.7/ISE_DS/ISE/verilog/src/ 获取 glbl.v 并将其放入,但我不确定如何处理它。

我的测试台:

`timescale 1ns / 1ps

module PostRoute_tb();
    reg              Clk, Rst, Rst_t;
    wire             Clk_slow;
    wire    [31:0]   out_0, out_1;
    reg     [31:0]   ii;

   TopClkDiv #(25) ClockDivider(
       .Clk(Clk),
       .Rst(Rst_t),
       .ClkOut(Clk_slow)    
   );

    Datapath DATAPATH_TEST(
        .Clk(Clk_slow), 
        .Rst(Rst),
        .Rst_t(Rst_t),
        .out_0(out_0),
        .out_1(out_1)
    );

    always begin
        Clk <= 0;
        #250;
        Clk <= 1;
        #250;
    end
    initial begin
        Rst <= 1;
        Rst_t <= 1;
        ii <= 0;
        #222;
        Rst <= 0;
        Rst_t <= 0;

        while (ii < 50000) begin
            @(posedge Clk_slow)
            ii = ii + 1;
        end
    end

endmodule
4

1 回答 1

1

我有同样的错误

“错误:模拟器:702 - 找不到设计单元 work.glbl ...”。

就我而言,我将一个旧的 ISE 14.1 项目移至 PlanAhead 14.7。我的问题和解决方案是verilog_define={GLBL}在项目设置-> 模拟->“Verilog 选项:”中删除。复选框“加载 glbl”被选中。原因是一些仿真verilog代码被封装在“ifndef GLBL”中。"find . -type f -name "*.v" | xargs grep 'def GLBL' -sl"您可以通过在 PlanAhead 安装目录中执行来找到它。

于 2015-02-20T09:14:39.097 回答