-
Notifications
You must be signed in to change notification settings - Fork 23
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
Introduce OM to T1 project #495
Conversation
6169a1e
to
7a529e3
Compare
93be2ca
to
249cc30
Compare
}) | ||
} | ||
|
||
def dumpAll(): Unit = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def dumpAll(): Unit = { | |
def dumpOM(): Unit = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the purpose of this function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dump the whole tree of the input instantiated OM object.
omreader/src/Main.scala
Outdated
def run( | ||
@arg(name = "mlirbc-file") mlirbcFile: Option[os.Path], | ||
@arg(name = "class-name") className: String, | ||
@arg(name = "dump-methods") dumpMethods: Flag, | ||
@arg(name = "eval") eval: Option[String], | ||
) = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer API to be as simple as possible, this API is used by doc/PnR/DV guys. We should statically maintain them.
def dumpOM(
@arg(name = "mlirbc-file") mlirbcFile: os.Path,
@arg(name = "class-name") className: String,
): String = ???
def vlen(
@arg(name = "mlirbc-file") mlirbcFile: os.Path,
@arg(name = "class-name") className: String,
): String = ???
def dlen(
@arg(name = "mlirbc-file") mlirbcFile: os.Path,
@arg(name = "class-name") className: String,
): String = ???
mlirbcFile
: just usemlirbcFile
, we generally don't use read from stdin.className
should be automatically detected, users don't need know what Class is, or force it to be fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. I have pushed a commit for it, could you review it again please?
fa36604
to
3d87d85
Compare
omreader/src/Main.scala
Outdated
println(simplyGetT1Reader(mlirbcFile).dlen) | ||
} | ||
|
||
def simplyGetT1Reader(mlirbcFile: os.Path) = OMReader.fromFile(mlirbcFile, "T1Subsystem_Class").t1Reader |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to support both T1_Class
and T1Subsystem_Class
9f09ce2
to
4ae371d
Compare
638f5ca
to
ee38539
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wait for ci
This bump doesn't include the 1.74 version of circt... |
Cc @SharzyL this api is used to handle all metadatas our c header and emu should use it. |
Upstream PR: chipsalliance/chisel#4028