Origen interactive mode - using basic linux grep/find

43 views Asked by At

Is there a way to add/concatenate/pipe a grep command when searching for registers in the origen interactive mode.

eg. If i want to look at registers say, I do > dut.mainregs and it returns 100 registers. Is there a way to do something like >dut.mainregs('grep regname') or >dut.mainregs | grep regname, etc?

Or is there any other way to search for some string?

1

There are 1 answers

2
rchitect-of-info On

At the very end of this doc you will see an example:

# Iterate over all registers matching a regular expression
# Ex 1: Only ADC cfg registers (:adc0_cfg, :adc1_cfg)
dut.regs('/acd\d_cfg/').each do |r|
  # do something with register r
end