Peter Ivanov

Members
  • Content count

    13
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Peter Ivanov

  1. Sometris game

    Original version of game was running on PIC18F6622 and Dingoo A320. Now it's running on Papilio One 500K + Arcade Megawing. I've used the ZPUino soft processor which is realized by Xilinx Spartan-3E FPGA. VGA signal is also generated by the FPGA. The game can be played with integrated buttons of Arcade Megawing or with Atari/Commodore joysticks. I've used a QuickShot II Plus (SVI-102 Plus) joystick in the video below: Demo Please, use the .bit file included in the ZIP. Otherwise buttons and joystick are not working properly. sometris_v121.zip
  2. Better late than never: the sometris game works with DesignLab 1.0.8. I tested it with Papilio One 500K + Arcade Megawing. I had to re-synthesize the Arcade_MegaWing circuit, because the included .bit file does not handle the button and joystick inputs. Uploaded to github: https://github.com/ivanovp/sometris
  3. Hi, I've just downloaded DesignLab 1.0.5. I tried to use Papilio One 500K and Arcade Megawing again. My sometris game can be compiled and uploaded to the board, but none of the joysticks are working (neither integrated buttons nor Joy A, . Reading with digitalRead returns always LOW. Regards, Peter
  4. Hi, Yes, Papilio One 500K and Arcade Megawing. I've sent the binaries. Regards, Peter
  5. I downloaded DesignLab 1.0.1 (Linux 32-bit). I got these errors: Executing /usr/share/papilio-designlab/hardware/tools/zpu/bin/zpu-elf-size /tmp/build9052358762595091587.tmp/sometris.cpp.elfBinary sketch size: 14,216 bytes (of a 12,160 byte maximum) - 12,836 bytes ROM, 2,736 bytes memory, 116% usedprocessing.app.debug.RunnerException: Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.But ZAP 2.3.0 produces this executable size: Executing /usr/share/papilio-zap-ide/hardware/tools/zpu/bin/zpu-elf-size /tmp/build246896770949469503.tmp/sometris.cpp.elfBinary sketch size: 9,144 bytes (of a 12,160 byte maximum) - 9,008 bytes ROM, 1,312 bytes memory, 75% used
  6. Another thing I found (under Linux): if I try to edit the circuit it always says it is a library circuit (but it is in ~/DesignLab/sometris/): http://stuff.ivanov.eu/designlab_screenshot.png EDIT: Probably 4 pull-ups are accidentally wired to integrated buttons instead of Joystick B pins.
  7. DesignLab 1.0.0, Papilio One 500K + Arcade MegaWing: I've changed boards.txt: zpuino_papilio_one500vps.name=Papilio One (500K) - ZPUino Hyperionzpuino_papilio_one500vps.boardid=0xb4010f00zpuino_papilio_one500vps.upload.protocol=zpuino-serialzpuino_papilio_one500vps.upload.maximum_size=12160zpuino_papilio_one500vps.upload.size_sections=allzpuino_papilio_one500vps.upload.speed=115200zpuino_papilio_one500vps.upload.tool=zpuinoprogrammerzpuino_papilio_one500vps.build.f_cpu=92000000Lzpuino_papilio_one500vps.build.core=zpuino2zpuino_papilio_one500vps.build.mcu=zpuzpuino_papilio_one500vps.build.pins=standardzpuino_papilio_one500vps.build.toolchain=zpuzpuino_papilio_one500vps.build.extra_flags=-D__ZPUINO_PAPILIO_ONE__ -DCLK_FREQ=92000000 -DBOARD_ID=0xb4010f00 -DBOARD_MEMORYSIZE=0x4000 -D__S3E_500__ -nostartfileszpuino_papilio_one500vps.build.extraSflags=-DBOARD_ID=0xb4010f00zpuino_papilio_one500vps.bitloader.tool=papilioprogzpuino_papilio_one500vps.bitloader.file=p1_500k/zpuino-1.0-PapilioOne-S3E500-Hyperion-HQVGA-PinSelect.bitzpuino_papilio_one500vps.xise.file=circuit/PSL_Papilio_One_500K.xisezpuino_papilio_one500vps.pdf.file=circuit/schematic_papilio_one_500k.pdfzpuino_papilio_one500vps.bit.file=circuit/500K/papilio_one_500k.bitSomehow the compiled binary is much larger than earlier for the sometris game. It was 9144 bytes for zpu1, but 14216 bytes without Timer now: Executing /usr/share/papilio-designlab/hardware/tools/zpu/bin/zpu-elf-size /tmp/build7908412095521054450.tmp/sometris.cpp.elf Binary sketch size: 14,216 bytes (of a 12,160 byte maximum) - 12,836 bytes ROM, 2,736 bytes memory, 116% used I've checked the dump of the zpuino1 and zpuino2 output. I found an sprintf in the latter one. Maybe -ffunction-sections -fdata-sections switches of gcc can help?
  8. Ok, tell me how to upload/what to do! Peter
  9. Hello, I've configured the joystick inputs to have pull up resistors. Thanks for help. Here is the little game what I've written: and the sources: https://github.com/ivanovp/sometris Regards, Peter
  10. I see. No problem, I've just changed the ucf of previous zpuino and the pull-ups work fine! I can understand that if you've got more boards and more extensions your work expontentially increases. I really appreciate your work and help. Regards, Peter
  11. Hi, I'm using DesignLab-020, and want to synthesize zpu for Arcade MegaWing with pull-ups enabled for joystick inputs. I tried to copy schematic of Bricks example: ZPUino Soft Processor - Papilio One 500K - Vanilla -v2.0, HQVGA Adapter, VGA8 wing, clk_32to50dcm, VGA char map. Synthesize finishes, mapping returns with error (OVERMAPPED): Logic Utilization Used Available Utilization Note(s) Number of Slice Flip Flops 2,035 9,312 21% Number of SLICEMs 9,609 2,328 412% OVERMAPPED Number of 4 input LUTs 27,356 9,312 293% OVERMAPPED Number of occupied Slices 14,071 4,656 302% OVERMAPPED Number of Slices containing only related logic 14,071 14,071 100% Number of Slices containing unrelated logic 0 14,071 0% Total Number of 4 input LUTs 27,573 9,312 296% OVERMAPPED Number used as logic 11,962 Number used as a route-thru 217 Number used as 16x1 RAMs 2,048 Number used for Dual Port RAMs 12,288 Number used for 32x1 RAMs 1,024 Number used as Shift registers 34 Number of bonded IOBs 55 66 83% Number of RAMB16s 20 20 100% Number of BUFGMUXs 5 24 20% Number of DCMs 3 4 75% Number of MULT18X18SIOs 3 20 15% Can anybody help? Regards, Peter EDIT: Sorry for wrongly displayed table.
  12. Hello Jack, Thanks for instant reply. I downloaded the last DesignLab and trying to change/synthesize an FPGA configuration. I'll be back in few days (weeks). Regards, Peter
  13. Hi, I'm trying to use Arcade Megawing with zpuino. And I'm trying to use an original Quick Shot II plus joystick. It looks that there are no pull-up resistors in the joystick and there are no pull ups on the Megawing too. The INPUT_PULLUP parameter for pinMode () function is not supported. Any ideas to have pull-ups? Regards, Peter