Skip to content

Make .bs and .bsv support all the same pragmas, particularly verilog synthesis pragmas #224

@bpfoley

Description

@bpfoley

The BSV pragmas are defined in the BSV parser in Parser.BSV.CVParser.attribute2modpprop:
https://github.com/B-Lang-org/bsc/blob/master/src/comp/Parser/BSV/CVParser.lhs#L5067

The BS pragmas are more limited and are defined in Parser.Classic.CParser.pPragma:
https://github.com/B-Lang-org/bsc/blob/master/src/comp/Parser/Classic/CParser.hs#L604

These should be unified.

Clqssic supports the interface renaming pragmas, but these aren't documented.

Notably, clocked_by, reset_by, default_clock_osc, default_reset and default_clock_gate are missing from Classic.

Attached is an example test case.
ClassicPragmas.bs.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions