SiLab-Bonn / basil

A data acquisition framework in Python and Verilog.
BSD 3-Clause "New" or "Revised" License
40 stars 29 forks source link

Firmware compilation error with always_latch #219

Closed cbespin closed 6 months ago

cbespin commented 7 months ago

Adding always_latch in CG_MOD_neg.v and CG_MOD_pos.v throws errors when compiling existing projects with Vivado. Presumably, because it is not a standard verilog keyword.

themperek commented 7 months ago

It is standard: https://fpga.mit.edu/6205/_static/F23/documentation/1800-2017.pdf ;-)

Try changing names to CG_MOD_neg.sv and CG_MOD_pos.sv (not sure about it).

cbespin commented 7 months ago

This is the SystemVerilog standard, not a 1364-X one, right? I guess it will work as .sv, but will nevertheless break existing projects where the .v file is used as source.