2 from fusesoc
.capi2
.generator
import Generator
7 class LiteEthGenerator(Generator
):
9 board
= self
.config
.get('board')
11 # Collect a bunch of directory path
12 script_dir
= os
.path
.dirname(sys
.argv
[0])
13 gen_dir
= os
.path
.join(script_dir
, "generated", board
)
15 print("Adding LiteEth for board... ", board
)
17 # Add files to fusesoc
19 f
= os
.path
.join(gen_dir
, "liteeth_core.v")
20 files
.append({f
: {'file_type' : 'verilogSource'}})
24 g
= LiteEthGenerator()