Parsing verilog design for circuit path #4999
-
Is there a straightforward way of parsing the design for an arbitrary flop-to-flop gate order? I saw |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You can use |
Beta Was this translation helpful? Give feedback.
You can use
%ci*
and%co*
to get the input and output cones respectively, and find the intersection with%i
. e.g. you have some floptop/dff1
and anothertop/dff2
;select top/dff1 %co* top/dff2 %ci* %i
will select everything in the output cone oftop/dff1
and everything in the input cone oftop/dff2
, then take the intersection giving just the elements in between. If you want them in topological order you should be able to calltorder
with that selection statement, i.e.torder top/dff1 %co* top/dff2 %ci* %i
.