aboutsummaryrefslogtreecommitdiffstats
path: root/passes/memory/memory.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-03-01 10:17:35 +0100
committerClifford Wolf <clifford@clifford.at>2013-03-01 10:17:35 +0100
commitf3a849512f2c7def98fcfa56de74d8a6bdc8b8fc (patch)
tree59002bcc880a29a5b985fd9d91796a22b67e26d2 /passes/memory/memory.cc
parentf952309c81afcb467eb367ec519ec12876fb0983 (diff)
downloadyosys-f3a849512f2c7def98fcfa56de74d8a6bdc8b8fc.tar.gz
yosys-f3a849512f2c7def98fcfa56de74d8a6bdc8b8fc.tar.bz2
yosys-f3a849512f2c7def98fcfa56de74d8a6bdc8b8fc.zip
Added help messages to memory_* passes
Diffstat (limited to 'passes/memory/memory.cc')
-rw-r--r--passes/memory/memory.cc17
1 files changed, 16 insertions, 1 deletions
diff --git a/passes/memory/memory.cc b/passes/memory/memory.cc
index c5533b630..79f0770b8 100644
--- a/passes/memory/memory.cc
+++ b/passes/memory/memory.cc
@@ -23,7 +23,22 @@
#include <stdio.h>
struct MemoryPass : public Pass {
- MemoryPass() : Pass("memory") { }
+ MemoryPass() : Pass("memory", "translate memories to basic cells") { }
+ virtual void help()
+ {
+ // |---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|---v---|
+ log("\n");
+ log(" memory [selection]\n");
+ log("\n");
+ log("This pass calls all the other memory_* passes in a useful order:\n");
+ log("\n");
+ log(" memory_dff\n");
+ log(" memory_collect\n");
+ log(" memory_map\n");
+ log("\n");
+ log("This converts memories to word-wide DFFs and address decoders.\n");
+ log("\n");
+ }
virtual void execute(std::vector<std::string> args, RTLIL::Design *design)
{
log_header("Executing MEMORY pass.\n");