OpenCores
URL https://opencores.org/ocsvn/openmsp430/openmsp430/trunk

Subversion Repositories openmsp430

[/] [openmsp430/] [trunk/] [core/] [sim/] [rtl_sim/] [bin/] [msp430sim_c] - Diff between revs 200 and 202

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 200 Rev 202
Line 114... Line 114...
sed -i 's/`//g'              ./pmem.h
sed -i 's/`//g'              ./pmem.h
sed -i "s/'//g"              ./pmem.h
sed -i "s/'//g"              ./pmem.h
 
 
# Use MSPGCC preprocessor to extract the Program, Data
# Use MSPGCC preprocessor to extract the Program, Data
# and Peripheral memory sizes
# and Peripheral memory sizes
if which msp430-elf-gcc >/dev/null; then
if command -v msp430-elf-gcc >/dev/null; then
    msp430-elf-gcc -E -P -x c ../bin/omsp_config.sh > pmem.sh
    msp430-elf-gcc -E -P -x c ../bin/omsp_config.sh > pmem.sh
else
else
    msp430-gcc     -E -P -x c ../bin/omsp_config.sh > pmem.sh
    msp430-gcc     -E -P -x c ../bin/omsp_config.sh > pmem.sh
fi
fi
 
 
Line 142... Line 142...
    ln -s $verfile stimulus.v
    ln -s $verfile stimulus.v
fi
fi
 
 
# Create IHEX file from ELF
# Create IHEX file from ELF
echo "Convert ELF file to IHEX format..."
echo "Convert ELF file to IHEX format..."
if which msp430-elf-objcopy >/dev/null; then
if command -v msp430-elf-objcopy >/dev/null; then
    msp430-elf-objcopy -O ihex  pmem.elf pmem.ihex
    msp430-elf-objcopy -O ihex  pmem.elf pmem.ihex
else
else
    msp430-objcopy     -O ihex  pmem.elf pmem.ihex
    msp430-objcopy     -O ihex  pmem.elf pmem.ihex
fi
fi
 
 
Line 154... Line 154...
echo "Convert IHEX file to Verilog MEMH format..."
echo "Convert IHEX file to Verilog MEMH format..."
../bin/ihex2mem.tcl -ihex pmem.ihex -out pmem.mem -mem_size $pmemsize
../bin/ihex2mem.tcl -ihex pmem.ihex -out pmem.mem -mem_size $pmemsize
 
 
# Start verilog simulation
# Start verilog simulation
echo "Start Verilog simulation..."
echo "Start Verilog simulation..."
../bin/rtlsim.sh    stimulus.v pmem.mem $submitfile
../bin/rtlsim.sh    stimulus.v pmem.mem $submitfile 0 "NO_DMA_VERIF"
../bin/rtlsim.sh    stimulus.v pmem.mem $submitfile 0 "NO_DMA_VERIF"
../bin/rtlsim.sh    stimulus.v pmem.mem $submitfile 0 "NO_DMA_VERIF"

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.