Guest User

Untitled

a guest
Jun 5th, 2020
64
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/v2x/yosys/run.py b/v2x/yosys/run.py
  2. index ef2627e..7e48993 100755
  3. --- a/v2x/yosys/run.py
  4. +++ b/v2x/yosys/run.py
  5. @@ -273,7 +273,7 @@ def get_combinational_sinks(infiles, module, innet):
  6.      innet: Name of input net to find sinks of
  7.      """
  8.      return do_select(
  9. -        infiles, module, "{} %co* o:* %i {} %d".format(innet, innet)
  10. +        infiles, module, "={} %co* =o:* %i ={} %d".format(innet, innet)
  11.      )
  12.  
  13.  
  14. @@ -287,7 +287,7 @@ def list_clocks(infiles, module):
  15.      """
  16.      return do_select(
  17.          infiles, module,
  18. -        "c:* %x:+[CLK]:+[clk]:+[clock]:+[CLOCK] c:* %d x:* %i"
  19. +        "=c:* %x:+[CLK]:+[clk]:+[clock]:+[CLOCK] =c:* %d =x:* %i"
  20.      )
  21.  
  22.  
  23. @@ -302,7 +302,7 @@ def get_clock_assoc_signals(infiles, module, clk):
  24.      """
  25.      return do_select(
  26.          infiles, module,
  27. -        "select -list {} %a %co* %x i:* o:* %u %i a:ASSOC_CLOCK={} %u {} %d".
  28. +        "select -list ={} %a %co* %x =i:* =o:* %u %i =a:ASSOC_CLOCK={} %u ={} %d".
  29.          format(clk, clk, clk)
  30.      )
  31.  
  32. @@ -327,7 +327,7 @@ def get_related_output_for_input(infiles, module, signal):
  33.      clk: Name of clock to find associated signals
  34.      """
  35.      return do_select(
  36. -        infiles, module, "select -list w:*{} %a %co* o:* %i".format(signal)
  37. +        infiles, module, "select -list =w:*{} %a %co* =o:* %i".format(signal)
  38.      )
  39.  
  40.  
  41. @@ -343,6 +343,6 @@ def get_related_inputs_for_input(infiles, module, signal):
  42.      return [
  43.          x for x in do_select(
  44.              infiles, module,
  45. -            "select -list w:*{} %a %co* %x i:* %i".format(signal)
  46. +            "select -list =w:*{} %a %co* %x =i:* %i".format(signal)
  47.          ) if x != signal
  48.      ]
RAW Paste Data