[myhdl-list] Library of components in seperate folders
Brought to you by:
jandecaluwe
|
From: George P. <ge...@ga...> - 2005-12-16 05:33:49
|
Hi all,
I'd like to have a directory structure similar to the diagram below.
I'd like to build a component library where each component and its unit
test reside in its own directory. From outside the library directory
I'd like to be able to import components into projects that integrate
the various library components. (eg. computer.py would use the fifo,
ram, and uart primitives).
Can this be done with python? If so, what is a good, clean, and flexible
way to accomplish this? I'd like to avoid specifying any kind of path
name in the .py files, if possible.
myhdl_work/
component_library/
fifo/
fifo.py
fifo_ut.py
readme.txt
ram/
ram.py
ram_ut.py
readme.txt
uart/
uart.py
uart_ut.py
readme.txt
projects/
computer/
computer.py
readme.txt
Thanks,
George
|