Skip to content

Commit 730105c

Browse files
committed
https://github.com/SpinalHDL/SpinalHDL/issues/1795
Add some doc about AreaObject
1 parent 4cdfdf7 commit 730105c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

source/SpinalHDL/Structuring/area.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,16 @@ For this kind of case you can use an ``Area`` to define a group of signals/logic
4242
4343
.. note::
4444
\ :ref:`ClockingArea <clock_domain>` is a special kind of ``Area`` that allows you to define chunks of hardware which use a given ``ClockDomain``\
45+
46+
47+
AreaObject
48+
==========
49+
50+
This is a special kind of Area which is used to provide names to non-hardware thing. This is for instance used to provide names to pipelining keys :
51+
52+
.. code-block:: scala
53+
54+
object Fetch extends AreaObject {
55+
val PC = Payload(UInt(64 bits))// PC.getName() will give Fetch_PC
56+
}
57+

0 commit comments

Comments
 (0)