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/dff1and anothertop/dff2;select top/dff1 %co* top/dff2 %ci* %iwill select everything in the output cone oftop/dff1and 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 calltorderwith that selection statement, i.e.torder top/dff1 %co* top/dff2 %ci* %i.