A1 and hardened control functions


#1

I was reading the MachX02 data sheet and even the lowly XO2-256 has two I2C and one SPI interface that will interface to your logic via an 8-bit Wishbone bus. Reading Lattice’s TN1205, I follow the instructions, launch IPexpress and select EFB, fill in the required fields and press customize and Diamond does nothing. Nor does it report any errors. I was wondering if anybody had tried doing this?


#2

I haven’t gotten that problem before. When I press “Customize” the following window appears:

However, it looks like you have “ORCAstra” selected in the list to the left. Try making sure you have “EFB” selected while you press the “Customize” button and see if that makes a difference.


#3

Hmm…it must be a bug with Diamond on MacOS. I would contact Lattice support.


#4

I figured it out. I’m running Diamond in a Centos 7.4 VMware Fusion VM. It appears that there was a missing library dependency and “wish” wasn’t able to launch.

$ export LD_LIBRARY_PATH=/usr/local/diamond/3.10_x64/tcltk/lib
$ cd /usr/local/diamond/3.10_x64/tcltk/bin
$ ./wish
./wish: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory
$ ldd wish
linux-vdso.so.1 => (0x00007ffdd19c2000)
libtk8.5.so => /usr/local/diamond/3.10_x64/tcltk/lib/libtk8.5.so (0x00007f9128432000)
libtcl8.5.so => /usr/local/diamond/3.10_x64/tcltk/lib/libtcl8.5.so (0x00007f9128121000)
libX11.so.6 => /lib64/libX11.so.6 (0x00007f9127dd0000)
libXss.so.1 => not found
libXext.so.6 => /lib64/libXext.so.6 (0x00007f9127bbd000)
libXft.so.2 => /lib64/libXft.so.2 (0x00007f91279a7000)
libfreetype.so.6 => /lib64/libfreetype.so.6 (0x00007f9127701000)
libfontconfig.so.1 => /lib64/libfontconfig.so.1 (0x00007f91274c3000)
libXrender.so.1 => /lib64/libXrender.so.1 (0x00007f91272b8000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f91270b4000)
libm.so.6 => /lib64/libm.so.6 (0x00007f9126db1000)
libc.so.6 => /lib64/libc.so.6 (0x00007f91269ee000)
libXss.so.1 => not found
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f91267d1000)
libxcb.so.1 => /lib64/libxcb.so.1 (0x00007f91265a9000)
libexpat.so.1 => /lib64/libexpat.so.1 (0x00007f912637e000)
/lib64/ld-linux-x86-64.so.2 (0x000055b414f2c000)
libXau.so.6 => /lib64/libXau.so.6 (0x00007f912617a000)

I did a “sudo yum install libXScrnSaver.x86_64” and all is well. Why “wish” cares about screen savers, I don’t know.


#5

Glad you found a solution, and thanks for sharing it with everyone! :grinning: