Hi,
Newbie here.What are the configurations or settings i need to make to generate hardware simulation executable. I tried on the HelloWorld example for Xilinx Virtex II Pro but received errors. I didnt change anything except for the PSP. Below is the build log:
======== Building target 'build_smd' in file _Makefile ========
mkdir smd
"C:\Impulse\CoDeveloper2\SMD\bin\ccs_ic.exe" -g HelloWorld.smd smd/HelloWorld_init.c
C-Cycle Impulse C Wrapper
Copyright 2004-2005, Green Mountain Computing Systems, Inc.
All rights reserved.
echo "IMPULSEC_HOME=C:\Impulse\CoDeveloper2" > smd/Makefile.defs
echo "IMPULSEC_GCC_HOME=C:\Impulse\CoDeveloper2\MinGW" >> smd/Makefile.defs
echo "SMD_HOME=C:\Impulse\CoDeveloper2\SMD" >> smd/Makefile.defs
echo "PROJECT_NAME=HelloWorld" >> smd/Makefile.defs
echo "SW_SRC=" >> smd/Makefile.defsecho "SW_INC=" >> smd/Makefile.defs
echo "SMD_FILE=HelloWorld.smd" >> smd/Makefile.defs
echo "VHDL_DIR=hw" >> smd/Makefile.defs
echo "VHDL_FILE=HelloWorld_comp.vhd" >> smd/Makefile.defsecho "TARGET=HelloWorld.exe" >> smd/Makefile.defs
/cygdrive/c/Impulse/CoDeveloper2/bin/iMake --directory=smd HelloWorld.exeiMake[1]: Entering directory `/cygdrive/c/Impulse/CoDeveloper2/Examples/Generic/HelloWorld/smd'
mkdir sw
cp ../hw/HelloWorld_comp.vhd HelloWorld_comp.vhd
chmod +rw HelloWorld_comp.vhd
"C:\Impulse\CoDeveloper2\SMD\bin\ccycle.exe" -o DoText.c "-LC:\Impulse\CoDeveloper2\SMD\lib" -reentrant -reset reset -clock clk DoText HelloWorld_comp.vhd -lib ieee "C:\Impulse\CoDeveloper2\SMD\lib"/stdarith.vhd "C:\Impulse\CoDeveloper2\SMD\lib"/num_std.vhd "C:\Impulse\CoDeveloper2\SMD\lib"/stdlogic.vhd -lib impulse "C:\Impulse\CoDeveloper2\SMD\lib"/impack2.vhd "C:\Impulse\CoDeveloper2\SMD\lib"/divmod.vhd "C:\Impulse\CoDeveloper2\SMD\lib"/float_fast_ccs.vhd "C:\Impulse\CoDeveloper2\SMD\lib"/float_ll_ccs.vhd -lib altera_mf "C:\Impulse\CoDeveloper2\SMD\lib"/alterasim.vhd
C-Cycle Version 1.3
Copyright by Green Mountain Computing Systems, 1997-2005.
All rights reserved.
Creating library ieee ...
Parsing C:\Impulse\CoDeveloper2\SMD\lib/stdlogic.vhd ... done
Parsing C:\Impulse\CoDeveloper2\SMD\lib/num_std.vhd ...C:\Impulse\CoDeveloper2\SMD\lib/num_std.vhd(863): Warning C0006 : Index constraint is a NULL range
C:\Impulse\CoDeveloper2\SMD\lib/num_std.vhd(864): Warning C0006 : Index constraint is a NULL range
2 warning(s)
done
Parsing C:\Impulse\CoDeveloper2\SMD\lib/stdarith.vhd ... done
Creating library impulse ...
Parsing C:\Impulse\CoDeveloper2\SMD\lib/float_ll_ccs.vhd ... done
Parsing C:\Impulse\CoDeveloper2\SMD\lib/float_fast_ccs.vhd ... done
Parsing C:\Impulse\CoDeveloper2\SMD\lib/divmod.vhd ... done
Parsing C:\Impulse\CoDeveloper2\SMD\lib/impack2.vhd ... done
Creating library altera_mf ...
Parsing C:\Impulse\CoDeveloper2\SMD\lib/alterasim.vhd ... done
Parsing HelloWorld_comp.vhd ... done
Elaborating ... done
Extracting reset processes ... done
Extracting clk processes ... done
Saving ... done
"C:\Impulse\CoDeveloper2\MinGW\bin\gcc" -g -O -I"C:\Impulse\CoDeveloper2\SMD\include" -o DoText.o -c DoText.c
"C:\Impulse\CoDeveloper2\MinGW\bin\gcc" -g -O -I"C:\Impulse\CoDeveloper2\SMD\include" -o HelloWorld_init.o -c HelloWorld_init.c
"C:\Impulse\CoDeveloper2\MinGW\bin\g++" -o HelloWorld.exe DoText.o HelloWorld_init.o -L"C:\Impulse\CoDeveloper2\SMD\lib" -lcosim_null -lccsdbg -lccslib -limpc -lxmlpp "C:\Impulse\CoDeveloper2\SMD\lib"/libwxmsw240.a -lcomdlg32 -lcomctl32 -lgdi32 -loleaut32 -lole32 -luuid -lwsock32 -ltcl83 -ltk83 "C:\Impulse\CoDeveloper2\SMD\lib"/ccsdbg_rc.o
HelloWorld_init.o(.text+0x188): In function `ccs_config':
c:/Impulse/CoDeveloper2/Examples/Generic/HelloWorld/smd/HelloWorld_init.c:34: undefined reference to `Producer'
HelloWorld_init.o(.text+0x1e4):c:/Impulse/CoDeveloper2/Examples/Generic/HelloWorld/smd/HelloWorld_init.c:41: undefined reference to `Consumer'
iMake[1]: *** [HelloWorld.exe] Error 1
iMake[1]: Leaving directory `/cygdrive/c/Impulse/CoDeveloper2/Examples/Generic/HelloWorld/smd'
iMake: *** [smd/HelloWorld.exe] Error 2
======== Build of target 'build_smd' complete ========
Please help.
Newbie
Hardware Simulation Executable
Started by cenl, Aug 14 2007 01:41 AM
4 replies to this topic
#1
Posted 14 August 2007 - 01:41 AM
#2
Posted 14 August 2007 - 11:55 AM
These "undefined reference" errors happen when the Stage Master Debugger does not compile all the code that makes up the simulation. SMD will compile the source and include files listed under the sections "CoBuilder Hardware Files" and "CoBuilder Software Files" in the Generate tab of the Options dialog (Project > Options menu in CoDeveloper). To fix the HelloWorld project, add HelloWorld_sw.c to the "CoBuilder Software Files", then try building the hardware simulation executable again.
Ralph
Ralph
Ralph Bodenner
Impulse Accelerated Technologies, Inc.
Impulse Accelerated Technologies, Inc.
#3
Posted 15 August 2007 - 12:42 AM
Thanks.. that solved the problem..
Another newbie question. Using the HelloWorld example, after synthesizing the hdl files from CoDeveloper and downloading it to the target FPGA, how do i start the program. Is there any C files that i have to compile to get a executable for it or it depends on the vendor software for the FPGA or am i totally missing the point here.
Please advise.
Another newbie question. Using the HelloWorld example, after synthesizing the hdl files from CoDeveloper and downloading it to the target FPGA, how do i start the program. Is there any C files that i have to compile to get a executable for it or it depends on the vendor software for the FPGA or am i totally missing the point here.
Please advise.
#4
Posted 16 August 2007 - 10:35 AM
Another newbie question. Using the HelloWorld example, after synthesizing the hdl files from CoDeveloper and downloading it to the target FPGA, how do i start the program. Is there any C files that i have to compile to get a executable for it or it depends on the vendor software for the FPGA or am i totally missing the point here.
Please advise.
Please advise.
#5
Posted 19 August 2007 - 07:52 PM
Hi.. Can someone help me out with the question above?
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












