1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/awk -f BEGIN { printf "\n" printf "\t\tWEN <= '1';\n" printf "\n" } 1 { printf "\t\tADDR <= x\""$1"\";\n" printf "\t\tDATA <= x\""$2"\";\n" printf "\t\twait for 10 ns;\n" printf "\n" } END { printf "\t\tWEN <= '0';\n" printf "\n" }