Looking at the computational properties of brain has been inspiring in constructing intelligent systems. So, trying to mimic the brain's computational properties with simple models could give rise to new approaches. Here, the role of connection weights on the synchronization of cortex oscillations is investigated. To carry out this investigation, networks inspired by the structure of cortex are built using a simple neuron model. The simulations are carried out in BRIAN, which is a simulation environment using Python programming language and it is created to provide a workspace on spiking neural networks.