* Add SPI flash configs, IOBinders, CI tests, and docs * Add writable SPI flash support * bump * Fix CI * Fix CI * Update docs/Generators/TestChipIP.rst Co-authored-by: Chick Markley <chick@qrhino.com> * Maybe actually fix CI * Fix broken merge * Fix the tutorial patch * bump tcip to master * fix GPIO naming bug Co-authored-by: Chick Markley <chick@qrhino.com>
12 lines
241 B
Python
Executable File
12 lines
241 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
# Generates a binary file that the SPI test uses
|
|
|
|
outfile = "spiflash.img"
|
|
|
|
with open(outfile, 'wb') as f:
|
|
for i in range(0,0x100000,4):
|
|
check = 0xdeadbeef - i
|
|
f.write(check.to_bytes(4,'little'))
|
|
|