<@U020J2W6Q84> this has stopped working in a `conf...
# openlane
a
@donn this has stopped working in a `config.tcl`:
Copy code
set script_dir [file dirname [file normalize [info script]]]
...
set ::env(VERILOG_FILES) "\
        $script_dir/src/multiply_add_64x64.v"
If I add this to the top:
Copy code
puts [file dirname [file normalize [info script]]]
It seems to suggest we are sourcing the file twice (I see it output twice):
Copy code
caravel_user_project/openlane/multiply_add_64x64
caravel_user_project/openlane/multiply_add_64x64/runs/22_07_26_17_55
Are we sourcing it twice for a reason?
Copy code
if { $ext == ".tcl" } {
        # for trusted end-users only
        exec cp $config_file $config_in_path
        source $config_file                      <----- here
    } elseif { $ext == ".json" } {
        set cmd "python3 $::env(SCRIPTS_DIR)/config/to_tcl.py from-json\
            --pdk $::env(PDK) --scl $::env(STD_CELL_LIBRARY)\
            --output $config_in_path\
            --design-dir $::env(DESIGN_DIR)\
            $config_file
        "

        if { [catch {exec {*}$cmd} errmsg] } {
            puts_err $errmsg
            exit -1
        }

    } else {
        puts_err "$config_file error: unsupported extension '$ext'"
        return -code error
    }
    source $config_in_path                      <----- again, but from the run dir
v
a
Thanks @Vijayan Krishnan I missed that change
d
@Anton Blanchard As Vijayan said- but also thank you, I didn't know we were sourcing twice.
👍 1