Skip to content
  • This project
    • Loading...
  • Sign in

Barry / rf-depot

Go to a project
Toggle navigation
Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Graphs
  • Network
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • rf-depot
  • hw
  • tools
  • cfg2dump
  • root's avatar
    initial commit · bc83a1ad
    bc83a1ad
    root committed 2020-05-02 05:58:04 +0000
cfg2dump 255 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/sh

if [ "$2" = "" ]; then 
	output=/dev/stdout
else
	output=$2 
fi

echo "		dump = 1;" > $output
echo "" >> $output
grep add $1 | sed s/"^.*vsim"/vsim/ | sed s/\".*/@@BBBBBB/ | sed s/"^v"/'		\$dumpvars(1, v'/  | sed s/@@BBBBBB/');'/ >> $output