diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-03-30 17:00:05 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-03-30 17:00:05 +0200 |
commit | fa296fbc6fe1c423932189116bd0cb949de0beef (patch) | |
tree | fc7de2beb8c06e1e244caf0ca201d03c690b657e /test/ppu-stm-integration-demo/data2pputb.awk | |
parent | 6292c1101121bc8ba2db752cab3cbe41469b29d0 (diff) |
spi not working on hardware
Diffstat (limited to 'test/ppu-stm-integration-demo/data2pputb.awk')
-rwxr-xr-x | test/ppu-stm-integration-demo/data2pputb.awk | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/ppu-stm-integration-demo/data2pputb.awk b/test/ppu-stm-integration-demo/data2pputb.awk new file mode 100755 index 0000000..db4b53f --- /dev/null +++ b/test/ppu-stm-integration-demo/data2pputb.awk @@ -0,0 +1,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" +} |