SNAP enhancements
Closed this issue · 6 comments
Few ideas to make life easier:
- Can we rename snap/actions to snap/examples since application and actions are now under this directory?
- Can we have defined 0x1=cpu and 0x0=fpga so that SNAP_CONFIG=cpu will be more explicit than SNAP_CONFIG=0x1?
- Can all tools checking or displaying Action Types (snap_maint, make snap_env) read the Type from the ActionTypes.md file rather than coding it in the tool so that adding a new type is immediately reflected by tools ?
Idea 3:
agree. I think we can create a C Header file like
struct ven_tab mytab[] = {
0x10140000, "IBM Example",
0x10140001, "IBM Example 1",
0x10140002, "IBM Example 2",
0x10140003, "IBM Example 3",
0x10130Ab0, "xx Example 1",
0x10150cd0, "xy Example 1",
0, "exit",
};
this can be included in snap maint at compile time.
idea 2:
agree. I also suggest to change the name "simulation_enabled()" in snap.c. This is not simulation, this is software action (SNAP_CONFIG=cpu) used. Add @fhaverkamp
https://github.com/open-power/snap/blob/master/software/lib/snap.c
Hallo,
when running snap-env from scratch, if you make a mistake, you can't recover situation as it seems .snap-env.sh, once created is read but is not modified.
Process to duplicate issue :
new linux account on supervessel
git clone snap dir
setup variables :
export xilinx_root=/opt/Xilinx <<=== this one should be in the readme.md file
source $xilinx_root/Vivado/2016.4/settings64.sh
export XILINXD_LICENSE_FILE=2100@cloudsynthesismaster
export PSL_DCP=/mnt/cloud-data/CAPI_PSL_Checkpoints/KU3_Checkpoint/b_route_design.dcp
make snap-env
get a msg saying no pslse dir is set
As I forecast to use simulation, I want this to be properly set.
git clone pslse dir
export PSLSE_ROOT=/home/opuser/pslse
make set-env
MSG : "Path to PSLSE not set properly" !
although "echo $PSLSE_ROOT" provides : "/home/opuser/pslse"
from here, you can't progress unless you erase .snap-env.sh
Suggestion : Either inform/suggest on what to do or reread all variable ?
Danke sehr.
Alexandre
Pull request #471 did solve idea 2 but forgot to implement Lu Yong's change on idea 2 - will do that later
Summarizing items discussed in this issue:
- Can we rename snap/actions to snap/examples since application and actions are now under this directory? WON'T FIX
- Can we have defined 0x1=cpu and 0x0=fpga so that SNAP_CONFIG=cpu will be more explicit than SNAP_CONFIG=0x1? DONE
- Can all tools checking or displaying Action Types (snap_maint, make snap_env) read the Type from the ActionTypes.md file rather than coding it in the tool so that adding a new type is immediately reflected by tools ? DONE
- I also suggest to change the name "simulation_enabled()" in snap.c. This is not simulation, this is software action (SNAP_CONFIG=cpu) used. CORRECTED in pull request #623
- snap_env configuration mistake DONE
Code implemented. Closing issue