Verilog: # Error loading design

OP #6453931
My code:

`timescale 10ns/100ps
module Verilog1;
wire [7:0]out;
reg [2:0]pin;
lab_1 g1(pin,out);
initial
begin
pin[1]=1'b0; pin[2]=1'b0; pin[3]=1'b0;
#3 pin[1]=1'b0; pin[2]=1'b0; pin[3]=1'b1;
#3 pin[1]=1'b0; pin[2]=1'b1; pin[3]=1'b0;
#3 pin[1]=1'b1; pin[2]=1'b0; pin[3]=1'b0;
#3 pin[1]=1'b0; pin[2]=1'b1; pin[3]=1'b1;
#3 pin[1]=1'b1; pin[2]=1'b1; pin[3]=1'b0;
#3 pin[1]=1'b1; pin[2]=1'b0; pin[3]=1'b1;
#3 pin[1]=1'b1; pin[2]=1'b1; pin[3]=1'b1;
end
initial
#50 $stop;
endmodule


My mistake:

# Reading C:/altera/10.0/modelsim_ase/tcl/vsim/pref.tcl
# do lab_1_run_msim_rtl_verilog.do
# if {[file exists rtl_work]} {
#   vdel -lib rtl_work -all
# }
# vlib rtl_work
# vmap work rtl_work
# Copying C:\altera\10.0\modelsim_ase\win32aloem/../modelsim.ini to 
modelsim.ini
# Modifying modelsim.ini
# ** Warning: Copied 
C:\altera\10.0\modelsim_ase\win32aloem/../modelsim.ini to modelsim.ini.
#          Updated modelsim.ini.
#
# vlog -vlog01compat -work work +incdir+C:/altera/labs 
{C:/altera/labs/lab_1.v}
# Model Technology ModelSim ALTERA vlog 6.5e Compiler 2010.02 Feb 27 
2010
# -- Compiling module lab_1
#
# Top level modules:
#   lab_1
#
# vlog -vlog01compat -work work +incdir+C:/altera/labs 
{C:/altera/labs/Verilog1.v}
# Model Technology ModelSim ALTERA vlog 6.5e Compiler 2010.02 Feb 27 
2010
# -- Compiling module Verilog1
# ** Warning: C:/altera/labs/Verilog1.v(8): [BSOB] - Bit-select into 
'pin' is out of bounds.
# ** Warning: C:/altera/labs/Verilog1.v(9): [BSOB] - Bit-select into 
'pin' is out of bounds.
# ** Warning: C:/altera/labs/Verilog1.v(10): [BSOB] - Bit-select into 
'pin' is out of bounds.
# ** Warning: C:/altera/labs/Verilog1.v(11): [BSOB] - Bit-select into 
'pin' is out of bounds.
# ** Warning: C:/altera/labs/Verilog1.v(12): [BSOB] - Bit-select into 
'pin' is out of bounds.
# ** Warning: C:/altera/labs/Verilog1.v(13): [BSOB] - Bit-select into 
'pin' is out of bounds.
# ** Warning: C:/altera/labs/Verilog1.v(14): [BSOB] - Bit-select into 
'pin' is out of bounds.
# ** Warning: C:/altera/labs/Verilog1.v(15): [BSOB] - Bit-select into 
'pin' is out of bounds.
#
# Top level modules:
#   Verilog1
#
# vsim -t 1ps -L altera_ver -L lpm_ver -L sgate_ver -L altera_mf_ver -L 
cycloneive_ver -L rtl_work -L work -voptargs="+acc" 50
# vsim -L altera_ver -L lpm_ver -L sgate_ver -L altera_mf_ver -L 
cycloneive_ver -L rtl_work -L work -voptargs=\"+acc\" -t 1ps 50
# ** Error: (vsim-3170) Could not find 
'C:\altera\labs\simulation\modelsim\rtl_work.50'.
# Error loading design
# Error: Error loading design
#        Pausing macro execution
# MACRO ./lab_1_run_msim_rtl_verilog.do PAUSED at line 12
Guest #6454072
Vasily D. wrote:
1
> # vsim -t 1ps -L altera_ver -L lpm_ver -L sgate_ver -L altera_mf_ver -L
2
> cycloneive_ver -L rtl_work -L work -voptargs="+acc" 50
3
                                                      ^^
4
 
5
> # vsim -L altera_ver -L lpm_ver -L sgate_ver -L altera_mf_ver -L
6
> cycloneive_ver -L rtl_work -L work -voptargs=\"+acc\" -t 1ps 50
7
                                                               ^^
8
 
9
> # ** Error: (vsim-3170) Could not find
10
> 'C:\altera\labs\simulation\modelsim\rtl_work.50'.
11
                                               ^^

Where did the '50' come from?
Why don't you use your testbench for simulation?
Why can't you ask a reasonable question?

Duke

Reply

A question of your own? This thread is over 6 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.