lnls-dig / infra-cores

Repository containing infrastructure cores for gateware development
GNU Lesser General Public License v3.0
1 stars 2 forks source link

[wb_acq_core] reserved bits in use by HALCS aren't documented #9

Open ericonr opened 2 years ago

ericonr commented 2 years ago

As seen in https://github.com/lnls-dig/halcs/blob/ae8a6a18c68cfed681517e12f7bf2d9a380d3c74/src/sm_io/modules/acq/sm_io_acq_exp.c#L39-L44

These bits are set as "reserved" in the '.wb' file, but are in fact used by the gateware to inform halcs about relevant conditions.

augustofg commented 1 year ago

Actually, there are even more reserved bits used by the wb_acq_core: https://github.com/lnls-dig/infra-cores/blob/a1b7144d5148b4ff234316f4ee08b82add3cd98d/modules/wishbone/wb_acq_core/wb_acq_core.vhd#L590-L596

I'll update the wbgen file to include these.

augustofg commented 1 year ago

I couldn't guess exactly what all these reserved bits mean, but at least they are not marked as 'reserved' anymore here https://github.com/lnls-dig/infra-cores/pull/16. We should check if everything works with halcs before merging.