compiler/tablasim.py
def init_namespace():
    """ Fills in namespace buffer with initial data. 
    This function won't be needed once memory interface instructions are working.
    It fills in dummy data for linear regression.
    """
    print("initializing pe namespace...", end='')
    pe0 = pe_objects[0]
    pe1 = pe_objects[1]
    pe2 = pe_objects[2]
    pe3 = pe_objects[3]

    pe0.nw.insert(0, Ns_entry(data=1))
    pe0.nd.insert(0, Ns_entry(data=3))
    pe1.nw.insert(0, Ns_entry(data=2))
    pe1.nd.insert(0, Ns_entry(data=4))
    pe2.nw.insert(0, Ns_entry(data=3))
    pe2.nd.insert(0, Ns_entry(data=5))
    pe3.nd.insert(0, Ns_entry(data=4))

    pe0.nw.insert(1, Ns_entry(data=1))
    pe0.nd.insert(1, Ns_entry(data=3))
    pe1.nw.insert(1, Ns_entry(data=2))
    pe1.nd.insert(1, Ns_entry(data=4))
    pe2.nw.insert(1, Ns_entry(data=3))
    pe2.nd.insert(1, Ns_entry(data=5))

    pe0.nm.insert(0, Ns_entry(data=1))
    pe1.nm.insert(0, Ns_entry(data=1))
    pe2.nm.insert(0, Ns_entry(data=1))
    print("done")
 Fills in namespace buffer with initial data. 
    This function won't be needed once memory interface instructions are working.
    It fills in dummy data for linear regression.
    
Fills in namespace buffer with initial data.
This function won't be needed once memory interface instructions are working.
It fills in dummy data for linear regression.
Fills in namespace buffer with initial data . This function won ' t be needed once memory interface instructions are working . It fills in dummy data for linear regression .
def init_namespace():
    print("initializing pe namespace...", end='')
    pe0 = pe_objects[0]
    pe1 = pe_objects[1]
    pe2 = pe_objects[2]
    pe3 = pe_objects[3]
    pe0.nw.insert(0, Ns_entry(data=1))
    pe0.nd.insert(0, Ns_entry(data=3))
    pe1.nw.insert(0, Ns_entry(data=2))
    pe1.nd.insert(0, Ns_entry(data=4))
    pe2.nw.insert(0, Ns_entry(data=3))
    pe2.nd.insert(0, Ns_entry(data=5))
    pe3.nd.insert(0, Ns_entry(data=4))
    pe0.nw.insert(1, Ns_entry(data=1))
    pe0.nd.insert(1, Ns_entry(data=3))
    pe1.nw.insert(1, Ns_entry(data=2))
    pe1.nd.insert(1, Ns_entry(data=4))
    pe2.nw.insert(1, Ns_entry(data=3))
    pe2.nd.insert(1, Ns_entry(data=5))
    pe0.nm.insert(0, Ns_entry(data=1))
    pe1.nm.insert(0, Ns_entry(data=1))
    pe2.nm.insert(0, Ns_entry(data=1))
    print("done")
def init_namespace ( ) : print ( "initializing pe namespace..." , end = '' ) pe0 = pe_objects [ 0 ] pe1 = pe_objects [ 1 ] pe2 = pe_objects [ 2 ] pe3 = pe_objects [ 3 ] pe0 . nw . insert ( 0 , Ns_entry ( data = 1 ) ) pe0 . nd . insert ( 0 , Ns_entry ( data = 3 ) ) pe1 . nw . insert ( 0 , Ns_entry ( data = 2 ) ) pe1 . nd . insert ( 0 , Ns_entry ( data = 4 ) ) pe2 . nw . insert ( 0 , Ns_entry ( data = 3 ) ) pe2 . nd . insert ( 0 , Ns_entry ( data = 5 ) ) pe3 . nd . insert ( 0 , Ns_entry ( data = 4 ) ) pe0 . nw . insert ( 1 , Ns_entry ( data = 1 ) ) pe0 . nd . insert ( 1 , Ns_entry ( data = 3 ) ) pe1 . nw . insert ( 1 , Ns_entry ( data = 2 ) ) pe1 . nd . insert ( 1 , Ns_entry ( data = 4 ) ) pe2 . nw . insert ( 1 , Ns_entry ( data = 3 ) ) pe2 . nd . insert ( 1 , Ns_entry ( data = 5 ) ) pe0 . nm . insert ( 0 , Ns_entry ( data = 1 ) ) pe1 . nm . insert ( 0 , Ns_entry ( data = 1 ) ) pe2 . nm . insert ( 0 , Ns_entry ( data = 1 ) ) print ( "done" )
Fills in namespace buffer with initial data.
Fills in namespace buffer with initial data .
""" Fills in namespace buffer with initial data. 
    This function won't be needed once memory interface instructions are working.
    It fills in dummy data for linear regression.
    """