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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 102
» Latest member: shantzis62
» Forum threads: 61
» Forum posts: 161

Full Statistics

Online Users
There are currently 6 online users.
» 0 Member(s) | 5 Guest(s)
Google

Latest Threads
Lucid to Verilog Counter ...
Forum: General Questions
Last Post: cerkit
09-15-2019, 03:48 PM
» Replies: 0
» Views: 15
Cable for IO banks?
Forum: General Questions
Last Post: shantzis62
09-11-2019, 03:55 PM
» Replies: 0
» Views: 25
Different IDE (VSCode?)
Forum: General Questions
Last Post: cerkit
09-10-2019, 10:55 PM
» Replies: 4
» Views: 520
FPGA as Logic Analizer & ...
Forum: General Questions
Last Post: victagayun
08-09-2019, 01:02 AM
» Replies: 0
» Views: 97
CuBr pins
Forum: Tips and Tricks
Last Post: flexo
08-07-2019, 11:28 PM
» Replies: 1
» Views: 291
Couldn't find device!
Forum: General Questions
Last Post: flexo
08-07-2019, 06:33 PM
» Replies: 1
» Views: 116
Alchitry Enthusiasts Disc...
Forum: Announcements
Last Post: flexo
08-07-2019, 03:36 PM
» Replies: 0
» Views: 98
Alchitry 1.1.1 | Cu Build...
Forum: General Questions
Last Post: sumane123
08-04-2019, 01:48 PM
» Replies: 0
» Views: 149
Alchitry labs 1.1.1 does ...
Forum: General Questions
Last Post: PhreakShow
07-25-2019, 03:38 PM
» Replies: 0
» Views: 125
Can no longer program str...
Forum: General Questions
Last Post: prebys
07-23-2019, 09:23 PM
» Replies: 0
» Views: 146

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

Greetings,

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).

Code:
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
   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;
     end
   end
 end

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

endmodule


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

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:
https://www.adafruit.com/product/2028

Thanks!


  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.


Star Alchitry Enthusiasts Discord [Unofficial]
Posted by: flexo - 08-07-2019, 03:36 PM - Forum: Announcements - No Replies

I made a Discord server for Alchitry Enthusiasts.
Join us at: https://discord.gg/qbmZvP


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

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.
Thanks.


  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 - No Replies

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)

Hello,

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.

Thanks.



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

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