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"
|