[Eda-dev] Problems running qflow display

Øyvind Harboe oyvind.harboe at zylin.com
Sat Jul 13 17:29:19 EDT 2019


I thought I'd take the qflow GUI for a spin, but I ran into some snags.

# qflow display --tech gscl45nm LRU

--------------------------------
Qflow project setup
--------------------------------

Technology set to gscl45nm
Regenerating files for existing project LRU
if: Expression Syntax.


I also tried "qflow all ..." but it displayed a different error and then
nothing more seemed to happen:


# qflow all --tech gscl45nm LRU
couldn't load file "/usr/local/lib/magic/tcl/tclmagic.so":
/usr/local/lib/magic/tcl/tclmagic.so: cannot open shared object file: No
such file or directory


I can reproduce this with my Dockerfile setup. Run the command below, it
will pop you into a bash shell where you can run e.g.  "qflow all --tech
gscl45nm LRU" to reproduce the error.

1. place the attached files into a folder qflow/
2. Run: docker build -t qflow qflow/
3. Run: docker run
--volume="/run/user/$UID/gdm/Xauthority:/root/.Xauthority:rw"
--env="DISPLAY" --net=host --interactive -t qflow bash
4. Run:  "qflow all --tech gscl45nm LRU", which results in:
couldn't load file "/usr/local/lib/magic/tcl/tclmagic.so":
/usr/local/lib/magic/tcl/tclmagic.so: cannot open shared object file: No
such file or directory




I googled up two articles on how to run GUI's from Docker:

https://medium.com/@SaravSun/running-gui-applications-inside-docker-containers-83d65c0db110

but I also needed this fix that talks about how to find out where
Xauthority is located on your host depending on  your host distribution:

https://blog.simos.info/how-to-run-graphics-accelerated-gui-apps-in-lxd-containers-on-your-ubuntu-desktop/


-- 
Øyvind Harboe, General Manager, Zylin AS, +47 917 86 146
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.opencircuitdesign.com/pipermail/eda-dev/attachments/20190713/4181b37e/attachment-0001.html>
-------------- next part --------------
141c141,143
<     if {$result < 10} {
---
>     #
>     # HACK! speed up qrouter by eliminating cleanup
>     if {0} {
-------------- next part --------------
diff --git a/tech/gscl45nm/gscl45nm.lib b/tech/gscl45nm/gscl45nm.lib
index 9deea6a..7b8540a 100755
--- a/tech/gscl45nm/gscl45nm.lib
+++ b/tech/gscl45nm/gscl45nm.lib
@@ -1476,6 +1476,7 @@ area : 9.855300;
  * Design : DFFNEGX1 *
  * ----------------- */
 cell (DFFNEGX1) {
+dont_use : true;
 area : 7.978100;
   cell_leakage_power : 50.8627;
   ff (DS0000,P0000) {
@@ -1645,6 +1646,7 @@ area : 7.978100;
  * Design : DFFPOSX1 *
  * ----------------- */
 cell (DFFPOSX1) {
+dont_use : true;
 area : 7.978100;
   cell_leakage_power : 54.9774;
   ff (DS0000,P0000) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Dockerfile
Type: application/octet-stream
Size: 4849 bytes
Desc: not available
URL: <http://www.opencircuitdesign.com/pipermail/eda-dev/attachments/20190713/4181b37e/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LRU.v
Type: text/x-verilog
Size: 15760 bytes
Desc: not available
URL: <http://www.opencircuitdesign.com/pipermail/eda-dev/attachments/20190713/4181b37e/attachment-0001.bin>


More information about the Eda-dev mailing list