Fixed it so it accepts DOS (CRLF) text files as input.
This commit is contained in:
@@ -3,6 +3,8 @@
|
|||||||
# This tool converts a Xilinx xxx.rbt FPGA bitstream to a table that will
|
# This tool converts a Xilinx xxx.rbt FPGA bitstream to a table that will
|
||||||
# compile as C source code. The output format is DWORDs, MSB first.
|
# compile as C source code. The output format is DWORDs, MSB first.
|
||||||
|
|
||||||
|
local $/ = "\r\n";
|
||||||
|
|
||||||
print "// Generated by rbt2c.pl, do not edit!\n\n";
|
print "// Generated by rbt2c.pl, do not edit!\n\n";
|
||||||
|
|
||||||
for(1..7) {
|
for(1..7) {
|
||||||
|
|||||||
Reference in New Issue
Block a user