Menu

Upper case in path to file in digital source

Help
George
2024-04-16
2024-04-18
  • George

    George - 2024-04-16

    Hello!
    I faced with issue: if I have upper case in path to file in XSPICE digital source, ngspice doesn't read the
    the file, for example: /home/george/MDPSBLib/combinational_logic_test.txt
    and I got the message:

    Instance: a.x34.a1   Message: cannot open file /home/george/mdpsblib/combinational_logic_test.txt
    
    Instance: a.x34.a1   Message: 
    ERROR **
     D_SOURCE: source.in file was not read successfully. 
    

    If I place file in /home/george, it reads great. I think the issue is in upper case, because in error message it make all case lower.
    Thank you in advance!

     
  • dick freebird

    dick freebird - 2024-04-16

    cd /home/george
    ln -s ./MDPSBLib mdpsblib

    ???

     
    • George

      George - 2024-04-17

      Yes, but it is a workaround that sometimes is not plausible to use...so this behaviour could be considered as a bug, no?

       
  • Giles Atkinson

    Giles Atkinson - 2024-04-17

    l agree that it is a bug, similar to the logged #290 and #424. As more syntax was added the forcing of consistent case and stripping of quotes and white space became too aggressive. My guess is that it should be moved to the sub-parsers for different device lines, where there is more context. But a fix would be long and complex, with little reward for the developer and a very high potential for new, subtler bugs.

     
    • George

      George - 2024-04-17

      Hello, got it, thank you for clarification

       

Log in to post a comment.