<commit_before><commit_msg>creation of wickerman in examples<commit_after>import sys
sys.path.append("..") # needed only if not installed
from pyrtl import *

def wickerman_core( bitwidth, addrwidth ):
    imem = MemBlock(bitwidth, addrwidth, 'imem')
    dmem = MemBlock(bitwidth, addrwidth, 'dmem')
    regfile = MemBlock(bitwidth, 5, 'imem')
    pc = Register(addrwidth,'pc')
                
                
wickerman_core(5,5)
                
# Simulation of the core
sim_trace = SimulationTrace()
sim = Simulation( tracer=sim_trace )
for i in xrange(15):
    sim.step( {} )
sim_trace.render_trace()
{'fraction_non_alphanumeric': 0.1140495867768595, 'fraction_numerical': 0.008264462809917356, 'mean_word_length': 3.3285714285714287, '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': '4400890', 'n_tokens_mistral': 199, 'n_tokens_neox': 192, 'n_words': 49}