Is it possible to do formal verification with Chisel3 HDL language? If yes, is there an open-source software to do that ? I know that we can do verilog formal verification with Yosys, but with chisel ?
Asked
Active
Viewed 1,027 times
4 Answers
1
There is a chisel package named chisel-formal now.
import chisel3.formal._
This extends Module with trait named Formal.
class MyModule extends Module with Formal {
//...
past(io.Mwrite, 1) (pMwrite => {
when(io.Mwrite === true.B) {
assert(pMwrite === false.B)
}
})
cover(countreg === 10.U)
//...
}
That allow to use assert(), assume(), cover(), past(), ... functions.
Full howto is given on github repository.

FabienM
- 3,421
- 23
- 45