Params plugin: Change command name to getparam Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
diff --git a/params-plugin/params.cc b/params-plugin/params.cc index 19cebfb..76f4a37 100644 --- a/params-plugin/params.cc +++ b/params-plugin/params.cc
@@ -32,7 +32,7 @@ } struct GetParam : public Pass { - GetParam() : Pass("get_param", "get parameter on object") { + GetParam() : Pass("getparam", "get parameter on object") { register_in_tcl_interpreter(pass_name); } @@ -40,7 +40,7 @@ { // |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---| log("\n"); - log(" get_param name selection\n"); + log(" getparam name selection\n"); log("\n"); log("Get the given parameter on the selected object. \n"); log("\n");
diff --git a/params-plugin/tests/pll/pll.tcl b/params-plugin/tests/pll/pll.tcl index c2238d1..0396236 100644 --- a/params-plugin/tests/pll/pll.tcl +++ b/params-plugin/tests/pll/pll.tcl
@@ -7,10 +7,10 @@ read_verilog -specify -lib -D_EXPLICIT_CARRY +/xilinx/cells_sim.v read_verilog -lib +/xilinx/cells_xtra.v hierarchy -check -auto-top -set phase [get_param CLKOUT2_PHASE top/PLLE2_ADV] +set phase [getparam CLKOUT2_PHASE top/PLLE2_ADV] puts "Phase before: $phase" setparam -set CLKOUT2_PHASE [expr $phase * 1000] top/PLLE2_ADV -puts "Phase after: [get_param CLKOUT2_PHASE top/PLLE2_ADV]" +puts "Phase after: [getparam CLKOUT2_PHASE top/PLLE2_ADV]" # Start flow after library reading synth_xilinx -vpr -flatten -abc9 -nosrl -noclkbuf -nodsp -iopad -run prepare:check