mirror of https://github.com/YosysHQ/yosys.git
cellhelp: Split gate-level and word-level cells
This commit is contained in:
parent
1a4ada40fe
commit
d629aa6bf1
4
Makefile
4
Makefile
|
@ -986,7 +986,7 @@ docs/source/cmd/abc.rst: $(TARGETS) $(EXTRA_TARGETS)
|
||||||
$(Q) cd temp && ./../$(PROGRAM_PREFIX)yosys -p 'help -write-rst-command-reference-manual'
|
$(Q) cd temp && ./../$(PROGRAM_PREFIX)yosys -p 'help -write-rst-command-reference-manual'
|
||||||
$(Q) rsync -rc temp/docs/source/cmd docs/source
|
$(Q) rsync -rc temp/docs/source/cmd docs/source
|
||||||
$(Q) rm -rf temp
|
$(Q) rm -rf temp
|
||||||
docs/source/cell/add.rst: $(TARGETS) $(EXTRA_TARGETS)
|
docs/source/cell/word_add.rst: $(TARGETS) $(EXTRA_TARGETS)
|
||||||
$(Q) mkdir -p docs/source/cell
|
$(Q) mkdir -p docs/source/cell
|
||||||
$(Q) mkdir -p temp/docs/source/cell
|
$(Q) mkdir -p temp/docs/source/cell
|
||||||
$(Q) cd temp && ./../$(PROGRAM_PREFIX)yosys -p 'help -write-rst-cells-manual'
|
$(Q) cd temp && ./../$(PROGRAM_PREFIX)yosys -p 'help -write-rst-cells-manual'
|
||||||
|
@ -1034,7 +1034,7 @@ docs/reqs:
|
||||||
$(Q) $(MAKE) -C docs reqs
|
$(Q) $(MAKE) -C docs reqs
|
||||||
|
|
||||||
.PHONY: docs/prep
|
.PHONY: docs/prep
|
||||||
docs/prep: docs/source/cmd/abc.rst docs/gen_examples docs/gen_images docs/guidelines docs/usage
|
docs/prep: docs/source/cmd/abc.rst docs/source/cell/word_add.rst docs/gen_examples docs/gen_images docs/guidelines docs/usage
|
||||||
|
|
||||||
DOC_TARGET ?= html
|
DOC_TARGET ?= html
|
||||||
docs: docs/prep
|
docs: docs/prep
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
Gate-level cells
|
||||||
|
----------------
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:caption: Gate-level cells
|
||||||
|
:maxdepth: 1
|
||||||
|
:glob:
|
||||||
|
|
||||||
|
/cell/gate_*
|
|
@ -5,8 +5,9 @@ Internal cell reference
|
||||||
================================================================================
|
================================================================================
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:caption: Internal cell reference
|
:caption: Internal cell reference
|
||||||
:maxdepth: 1
|
:maxdepth: 2
|
||||||
:glob:
|
:glob:
|
||||||
|
|
||||||
/cell/*
|
cell_word
|
||||||
|
cell_gate
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
Word-level cells
|
||||||
|
----------------
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:caption: Word-level cells
|
||||||
|
:maxdepth: 1
|
||||||
|
:glob:
|
||||||
|
|
||||||
|
/cell/word_*
|
|
@ -751,7 +751,10 @@ struct SimHelper {
|
||||||
string name;
|
string name;
|
||||||
inline string filesafe_name() {
|
inline string filesafe_name() {
|
||||||
if (name.at(0) == '$')
|
if (name.at(0) == '$')
|
||||||
return name.substr(1);
|
if (name.at(1) == '_')
|
||||||
|
return "gate" + name.substr(1);
|
||||||
|
else
|
||||||
|
return "word_" + name.substr(1);
|
||||||
else
|
else
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue