This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////////////// 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////////////// 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///////////////////////// 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
NewerOlder