Skip to content

Instantly share code, notes, and snippets.

View pasali's full-sized avatar
🎯
Focusing

Mehmet Başal pasali

🎯
Focusing
View GitHub Profile
module date_counter (KEY, HEX0, HEX1, HEX2, HEX3, HEX4, HEX5, HEX6, HEX7);
input [3:0] KEY;
output [0:6] HEX0, HEX1, HEX2, HEX3, HEX4, HEX5, HEX6, HEX7;
reg [3:0] G1=4'd1;
reg [3:0] G10=4'd0;
reg [3:0] A1=4'd1;
@pasali
pasali / cpu.v
Created May 28, 2012 14:50 — forked from erdemalkim/cpu.v
Basit bir işlemci
module cpu (KEY, SW, LEDR);
input [1:0] KEY;
input [17:0] SW;
output [17:0] LEDR;
wire Resetn, Manual_Clock, Run, Done;
wire [15:0] DIN, Bus;
assign Resetn = KEY[0];
assign Manual_Clock = KEY[1];
#include<stdio.h>
int main()
{
int bas_1;
int bas_2;
int sayi;
printf("sayiyi giriniz:");
scanf("%d",&sayi);
#include<stdio.h>
void main()
{
int neg = 0, poz = 0;//
int s=0;
int d;
loop:
@pasali
pasali / str_cat.c
Last active December 15, 2015 01:48 — forked from austa/str_cat.c
/*
* File: main.c
* Author: alaattin
*
* Created on 17 Mart 2013 Pazar, 17:01
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@pasali
pasali / alistirma2.c
Last active December 15, 2015 02:59 — forked from austa/alistirma2.c
/*
* File: main.c
* Author: alaattin
*
* Created on 18 Mart 2013 Pazartesi, 22:23
*/
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
@pasali
pasali / shellim.c
Last active December 15, 2015 14:09
#include<stdio.h>
#include<stdlib.h>
#include<sys/types.h>
#include<unistd.h>
#include<string.h>
#include<readline/readline.h>
#include<readline/history.h>
#include<sys/wait.h>
@pasali
pasali / dsd.py
Last active December 16, 2015 17:29 — forked from emreyh/dsd.py
class BinaryTree:
def __init__(self,rootObj):
self.key=rootObj
self.left = None
self.right = None
def insertLeft(self,newNode):
if self.left == None:
self.left = BinaryTree(newNode)
else:
t = BinaryTree(newNode)
@pasali
pasali / matrice_mul.c
Created May 12, 2013 21:03
Multithreading Example
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <pthread.h>
#define N 100
#define RANDOM_RANGE 100000
#define NTHREAD 10
#define VECTOR_LENGTH_PER_THREAD (N/NTHREAD)
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
float
F(float x)
{
return x*x;
}