Skip to content

Support bitwise operations for sc_bv data types #88

Description

@plotnerb

SystemVerilog synthesis seems to fail when attempting bitwise operations on sc_bv data types. For example, if a SC_MODULE has the following signals declared:

sc_signal<sc_bv<32>> a, b, c;

and attempts to perform the following operation within a SC_METHOD:

c = a.read() & b.read();

the SystemC executable will build successfully, however the SystemVerilog synthesis will fail with the message:

error: Type is not supported : 'sc_dt::sc_bv<32>'

This is unexpected, as the ICSC documentation lists sc_bv as a supported data type. Are there restrictions to what operations are supported on sc_bv types?

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