Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INIT of LUT1 must be 2 bit ? #4826

Open
lehaifeng000 opened this issue Dec 23, 2024 · 1 comment
Open

INIT of LUT1 must be 2 bit ? #4826

lehaifeng000 opened this issue Dec 23, 2024 · 1 comment
Labels
pending-verification This issue is pending verification and/or reproduction

Comments

@lehaifeng000
Copy link

Version

0.47

On which OS did this happen?

Linux

Reproduction Steps

top.v

module top(
    output  led 
);
    LUT1 #(
        .INIT(1'b1)
    ) lut1_inst (
        .I0(1'b1),
        .O(led)
    );

endmodule

command: yosys -p "synth_xilinx -flatten -nowidelut -arch xc7 -top top; json -o synth.json top;" top.v

Expected Behavior

synth pass

Actual Behavior

2.49. Executing OPT_LUT_INS pass (discard unused LUT inputs).
terminate called after throwing an instance of 'std::out_of_range'
what(): vector::_M_range_check: __n (which is 1) >= this->size() (which is 1)

@lehaifeng000 lehaifeng000 added the pending-verification This issue is pending verification and/or reproduction label Dec 23, 2024
@lehaifeng000
Copy link
Author

if the INIT is set .INIT(2'b1), it will pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-verification This issue is pending verification and/or reproduction
Projects
None yet
Development

No branches or pull requests

1 participant