Altera_Forum
Honored Contributor
15 years agoModelSim halts with 'ERROR: cpu_test_bench/M_en is 'x' '
Hi,
I created a SOPC system, according to an Altera tutorial. The system consists of a Nios-II and several peripherals. After system creation, I fired up EDS (Eclipse), compiled a BSP and 'hello world' project, and started ModelSim from within Eclipse/EDS. In ModelSim, after just a bit of simulation, I hit a stop condition in the cpu test bench:always @(posedge clk)
begin
if (reset_n)
if (^(M_en) === 1'bx)
begin
$write("%0d ns: ERROR: cpu_test_bench/M_en is 'x'\n", $time);
$stop;
end
end I browsed through the source code, the signal M_en is driven by an intricate net of signals with mysterious names such as 'n001O1', which does not make the Verilog code very readable. But perhaps that is the intention, since the compiled verilog (cpu.vo) file is human readable, but the incoming source (cpu.v) is garbled. I also browsed the forum for this problem, could find somebody else reporting it but saw no solution. Is this perhaps a bug that is fixed with a later Quartus/ModelSim/EDS release ? Thanks, Roland. PS: using Quartus II V9.1SP2