<commit_before>#=======================================================================
# verilog_behavioral.py
#=======================================================================

import ast, _ast
import collections
import inspect
import StringIO
import textwrap

from ..ast_helpers   import get_method_ast, print_simple_ast
from ...model.signals import InPort, OutPort

# TODO: HACKY
from verilog_structural import signal_to_str
from exceptions         import VerilogTranslationError

import visitors

#-----------------------------------------------------------------------
# translate_logic_blocks
#-----------------------------------------------------------------------
def translate_logic_blocks( model ):

  blocks = ( model.get_posedge_clk_blocks()
           + model.get_combinational_blocks()
           + model.get_tick_blocks() )

  code  = ''

  # TODO: remove regs logic, move to own visitor that visits _ast.Store
  #       nodes!
  regs   = set()
  ints   = set()
  params = set()
  arrays = set()<commit_msg>[pymtl.tools.trans] collect only posedge_clk/tick_rtl blocks<commit_after>#=======================================================================
# verilog_behavioral.py
#=======================================================================

import ast, _ast
import collections
import inspect
import StringIO
import textwrap

from ..ast_helpers   import get_method_ast, print_simple_ast
from ...model.signals import InPort, OutPort

# TODO: HACKY
from verilog_structural import signal_to_str
from exceptions         import VerilogTranslationError

import visitors

#-----------------------------------------------------------------------
# translate_logic_blocks
#-----------------------------------------------------------------------
def translate_logic_blocks( model ):

  blocks = ( model.get_posedge_clk_blocks()
           + model.get_combinational_blocks() )

  code  = ''

  # TODO: remove regs logic, move to own visitor that visits _ast.Store
  #       nodes!
  regs   = set()
  ints   = set()
  params = set()
  arrays = set()
{'fraction_non_alphanumeric': 0.3318840579710145, 'fraction_numerical': 0.0, 'mean_word_length': 2.4516666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1206435', 'n_tokens_mistral': 518, 'n_tokens_neox': 481, 'n_words': 130}