VLSIDA / OpenRAM

An open-source static random access memory (SRAM) compiler.
http://www.openram.org
BSD 3-Clause "New" or "Revised" License
780 stars 198 forks source link

Totally, Unit test error with tech: freepdk45 pycell #28

Closed leepil closed 6 years ago

leepil commented 6 years ago

Hello mguthaus.
I am at the beginning of most entry. but when i responded Readme, Unit test clogged up in this part.

For info, 00_code_format_check_test.py is pass, I installed freepdk45 tech. All tool's version is correct : python 2.7.9 also h,ng spice .

01~30(openram total test) are failed. because,,

ERROR: runTest (30_openram_test.openram_test)

Traceback (most recent call last): File "/home/leepil/OpenRAM-master/compiler/tests/30_openram_test.py", line 23, in runTest globals.init_openram("config20{0}".format(OPTS.tech_name)) File "/home/leepil/OpenRAM-master/compiler/tests/../globals.py", line 113, in init_openram import_tech() File "/home/leepil/OpenRAM-master/compiler/tests/../globals.py", line 314, in import_tech import(filename) File "/home/leepil/OpenRAM-master/technology/setup_scripts/setup_openram_freepdk45.py", line 16, in PDK_DIR=os.path.abspath(os.environ.get("FREEPDK45")) File "/home/leepil/PycellStudio3/plat_linux_gcc44x_64/3rd/lib/python2.7/posixpath.py", line 367, in abspath if not isabs(path): File "/home/leepil/PycellStudio3/plat_linux_gcc44x_64/3rd/lib/python2.7/posixpath.py", line 61, in isabs return s.startswith('/')

AttributeError: 'NoneType' object has no attribute 'startswith'

This error appeared as common between 01 and 30.

can you help me please?

Thank you

mguthaus commented 6 years ago

Hi,

It seems that maybe you have not defined the FREEPDK45 directory to point to the PDK directory? Can you send what it is defined as in your environment?

echo $FREEPDK45 echo $OPENRAM_TECH echo $OPENRAM_HOME

Matt

On Wed, Aug 16, 2017 at 7:47 PM, leepil notifications@github.com wrote:

Closed #28 https://github.com/mguthaus/OpenRAM/issues/28.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mguthaus/OpenRAM/issues/28#event-1209391276, or mute the thread https://github.com/notifications/unsubscribe-auth/AL35L2Wjgx85gbMj4rEWTioT-lOgzbsMks5sY6nCgaJpZM4O5tjk .

-- Matthew Guthaus Associate Professor, Computer Engineering CE Undergraduate Program Director University of California Santa Cruz https://www.soe.ucsc.edu/people/mrg

leepil commented 6 years ago

Thank you for the reply.

In setpaths.csh... $setenv OPENRAM_HOME /home/leepil/OpenRAM-master/compiler $setenv OPENRAM_TECH /home/leepil/OpenRAM-master/technology $setenv FREEPDK45 /home/leepil/OpenRAM-master/technology/freepdk45

You used pwd, but I set the path directly.

mguthaus commented 6 years ago

Did you source this file in your shell? Are the variables actually set? Please run the commands that I suggested to confirm.

On Aug 21, 2017 19:35, "leepil" notifications@github.com wrote:

Thank you for the reply.

In setpaths.csh... $setenv OPENRAM_HOME /home/leepil/OpenRAM-master/compiler $setenv OPENRAM_TECH /home/leepil/OpenRAM-master/technology $setenv FREEPDK45 /home/leepil/OpenRAM-master/technology/freepdk45

You used pwd, but I set the path directly.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mguthaus/OpenRAM/issues/28#issuecomment-323902731, or mute the thread https://github.com/notifications/unsubscribe-auth/AL35L77AANb8REhlogbcDFRbCJTOiwX3ks5saj6DgaJpZM4O5tjk .

leepil commented 6 years ago

That's true! You taght me that " I will not change the code given.". Thx but... A new error occurred. I obviously made 'calibre' set correctly(of course, i am accurate within knowledge i know).

$Traceback (most recent call last): $ File "/home/leepil/OpenRAM-master/compiler/tests/20_sram_1bank_test.py", line 31, in runTest $ self.local_check(a) $ File "/home/leepil/OpenRAM-master/compiler/tests/20_sram_1bank_test.py", line 42, in local_check $ self.assertFalse(calibre.run_drc(a.name, tempgds)) $ File "/home/leepil/OpenRAM-master/compiler/tests/../calibre.py", line 116, in run_drc $ debug.error("Unable to retrieve DRC results file. Is calibre set up?",1) $ File "/home/leepil/OpenRAM-master/compiler/tests/../debug.py", line 24, in error $ sys.exit(return_value) $SystemExit: 1

This error is commonly shown for about 10 tests.

p.s (I tried to solve openram in the course of two months after I wanted to run openram, but I would like to inform you that it was not done. I also saw the caliber related error I showed as I had already seen. Finally, I ask for help if I can not solve it at all. Thank you very much.)

mguthaus commented 6 years ago

Check the OpenRAM temp directory for the output from Calibre. This is discussed in the presentation for how to debug. This is likely a problem running (or getting a license for ( Calibre.

On Aug 22, 2017 19:00, "leepil" notifications@github.com wrote:

That's true! You taght me that " I will not change the code given.". Thx but... A new error occurred. I obviously made 'calibre' set correctly(of course, i am accurate within knowledge i know).

Traceback (most recent call last): File "/home/leepil/OpenRAM-master/compiler/tests/20_sram_1bank_test.py", line 31, in runTest self.local_check(a) File "/home/leepil/OpenRAM-master/compiler/tests/20_sram_1bank_test.py", line 42, in local_check self.assertFalse(calibre.run_drc(a.name, tempgds)) File "/home/leepil/OpenRAM-master/compiler/tests/../calibre.py", line 116, in run_drc debug.error("Unable to retrieve DRC results file. Is calibre set up?",1) File "/home/leepil/OpenRAM-master/compiler/tests/../debug.py", line 24, in error sys.exit(return_value) SystemExit: 1

This error is commonly shown for about 10 tests.

p.s (I tried to solve openram in the course of two months after I wanted to run openram, but I would like to inform you that it was not done. I also saw the caliber related error I showed as I had already seen. Finally, I ask for help if I can not solve it at all. Thank you very much.)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mguthaus/OpenRAM/issues/28#issuecomment-324199582, or mute the thread https://github.com/notifications/unsubscribe-auth/AL35L59fXbJ8-AafVLI5CPsnV3UAr2Hyks5sa4e2gaJpZM4O5tjk .