Comments: First FPGA Project - Getting Fancy with PWM

Pages

Looking for answers to technical questions?

We welcome your comments and suggestions below. However, if you are looking for solutions to technical questions please see our Technical Assistance page.

  • Member #1765359 / about 2 years ago * / 1

    When using the Cu board, I am unable to complete the build for the "Pulsing an LED" section. I did not alter the code snippets from the tutorial text. The console contents are copied first below. Any ideas what I'm doing wrong? Thanks!

    All of the builds in the "Programming an FPGA" tutorial worked fine on the Cu board, and seemed to run fine on the board. The initial console output for the blinker build is shown after the above-mentioned output.

    I'm guessing there is something in pwm.luc and/or counter.luc that the Cu board doesn't like.

    A snippet from the unsuccessful build:

    Starting iceCube2...

    C:\Program Files\Alchitry\Alchitry Labs>SET LM_LICENSE_FILE=C:\Licenses\FlexLM\license.dat

    C:\Program Files\Alchitry\Alchitry Labs>SET SYNPLIFY_PATH=C:\lscc\iCEcube2.2020.12\synpbase

    C:\Program Files\Alchitry\Alchitry Labs>SET SBT_DIR=C:\lscc\iCEcube2.2020.12\sbt_backend

    C:\Program Files\Alchitry\Alchitry Labs>C:\lscc\iCEcube2.2020.12\sbt_backend\bin\win32\opt\synpwrap\synpwrap.exe -prj "Z:\Documents\Alchitry\Pulsing_LEDs\work\alchitry_syn.prj" Copyright (C) 1992-2014 Lattice Semiconductor Corporation. All rights reserved. Synthesis exit by 3.

    C:\Program Files\Alchitry\Alchitry Labs>"C:\Program Files\Alchitry\Alchitry Labs\tcl\bin\tclsh85.exe" "Z:\Documents\Alchitry\Pulsing_LEDs\work\iCEcube2_flow.tcl"

    Run edifparser ... {C:\lscc\iCEcube2.2020.12\sbt_backend/bin/win32/opt/edifparser} {C:\lscc\iCEcube2.2020.12\sbt_backend/devices\ICE40P08.dev} {Z:/Documents/Alchitry/Pulsing_LEDs/work/alchitry_imp/cu_top_0.edf} {Z:/Documents/Alchitry/Pulsing_LEDs/work/alchitry_imp/sbt/netlist} -p"CB132" {-y} {"Z:/Documents/Alchitry/Pulsing_LEDs/work/constraint/merged_constraint.pcf "} --devicename iCE40HX8K Lattice Semiconductor Corporation Edif Parser Release: 2020.12.27943 Build Date: Dec 9 2020 17:30:22

    Parsing edif file: Z:/Documents/Alchitry/Pulsing_LEDs/work/alchitry_imp/cu_top_0.edf... Error: ParseEDIF Z:/Documents/Alchitry/Pulsing_LEDs/work/alchitry_imp/cu_top_0.edf failed Kparser Unable to open Z:/Documents/Alchitry/Pulsing_LEDs/work/alchitry_imp/cu_top_0.edf child process exited abnormally edifparser failed:CHILDSTATUS 10184 1

    Bin file (Z:\Documents\Alchitry\Pulsing_LEDs\work\alchitry_imp\sbt\outputs\bitmap\cu_top_0_bitmap.bin) could not be found! The build probably failed.

    A snippet from a successful build:

    Starting iceCube2...

    C:\Program Files\Alchitry\Alchitry Labs>SET LM_LICENSE_FILE=C:\Licenses\FlexLM\license.dat

    C:\Program Files\Alchitry\Alchitry Labs>SET SYNPLIFY_PATH=C:\lscc\iCEcube2.2020.12\synpbase

    C:\Program Files\Alchitry\Alchitry Labs>SET SBT_DIR=C:\lscc\iCEcube2.2020.12\sbt_backend

    C:\Program Files\Alchitry\Alchitry Labs>C:\lscc\iCEcube2.2020.12\sbt_backend\bin\win32\opt\synpwrap\synpwrap.exe -prj "Z:\Documents\Alchitry\Blink\work\alchitry_syn.prj" Copyright (C) 1992-2014 Lattice Semiconductor Corporation. All rights reserved. Synthesis exit by 0.

    C:\Program Files\Alchitry\Alchitry Labs>"C:\Program Files\Alchitry\Alchitry Labs\tcl\bin\tclsh85.exe" "Z:\Documents\Alchitry\Blink\work\iCEcube2_flow.tcl"

    Run edifparser ... {C:\lscc\iCEcube2.2020.12\sbt_backend/bin/win32/opt/edifparser} {C:\lscc\iCEcube2.2020.12\sbt_backend/devices\ICE40P08.dev} {Z:/Documents/Alchitry/Blink/work/alchitry_imp/cu_top_0.edf} {Z:/Documents/Alchitry/Blink/work/alchitry_imp/sbt/netlist} -p"CB132" {-y} {"Z:/Documents/Alchitry/Blink/work/constraint/merged_constraint.pcf "} {-c} --devicename iCE40HX8K Lattice Semiconductor Corporation Edif Parser Release: 2020.12.27943 Build Date: Dec 9 2020 17:30:22

    Parsing edif file: Z:/Documents/Alchitry/Blink/work/alchitry_imp/cu_top_0.edf... Parsing constraint file: Z:/Documents/Alchitry/Blink/work/constraint/merged_constraint.pcf ... start to read sdc/scf file Z:/Documents/Alchitry/Blink/work/alchitry_imp/cu_top_0.scf sdc_reader OK Z:/Documents/Alchitry/Blink/work/alchitry_imp/cu_top_0.scf Stored edif netlist at Z:/Documents/Alchitry/Blink/work/alchitry_imp/sbt/netlist\oadb-cu_top_0...

    write Timing Constraint to Z:/Documents/Alchitry/Blink/work/alchitry_imp/sbt/Temp/sbt_temp.sdc

    EDIF Parser succeeded Top module is: cu_top_0

    EDF Parser run-time: 0 (sec)


If you've found an issue with this tutorial content, please send us your feedback!