Perform calculations on tabulated results and print the results in tabulated form
-1
votes
1
answer
62
views
I have a report which displays the clock periods along with the clock names and duty cycle.
Now, I would like to use
tcl
or awk
or perl
to make it display with clock period interms of freq and the duty cycle in percentage (%).
Which is the best way and how do I do it?
****************************************
Report : clock
Design : abc
Version: some version
Date : xxx
****************************************
Attributes:
p - Propagated clock
G - Generated clock
I - Inactive clock
Clock Period Waveform Attrs Sources
-----------------------------------------------------------------------
axi_ACLK 1.2500 {0.0000 0.6250} {axi_ACLK}
xyz
1.2500 {0.0000 0.6250} G {abc/xyz}
I want the output displayed something like this(please note that xyz period is on the next line):
Clock Period Waveform Attrs Sources
-----------------------------------------------------------------------
axi_ACLK 800 50% {axi_ACLK}
xyz
800 50% G {abc/xyz}
Thanks
Ravi
Asked by aravi
(1 rep)
Aug 18, 2020, 12:25 PM
Last activity: Aug 18, 2020, 03:55 PM
Last activity: Aug 18, 2020, 03:55 PM