You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This creates a FIRRTL module Baz that contains has an input probe. This will then fail FIRRTL compilation.
This should be creating a non-probe port for any inputs.
This produces the following FIRRTL:
FIRRTL version 4.1.0circuitFoo :%[[
{
"class":"firrtl.transforms.DontTouchAnnotation",
"target":"~Foo|Bar>a"
},
{
"class":"firrtl.transforms.DontTouchAnnotation",
"target":"~Foo|Baz>b"
}
]]
layerA, bind, "A" :
layerVerification, bind, "verification" :
layerAssert, bind, "verification/assert" : layer Assume, bind, "verification/assume" : layer Cover, bind, "verification/cover" : module Bar : output a_probe : Probe<UInt<1>, A> layerblock A : wire a : UInt<1> connect a, UInt<1>(0h0) define a_probe = probe(a) module Baz : input b_bore : Probe<UInt<1>, A> layerblock A : wire b : UInt<1> connect b, read(b_bore) public module Foo : inst bar of Bar inst baz of Baz define baz.b_bore = bar.a_probe
The error produced during FIRRTL compilation is:
Exception in thread "main" circt.stage.phases.Exceptions$FirtoolNonZeroExitCode: /Users/schuylereldridge/Library/Caches/org.chipsalliance.llvm-firtool/1.99.2/bin/firtool returned a non-zero exit code. Note that this version of Chisel (7.0.0-M2+243-4aaefff4-SNAPSHOT) was published against firtool version 1.99.2.
------------------------------------------------------------------------------
ExitCode:
1
STDOUT:
STDERR:
Users/schuylereldridge/repos/github.com/seldridge/scala-snippets/BoringUtils.scala:32:56: error: input probe not allowed
The text was updated successfully, but these errors were encountered:
There's a more fundamental problem here where the input port would need to be colored to compile this and this isn't something that we intend to support. (There are alternative ways to represent this like instantiating Baz under a layer which would work, however.)
Fix a bug in BoringUtils where it could create input probes when tapping a
probe.
Fixes#4576.
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
Consider the following:
This creates a FIRRTL module
Baz
that contains has an input probe. This will then fail FIRRTL compilation.This should be creating a non-probe port for any inputs.
This produces the following FIRRTL:
The error produced during FIRRTL compilation is:
The text was updated successfully, but these errors were encountered: