B
blf
I am trying to complile the following code that is attached, from Ben
Cohen's book. Please look at VHD code.
I figure my problem is that I am not compiling a resource library
correctly. Can anybody give me step by step instructions on how to
make this work in ModelSim?
I have simulated a previous example of pre-written code and was able
to get a waveform generated, but it seems I don't know how to make
code to work if it has the following statement: johnson_1: entity
work_lib.johnson.
I know that it wants to see a lib called "work_lib" and I am assuming
that the code "johnson.vhd" should be located in it.
Below is the compiler error.
Thx
Compiler error message:
vcom -work work -93 -explicit {C:/Modeltech_xe/examples/projects/New
Folder/johnson_tb.vhd}
Model Technology ModelSim XE II vcom 5.7c Compiler 2003.03 Mar 15 2003
-- Loading package standard
-- Loading package std_logic_1164
-- Compiling entity johnson_tb
-- Compiling architecture johnsontop of johnson_tb
** Error: (vcom-11) Could not find work_lib.johnson.
** Error: C:/Modeltech_xe/examples/projects/New
Folder/johnson_tb.vhd(19): cannot find expanded name: work_lib.johnson
** Error: C:/Modeltech_xe/examples/projects/New
Folder/johnson_tb.vhd(19): Unknown field: johnson.
** Error: C:/Modeltech_xe/examples/projects/New
Folder/johnson_tb.vhd(27): VHDL Compiler exiting
Cohen's book. Please look at VHD code.
I figure my problem is that I am not compiling a resource library
correctly. Can anybody give me step by step instructions on how to
make this work in ModelSim?
I have simulated a previous example of pre-written code and was able
to get a waveform generated, but it seems I don't know how to make
code to work if it has the following statement: johnson_1: entity
work_lib.johnson.
I know that it wants to see a lib called "work_lib" and I am assuming
that the code "johnson.vhd" should be located in it.
Below is the compiler error.
Thx
Compiler error message:
vcom -work work -93 -explicit {C:/Modeltech_xe/examples/projects/New
Folder/johnson_tb.vhd}
Model Technology ModelSim XE II vcom 5.7c Compiler 2003.03 Mar 15 2003
-- Loading package standard
-- Loading package std_logic_1164
-- Compiling entity johnson_tb
-- Compiling architecture johnsontop of johnson_tb
** Error: (vcom-11) Could not find work_lib.johnson.
** Error: C:/Modeltech_xe/examples/projects/New
Folder/johnson_tb.vhd(19): cannot find expanded name: work_lib.johnson
** Error: C:/Modeltech_xe/examples/projects/New
Folder/johnson_tb.vhd(19): Unknown field: johnson.
** Error: C:/Modeltech_xe/examples/projects/New
Folder/johnson_tb.vhd(27): VHDL Compiler exiting