From c36d48bc64f35d03941e68f0627daf6204128400 Mon Sep 17 00:00:00 2001 From: Tom Collins Date: Fri, 26 Jun 2020 15:59:02 -0700 Subject: [PATCH] cleanup: remove dead (#if 0) code --- src/PRDevice.cpp | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/src/PRDevice.cpp b/src/PRDevice.cpp index 0add6de..3cab9cb 100644 --- a/src/PRDevice.cpp +++ b/src/PRDevice.cpp @@ -893,44 +893,6 @@ PRResult PRDevice::DMDDraw(uint8_t * dots) } return PrepareWriteData(dmd_command_buffer, words_per_frame+1); - - // The following code prints out the init lines for the 4 Xilinx BlockRAMs - // in the FPGA. It's used to make an image for the P-ROC to display on power-up. -#if 0 - // This is the original version... needs to be deleted. - for (i=0; i<4; i++) { - std::cout << "For memory: "<< i << "\n"; - // Need 4 lines to get 1 frame (4*256*4 = 4096) - // The rest will be all 0. - for (y=0; y<4; y++) { - std::cout << "defparam blockram.INIT_00 = 256'b"; - for (j=31; j>=0; j--) { - for (x=7; x>=0; x--) { - std::cout << ((dmd_frame_buffer[(y*32)+j] >> ((i*8)+x)) & 1); - } - } - std::cout << ";\n"; - } - std::cout << "\n\n\n"; - } -#endif -#if 0 - for (i=0; i<4; i++) { - std::cout << "For memory: "<< i << "\n"; - // Need 4 lines to get 1 frame (4*256*4 = 4096) - // The rest will be all 0. - for (y=0; y<4; y++) { - std::cout << "defparam blockram.INIT_00 = 256'b"; - for (j=8; j>=0; j--) { - for (x=31; x>=0; x--) { - std::cout << ((dmd_frame_buffer[(y*32)+j] >> ((i*8)+x)) & 1); - } - } - std::cout << ";\n"; - } - std::cout << "\n\n\n"; - } -#endif } PRResult PRDevice::PRJTAGDriveOutputs(PRJTAGOutputs * jtagOutputs, bool_t toggleClk)