Skip to content

Core Module

Core Module.

ACoreMod

Bases: BaseMod

Intermediate Module Hierarchy.

See BaseMod for arguments, attributes and details.

A [ACoreMod][uart.uart.UartCoreMod] should be use to create intermediate module hierarchies. [ACoreMod][uart.uart.UartCoreMod] do not have a _build method. They have to be built by the parent module.

The source code files are typically generated/located next to the parent module of core module. Remember to set the gen attribute accordingly to control the file generation. Also the module name is based on the parent module and extended by the instance name. A [ACoreMod][uart.uart.UartCoreMod] can have a Mako template.

Attributes:

Name Type Description
filelists ModFileLists

File Lists.

parent BaseMod

parent module.

filelists class-attribute

filelists = ()

File Lists.

modname property

modname

Module Name.

libname property

libname

Library Name.

topmodname property

topmodname

Top Module Name.

is_tb property

is_tb

Determine if module belongs to Testbench or Design.