diff options
author | N. Engelhardt <nak@symbioticeda.com> | 2019-12-12 20:51:59 +0100 |
---|---|---|
committer | N. Engelhardt <nak@symbioticeda.com> | 2019-12-12 20:51:59 +0100 |
commit | 1187e91c2f2684cb204c555cb3d53b68c7381c40 (patch) | |
tree | dad1da30948b1caa7fc4a0a5c4f214eea9199413 /passes/cmds | |
parent | 4c7cda1c8b8a782da90f6bbd00e0a98aa1817f6e (diff) | |
download | yosys-1187e91c2f2684cb204c555cb3d53b68c7381c40.tar.gz yosys-1187e91c2f2684cb204c555cb3d53b68c7381c40.tar.bz2 yosys-1187e91c2f2684cb204c555cb3d53b68c7381c40.zip |
add test and make help message more verbose
Diffstat (limited to 'passes/cmds')
-rw-r--r-- | passes/cmds/scratchpad.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/passes/cmds/scratchpad.cc b/passes/cmds/scratchpad.cc index 7d53c8a4f..c11c41caf 100644 --- a/passes/cmds/scratchpad.cc +++ b/passes/cmds/scratchpad.cc @@ -2,6 +2,7 @@ * yosys -- Yosys Open SYnthesis Suite * * Copyright (C) 2012 Clifford Wolf <clifford@clifford.at> + * 2019 Nina Engelhardt <nak@symbioticeda.com> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -30,14 +31,18 @@ struct ScratchpadPass : public Pass { { // |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---| log("\n"); - log(" scratchpad [ -get id | -set id val | -unset id | -copy id1 id2 ]\n"); + log(" scratchpad [options]\n"); log("\n"); log("This pass allows to read and modify values from the scratchpad of the current\n"); log("design. Options:\n"); log(" -get <identifier>\n"); + log(" print the value saved in the scratchpad under the given identifier\n"); log(" -set <identifier> <value>\n"); + log(" save the given value in the scratchpad under the given identifier\n"); log(" -unset <identifier>\n"); + log(" remove the entry for the given identifier from the scratchpad\n"); log(" -copy <identifier_from> <identifier_to>\n"); + log(" copy the value of the first identifier to the second identifier\n"); log("The identifier may not contain whitespace. By convention, it is usually prefixed\n"); log("by the name of the pass that uses it, e.g. 'opt.did_something'. If the value\n"); log("contains whitespace, it must be enclosed in double quotes.\n"); |