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

Subversion Repositories z80soc

[/] [z80soc/] [trunk/] [V0.7.1a/] [rom/] [psf2coe.sh] - Blame information for rev 42

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 41 rrred
#!/bin/sh
2
IN=$1
3
 
4
echo "memory_initialization_radix=2;"
5
echo "memory_initialization_vector="
6
 
7
cat $IN | tr [0-9] '8' | tr '+' '8' | tr '-' '8' | grep -v "8" >psf2coe.tmp
8
 
9
for L in `cat psf2coe.tmp | sed s/" "/0/g | sed s/"X"/1/g`
10
do
11
      echo "$L,"
12
 
13
done
14
 
15
#rm psf2coe.tmp

powered by: WebSVN 2.1.0

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