Debugging Copilot specs #639
Unanswered
ivanperez-keera
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Related to a conversation we just had with @RyanGlScott , if we supported string types in Copilot we might be able to just do: temperature :: Stream Int8
temperature = [0] ++ (temperature * 2)
spec = do
trigger "printf" true [ arg "Message is %d\n", arg temperature ] |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A common scenario we run into in Copilot is the need to debug a specification. While we can use
observer
in the interpreter, we cannot do the same in C or bluespec.To debug in those cases, we end up having to create additional triggers that are just wrappers around
printf
or similar platform-specific functions.Prompted by work that @sukhmankkahlon and @kavehz-nasa, as well as other prior discussions, we think we might want to give
observer
meaning also in C or bluespec. Note that not all platforms will use the same functions for debugging: in some cases you want to useprintf
, in othersOS_print
, in othersSerial.print
, etc. The specific function that would need to be used might change.Any thoughts on this or how that interface should be designed?
Beta Was this translation helpful? Give feedback.
All reactions