pulp-platform / redmule

Other
32 stars 12 forks source link

WIP: Reduced configuration (with HW assist) for Snitch-based systems #8

Closed FrancescoConti closed 8 months ago

FrancescoConti commented 1 year ago

I prepared a development branch 1) using REQ-RSP interface (for Snitch), 2) with a reduced configuration interface, i.e., more HW assistance from the controller. It is plugged in as an additional redmule_config_decoder module that takes the reduced register set and "translates" it into the previously used one. Of course, a cleaner solution is to replace the old one altogether - but in the mean time, this already works on a few tests.

New register set:

m_size          = reg[0][15:0]
k_size          = reg[0][31:16]
n_size          = reg[1][15:0]
gemm_ops        = reg[1][18:16]
gemm_input_fmt  = reg[1][20:19]
gemm_output_fmt = reg[1][22:21]
x_addr          = reg[2]
w_addr          = reg[3]
y_addr          = reg[4]
z_addr          = reg[5]

Here the development branch: https://github.com/pulp-platform/redmule/tree/reduced-cfg

yvantor commented 8 months ago

Closing this as it has been implemented in the core complex PR with the introduction of the automatic tiler.