We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
From stackoverflow question it seems like sign extension not working consistently between interpreter vs verilator or treadle.
Code
import chisel3.iotesters.{ChiselFlatSpec, Driver, PeekPokeTester} import chisel3._ class TestTesterUnit(c: Test) extends PeekPokeTester(c) { val value = 31 poke(c.io.a, value) poke(c.io.b, 1) step(1) expect(c.io.out, value) } class TestTester extends ChiselFlatSpec { for (backendName <- backends) { "Test" should s"should sign-extended AND operation (with $backendName)" in { Driver(() => new Test, backendName) { c => new TestTesterUnit(c) } should be (true) } } } class Test extends Module { val io = IO(new Bundle { val a = Input(SInt(32.W)) val b = Input(SInt(1.W)) val out = Output(SInt(32.W)) }) io.out := io.a & io.b }
The text was updated successfully, but these errors were encountered:
chick
No branches or pull requests
From stackoverflow question it seems like sign extension not working consistently between interpreter vs verilator or treadle.
Code
The text was updated successfully, but these errors were encountered: