From 94f6d4a683bc2ea2826a9c6528120fb5a109da26 Mon Sep 17 00:00:00 2001 From: d18c7db Date: Sun, 19 Jul 2009 03:48:02 +0000 Subject: [PATCH] Fixed it so it accepts DOS (CRLF) text files as input. --- tools/rbt2c.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/rbt2c.pl b/tools/rbt2c.pl index 949c9ae9..3e1e1fc4 100644 --- a/tools/rbt2c.pl +++ b/tools/rbt2c.pl @@ -3,6 +3,8 @@ # 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. +local $/ = "\r\n"; + print "// Generated by rbt2c.pl, do not edit!\n\n"; for(1..7) { -- 2.39.2