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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 199
» Latest member: DavidWalker
» Forum threads: 96
» Forum posts: 252

Full Statistics

Online Users
There are currently 12 online users.
» 0 Member(s) | 10 Guest(s)
Bing, Google

Latest Threads
Challenges for Students i...
Forum: General Questions
Last Post: DavidWalker
4 hours ago
» Replies: 5
» Views: 144
Avail Facebook Customer S...
Forum: General Questions
Last Post: maconharris
9 hours ago
» Replies: 0
» Views: 1
If Feed Of Game-Room Is N...
Forum: General Questions
Last Post: maconharris
9 hours ago
» Replies: 0
» Views: 1
Do Fundraiser On FB with ...
Forum: General Questions
Last Post: lanedavis
10 hours ago
» Replies: 0
» Views: 3
Via Facebook Customer Ser...
Forum: General Questions
Last Post: lanedavis
10 hours ago
» Replies: 0
» Views: 2
Can someone clean up the ...
Forum: General Questions
Last Post: prebys
Yesterday, 07:14 PM
» Replies: 0
» Views: 5
What I need to develop an...
Forum: General Questions
Last Post: muneebqadar
Yesterday, 11:38 AM
» Replies: 0
» Views: 3
Unable to see messages in...
Forum: General Questions
Last Post: sofimariyam
Yesterday, 10:43 AM
» Replies: 0
» Views: 5
Writing is an extremely d...
Forum: General Questions
Last Post: JessyWhite
Yesterday, 10:28 AM
» Replies: 3
» Views: 105
4 Go-To Apps For Revision...
Forum: General Questions
Last Post: JessyWhite
Yesterday, 10:27 AM
» Replies: 0
» Views: 2

 
  Increasing IO with SPI using the Au and Br
Posted by: MichaelTuckwell - 12-05-2019, 04:37 AM - Forum: General Questions - Replies (1)

I'm currently developing an application with the Au and Br using Alchitry Labs v1.1.6 in
Lucid, however I need many more switching outputs, so serial I/O expansion is needed.

The switching speed requirement is very high so SPI is my prefered choice and the
MCP23S17 16-Bit SPI Expander with serial interface is ideal for the application for 
extending multiple GPIOs. 

I'm asking for SPI implementation tips for the Au and Br as the current tutorial is
written for the Mojo, and I'm not sure how to use the spi_master compontent in
Alchitry Labs, or to add the SPI I/O to a constraints file. 

Also is there a Br constraints file for the Au?

Thanks in advance,

Mick


  Alchitry website down
Posted by: Anacleto86 - 11-29-2019, 09:10 AM - Forum: General Questions - No Replies

What happened to Alchitry.com? It keeps being unavailable and I cannot download the tools I need for the Mojo v3, neither reach the tutorials...

Any news?


  HDMI/VGA Shield
Posted by: Pouya - 11-08-2019, 03:48 PM - Forum: General Questions - No Replies

I'm desperately waiting for an HDMI or VGA shield to purchase your new boards. Could you tell me when they will be available?

Your boards have great potential. Your simple design remembers me of the success of Arduino. The only lacking part is that there are few tutorials and there are few shields too. Please provide more.


Thanks


  "No devices found!" on Ubuntu 18.04.2 on VMWare/Mac
Posted by: oter - 10-25-2019, 03:49 AM - Forum: General Questions - No Replies

Accessing the Au board from the alchetry-labs IDE works great. 
But, neither the GUI loader, nor the standalone CLI (*) detect the device. The OS recognizes the USB board (see usb-devices).

Any pointers?

Thanks!!

(*) rebuilt version from Github with "$ g++ -o loader src/*.cpp -L ./lib/linux/ -lftd2xx -lpthread -std=c++11"


Code:
$ loader -l
No devices found!
No devices found!
Couldn't find device!

# plug in

$ loader -l
Devices: 
  0: Unknown
  1: Unknown
Couldn't find device!

# OS sees device 
$ usb-devices 
...
T:  Bus=03 Lev=02 Prnt=05 Port=00 Cnt=01 Dev#=  7 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0403 ProdID=6010 Rev=07.00
S:  Manufacturer=Alchitry
S:  Product=Alchitry Au
S:  SerialNumber=FT3KRFFN
C:  #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=ftdi_sio
I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=ftdi_sio

# rule is there
$ cat /etc/udev/rules.d/99-alchitry.rules 
SUBSYSTEM!="usb|usb_device", GOTO="ft2232_rules_end"
ACTION!="add", GOTO="ft2232_rules_end"

ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", MODE="0666", GROUP="dialout"

LABEL="ft2232_rules_end"

# right group
$ groups `whoami`
... dialout ...

(10-25-2019, 03:49 AM)oter Wrote: Accessing the Au board from the alchetry-labs IDE works great. 
But, neither the GUI loader, nor the standalone CLI (*) detect the device. The OS recognizes the USB board (see usb-devices).

Any pointers?

Thanks!!

(*) rebuilt version from Github with "$ g++ -o loader src/*.cpp -L ./lib/linux/ -lftd2xx -lpthread -std=c++11"


Code:
$ loader -l
No devices found!
No devices found!
Couldn't find device!

# plug in

$ loader -l
Devices: 
  0: Unknown
  1: Unknown
Couldn't find device!

# OS sees device 
$ usb-devices 
...
T:  Bus=03 Lev=02 Prnt=05 Port=00 Cnt=01 Dev#=  7 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0403 ProdID=6010 Rev=07.00
S:  Manufacturer=Alchitry
S:  Product=Alchitry Au
S:  SerialNumber=FT3KRFFN
C:  #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=ftdi_sio
I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=ftdi_sio

# rule is there
$ cat /etc/udev/rules.d/99-alchitry.rules 
SUBSYSTEM!="usb|usb_device", GOTO="ft2232_rules_end"
ACTION!="add", GOTO="ft2232_rules_end"

ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", MODE="0666", GROUP="dialout"

LABEL="ft2232_rules_end"

# right group
$ groups `whoami`
... dialout ...

To see if this issue is somehow related to VMWare being in the middle, I switched to a Pi and recompiled the loader CLI (using https://github.com/alchitry/alchitry-loader, linked with the 1.4.8 ARMv7 hard-float lib from https://www.ftdichip.com/Drivers/D2XX.htm). Same g++ command as previously documented.

Works great on Pi :-)

For now, in my automation env, I'm going to scp my bins to this Pi and load the Au that way.

Is there some way to run the IDE with --as-loader switch so I could use the java based code to download on the Linux/VMWare/Mac combo (as I mentioned earlier, it all works great on that setup so long as I use the IDE to download)?

Thanks!


  Mojo v2 hdmi hat SDRAM issue?
Posted by: mm0zct - 10-24-2019, 09:44 PM - Forum: General Questions - No Replies

Hi,

I have a mojo v2, and a little while ago I acquired the official HDMI hat with built-in SDRAM. I'd been playing with the HDMI output quite happily, but recently tried to use the SDRAM and the example configurations don't seem to work.

The SDRAM demo just instantly lights up the LEDs to signal errors, and my custom project to read/write to the SDRAM based on UART communication always returns back the last thing I wrote to it, as if the address lines were ignored.

Are there any known issues with the SDRAM hat and the v2 of the mojo board? I thought the differences between v2 and v3 were purely around securing the USB connector better?

Does anyone have any recommendations for trying to diagnose if there's a problem with the SDRAM?

Thanks.


  AU Pin Mapping and Board FIles for Vivado
Posted by: seware74 - 10-23-2019, 05:09 AM - Forum: Tips and Tricks - Replies (4)

For better or worse I am determined to learn to use all of the Vivado tool suite. To that end I have created a set of board files that will add the Au board to Vivado's set of available boards, so that I can use the block design tools. 

To use: unzip the contents of the attached zip into: C:\Xilinx\Vivado\2019.1\data\boards\board_files\alchitry-au\1.0  (for windows users)  and restart the Vivado gui. 

Currently this includes components for: clock, reset, leds, uart, spi flash, DDR3 SDRAM, and GPIO Banks A-D.

GPIOs are implemented as interfaces on the FPGA. This looks like Vivado will treat this like a bus. I am undecided if I will leave it like this or re-implement as connectors. 

At this point I can only confirm that Vivado will create a project from this and allow the creation of a block design with the aforementioned components. I have not yet tested any projects using this set of files yet. 

While reasonable care was taken to get the pin mappings right, this was done late at night so YMMV. If you find an error, please let me know.

This was heavily modeled on (appropriated from) the Arty A7 board files.

Also attached is the spreadsheet I used to to generate the pin mapping entries for the pin file and the board file along with the Xilinx pinout. Hopefully I will have a master xdc file generated tomorrow. 

Suggestions are welcome.



Attached Files
.xlsx   xc7a35tftg256pkg.xlsx (Size: 37.49 KB / Downloads: 12)
.zip   Au_Vivado_Board_Files.zip (Size: 8.29 KB / Downloads: 12)

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


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