Skip to content

Instantly share code, notes, and snippets.

View furkantektas's full-sized avatar

Furkan Tektas furkantektas

View GitHub Profile
@furkantektas
furkantektas / ShadowedTypefaceSpan.java
Last active August 29, 2015 13:56
This is a TypefaceSpan with shadow.
import android.text.TextPaint;
import android.text.style.TypefaceSpan;
/**
* Created by Furkan Tektas on 15.02.2014.
*/
public class ShadowedTypefaceSpan extends TypefaceSpan {
private float radius;
private float dx;
private float dy;
@furkantektas
furkantektas / and.v
Created November 23, 2013 20:47
4bit, 8bit, 16bit, 32bit AND gates for structural verilog
///////////////////////// AND GATES /////////////////////////
module and4(out,in1,in2);
input [3:0] in1, in2;
output [3:0] out;
and t1(out[3], in1[3], in2[3]),
t2(out[2], in1[2], in2[2]),
t3(out[1], in1[1], in2[1]),
t4(out[0], in1[0], in2[0]);
endmodule
@furkantektas
furkantektas / nor.v
Created November 23, 2013 20:46
4bit, 8bit, 16bit, 32bit NOR gates for structural verilog
///////////////////////// NOR GATES /////////////////////////
module nor4(out,in1,in2);
input [3:0] in1, in2;
output [3:0] out;
nor t1(out[3], in1[3], in2[3]),
t2(out[2], in1[2], in2[2]),
t3(out[1], in1[1], in2[1]),
t4(out[0], in1[0], in2[0]);
endmodule
@furkantektas
furkantektas / or.v
Created November 23, 2013 20:46
4bit, 8bit, 16bit, 32bit OR gates for structural verilog
///////////////////////// OR GATES /////////////////////////
module or4(out,in1,in2);
input [3:0] in1, in2;
output [3:0] out;
or t1(out[3], in1[3], in2[3]),
t2(out[2], in1[2], in2[2]),
t3(out[1], in1[1], in2[1]),
t4(out[0], in1[0], in2[0]);
endmodule
@furkantektas
furkantektas / Muxes.v
Created November 23, 2013 20:45
2:1 4:1 8:1 Mux using structural verilog
module mux2to1(a,b,sel,out);
input a,b,sel;
output out;
tri out;
bufif1 (out,a,sel);
bufif0 (out,b,sel);
endmodule
module mux4to1(a,sel,out);
input [3:0] a;