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
#include <stdio.h> | |
/* | |
C dilinde tamsayılar long long int, int, short değişken tiplerinde tanımlanırlar. | |
Burada long long int 8 byte, int 4 byte, short ise 2 byte hafıza alanı kaplamaktadır. | |
Aşağıdaki kodu, 4 byte boyutunda bir tamsayı tanımlanayacak ve yazdıracak şekilde düzenleyiniz.. | |
*/ | |
#ifdef CEVAP | |
#define TAG0 int | |
#define TAG1 d | |
#endif |
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 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]; |
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 D_latch (Clk, D, Q); | |
input Clk, D; | |
output Q; | |
wire R, S_g, R_g, Qa, Qb /* synthesis keep */ ; | |
assign R = ~D; | |
assign S_g = ~(D & Clk); | |
assign R_g = ~(R & Clk); | |
assign Qa = ~(S_g & Qb); |
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 uygulama1 (SW, HEX7, HEX6, HEX5, HEX4, HEX3, HEX2, HEX1, HEX0); | |
input [15:0] SW; | |
output [0:6] HEX7, HEX6, HEX5, HEX4, HEX3, HEX2, HEX1, HEX0; | |
wire[3:0] A1, A0, B1, B0; | |
assign A1 = SW[15:12]; | |
assign A0 = SW[11:8]; | |
assign B1 = SW[7:4]; | |
assign B0 = SW[3:0]; | |