Welcome, Guest
You have to register before you can post on our site.



Search Forums

(Advanced Search)

Forum Statistics
» Members: 220
» Latest member: Afzalsheikh
» Forum threads: 97
» Forum posts: 284

Full Statistics

Online Users
There are currently 19 online users.
» 0 Member(s) | 17 Guest(s)
Bing, Yandex

Latest Threads
Unable to upload sketch t...
Forum: General Questions
Last Post: RedPants
06-17-2020, 04:34 AM
» Replies: 3
» Views: 407
How to implement a simple...
Forum: General Questions
Last Post: MichaelTuckwell
06-15-2020, 11:35 PM
» Replies: 2
» Views: 198
lucid analog input tutori...
Forum: General Questions
Last Post: alchitry
06-15-2020, 07:52 PM
» Replies: 4
» Views: 574
Alchitry in Linux
Forum: General Questions
Last Post: alchitry
06-15-2020, 07:45 PM
» Replies: 5
» Views: 599
using avr interface for a...
Forum: General Questions
Last Post: alchitry
06-15-2020, 07:35 PM
» Replies: 1
» Views: 188
Reading analog inputs wit...
Forum: General Questions
Last Post: jdeschamps
06-08-2020, 02:43 PM
» Replies: 5
» Views: 1,223
Burning MoJo board from X...
Forum: General Questions
Last Post: cerkit
05-17-2020, 11:59 PM
» Replies: 1
» Views: 472
Re-flashing a Mojo V3 boa...
Forum: General Questions
Last Post: alchitry
05-12-2020, 02:35 PM
» Replies: 6
» Views: 797
New Accounts
Forum: Announcements
Last Post: alchitry
05-11-2020, 04:25 PM
» Replies: 0
» Views: 270
Alchitry_labs 1.05 Update...
Forum: General Questions
Last Post: alchitry
04-27-2020, 03:03 PM
» Replies: 1
» Views: 949

  Lucid to Verilog Counter implementation
Posted by: cerkit - 09-15-2019, 03:48 PM - Forum: General Questions - No Replies


I have the transpiled Verilog source of the Lucid Counter component, but the Verilog is using constant values instead of the parameters. Does anyone know what the replacements for the parameters (SIZE, DIV, TOP, UP) would be in the following Verilog source? The biggest confusion I'm having is the use of hex 0x00, because two parameters use that value (DIV and TOP).

module counter (
   input clk,
   input rst,
   output reg [7:0] value

 parameter SIZE = 4'h8;
 parameter DIV = 1'h0;
 parameter TOP = 1'h0;
 parameter UP = 1'h1;

 reg [7:0] M_ctr_d, M_ctr_q = 1'h0;

 localparam MAX_VALUE = 1'h0;

 always @* begin
   M_ctr_d = M_ctr_q;

   value = M_ctr_q[0+7-:8];
   if (1'h1) begin
     M_ctr_d = M_ctr_q + 1'h1;
     if (1'h0 && M_ctr_q == 1'h0) begin
       M_ctr_d = 1'h0;
   end else begin
     M_ctr_d = M_ctr_q - 1'h1;
     if (1'h0 && M_ctr_q == 1'h0) begin
       M_ctr_d = 1'h0;

 always @(posedge clk) begin
   if (rst == 1'b1) begin
     M_ctr_q <= 1'h0;
   end else begin
     M_ctr_q <= M_ctr_d;


  Cable for IO banks?
Posted by: shantzis62 - 09-11-2019, 03:55 PM - Forum: General Questions - Replies (4)

Hello all,
I'm wondering if there is some product out there that can connect one of the data banks to a protoboard. Honestly, I'm surprised this isn't offered as a basic product given the likelihood that one will connect to external hardware. What I'm hoping to find is something like this one that is available for the Raspberry Pi GPIO bank:


  FPGA as Logic Analizer & Forum Project
Posted by: victagayun - 08-09-2019, 01:02 AM - Forum: General Questions - No Replies

Hello, newbie here.
Since I have bought the Alchitry, it would be better that I ask here.
I know this is a stupid question but is it possible to use is as FPGA and how fast?
Can it possibly interface to https://sigrok.org/ ?

I would like to suggest to add "Projects" in the forum to showcase their projects their difficulties, etc.

Exclamation Couldn't find device!
Posted by: flexo - 08-07-2019, 03:26 PM - Forum: General Questions - Replies (6)

Anyone get a "Couldn't find device!" error when trying to flash a program to one of the Alchitry boards (in my case a Cu)?
Sometimes I get "Couldn't find device!" and sometimes I get:

org.usb4java.LibUsbException: USB error 5: LibUsb.open() failed: Entity not found
at com.alchitry.labs.hardware.usb.UsbDevice.usbFindAll(UsbDevice.java:218)
at com.alchitry.labs.hardware.usb.UsbUtil.getDevice(UsbUtil.java:46)
at com.alchitry.labs.hardware.usb.UsbUtil.openFtdiDevice(UsbUtil.java:91)
at com.alchitry.labs.hardware.loaders.CuLoader.program(CuLoader.java:45)
at com.alchitry.labs.hardware.loaders.ProjectLoader.load(ProjectLoader.java:48)
at com.alchitry.labs.project.Project$8.run(Project.java:1539)

I have tried two different USB-C cables, both confirmed to be data cables and every single USB port and hub on my PC.

  Alchitry 1.1.1 | Cu Build failing, How can i fix it?
Posted by: sumane123 - 08-04-2019, 01:48 PM - Forum: General Questions - No Replies

Starting iceCube2...
C:\Program Files\Alchitry\Alchitry Labs>SET TCL_LIBRARY=C:\lscc\iCEcube2.2017.08\Aldec\Active-HDL\tcl\lib\tcl
C:\Program Files\Alchitry\Alchitry Labs>SET LM_LICENSE_FILE=C:\lscc\iCEcube2.2017.08\license\license.dat
C:\Program Files\Alchitry\Alchitry Labs>SET SYNPLIFY_PATH=C:\lscc\iCEcube2.2017.08\synpbase
C:\Program Files\Alchitry\Alchitry Labs>SET SBT_DIR=C:\lscc\iCEcube2.2017.08\sbt_backend
C:\Program Files\Alchitry\Alchitry Labs>C:\lscc\iCEcube2.2017.08\sbt_backend\bin\win32\opt\synpwrap\synpwrap.exe -prj "C:\Users\acer\Desktop\blink2\blink2\work\alchitry_syn.prj" -log "C:\Users\acer\Desktop\blink2\blink2\work\icelog.log"
Copyright © 1992-2014 Lattice Semiconductor Corporation. All rights reserved.
Error of dumping file C:\Users\acer\Desktop\blink2\blink2\work\icelog.log, 'stdout.log' is instead.
Synthesis exit by 2.
C:\Program Files\Alchitry\Alchitry Labs>C:\lscc\iCEcube2.2017.08\Aldec\Active-HDL\BIN\tclsh85.exe "C:\Users\acer\Desktop\blink2\blink2\work\iCEcube2_flow.tcl"
Error : can not print out log file stdout.log
Run edifparser ...
{C:\lscc\iCEcube2.2017.08\sbt_backend/bin/win32/opt/edifparser} {C:\lscc\iCEcube2.2017.08\sbt_backend/devices\ICE40P08.dev} {C:/Users/acer/Desktop/blink2/blink2/work/alchitry_imp/cu_top_0.edf} {C:/Users/acer/Desktop/blink2/blink2/work/alchitry_imp/sbt/netlist}  -p"CB132"  {-y} {"C:/Users/acer/Desktop/blink2/blink2/work/constraint/merged_constraint.pcf "} --devicename  iCE40HX8K
Lattice Semiconductor Corporation  Edif Parser
Release:        2017.08.27940
Build Date:     Sep 11 2017 16:51:25
Parsing edif file: C:/Users/acer/Desktop/blink2/blink2/work/alchitry_imp/cu_top_0.edf...
Error: ParseEDIF C:/Users/acer/Desktop/blink2/blink2/work/alchitry_imp/cu_top_0.edf failed
Kparser Unable to open C:/Users/acer/Desktop/blink2/blink2/work/alchitry_imp/cu_top_0.edf
child process exited abnormally
edifparser failed:CHILDSTATUS 9412 1
Bin file (C:\Users\acer\Desktop\blink2\blink2\work\alchitry_imp\sbt\outputs\bitmap\cu_top_0_bitmap.bin) could not be found! The build probably failed.

  Alchitry labs 1.1.1 does neither syntax check nor build a binary
Posted by: PhreakShow - 07-25-2019, 03:38 PM - Forum: General Questions - Replies (1)

Hey guys,

I have a Mojo v3 with the HDMI shield and I wanted to follow the HDMI projects (passthrough, creating an HDMI output, etc).

After downloading the non Win10 design suite and obtaining a license file, I started alchitry and set the path to 14.7. But the buttons "check syntax" and "build project" do not produce any output at all. No error messages, nothing. 

ISE itself is running fine, I can program the spartan without problems. Just alchitry does not seem to do anything.

Any ideas?

OS is Win10 x64

  Can no longer program straight from Alchitry with version 1.1.1
Posted by: prebys - 07-23-2019, 09:23 PM - Forum: General Questions - No Replies

I'm running Alchitry in a Windows 7 VM (Parallels) on a Mac.

This has always worked fine in the past, but after I upgraded to version 1.1.1, my project will
compile, but when I try to download it from the IDE, I get the following error:

org.usb4java.LibUsbException: USB error 5: LibUsb.open() failed: Entity not found
    at com.alchitry.labs.hardware.usb.UsbDevice.usbFindAll(UsbDevice.java:218)
    at com.alchitry.labs.hardware.usb.UsbUtil.getDevice(UsbUtil.java:46)
    at com.alchitry.labs.hardware.usb.UsbUtil.openFtdiDevice(UsbUtil.java:91)
    at com.alchitry.labs.hardware.loaders.AuLoader.eraseFlash(AuLoader.java:21)
    at com.alchitry.labs.hardware.loaders.ProjectLoader.erase(ProjectLoader.java:54)
    at com.alchitry.labs.project.Project$9.run(Project.java:1557)

On the other hand, if I run the Alchitry loader, it works fine for both programming and flashing the EEPROM.

I'd appreciate any advice.

Never mind!  I skipped 1.1.0, so I didn't get the splash about installing WinUSB.  It works now.

  Issue with mojo/edid_rom/i2c_slave.
Posted by: ocr - 07-12-2019, 04:20 PM - Forum: General Questions - Replies (1)


It seems there is a bug in i2c_slave implementation for Mojo/HDMI Shield. I have used rk3328 box as HDMI source in HDMI pass through scenario. On HDMI source I can see error: "failed to get edid".

Inside i2c_slave.luc there is state transition from READ_ACK_WAIT to WRITE_BYTE. It is good idea to check master's ACK/NACK before going to WRITE_BYTE again. Go to IDLE state if master responds NACK. Currently it goes into WRITE_BYTE anyway and continues to write into bidirectional sda line. Such behavior considered incorrect. For more details see please patch in attachment.


Attached Files
.txt   fix_i2c_slave.txt (Size: 354 bytes / Downloads: 7)

Shocked Io element to shield connector
Posted by: Torkle - 07-04-2019, 12:12 PM - Forum: General Questions - Replies (1)

How do I easily convert an io element into an io shield to stack onto the mojo dev board? Many thanks

  New to FPGA - HDMI project
Posted by: crazy-logic - 07-01-2019, 04:43 PM - Forum: General Questions - Replies (2)

Hi all, 

I'm new to FPGA's but have a background in PIC/Arduino projects. I would like to grab a mojo board and the HDMI shield and then be able to make modifications to the image "live". 

I imagine I can store the image in a frame buffer and then output that frame rather than processing pixel by pixel in a live fashion. (separating the input and output clocks). Going forward I would like to be able to do things like fade to and from black (or other colour), load in stills into a separate buffer and fade to and from them, And possible scale 1/4 of the screen input to be full output. I realise this is all quite ambitious, but the mojo and HDMI shield look like they would fit the bill for learning how to do these things? 

Anyone got any tips, advice or suggestions or support they would like to share with me?