無料アクセスカウンターofuda.cc「全世界カウント計画」
■掲示板に戻る■ 全部 1- 101- 最新50 [PR]ぜろちゃんねるプラス[PR]  

テスト及び練習用スレ

1 :管理人:2002/04/11 00:06
テストです。

100 :★monday@寂しや下野に薬品:2002/12/18 12:21
#テスト

101 :★管理人◆BjwaxxRikk:2003/01/22 19:56
module observ(mode,flag,dsel,rsel,op,phase,areg,breg,creg,mar,mdr,pc,ir,regout,memout,clock,key,
leda0,leda1,leda2,leda3,ledb0,ledb1,ledb2,ledb3,ledc,dispdata);
input mode;
input [2:0] flag;
input [3:0] dsel;
input [3:0] rsel;
input op;
input [4:0] phase;
input [15:0] areg,breg,creg,mar,mdr,pc,ir,regout,memout;
input clock;
input key;
output [7:0] leda0,leda1,leda2,leda3,ledb0,ledb1,ledb2,ledb3,ledc;
output [15:0] dispdata;

wire [15:0] tmpb;

function [7:0] decoder;

input [3:0] dec_in;
begin
case (dec_in)
4'd0: decoder=8'b11111100;
4'd1: decoder=8'b01100000;
4'd2: decoder=8'b11011010;
4'd3: decoder=8'b11110010;
4'd4: decoder=8'b01100110;
4'd5: decoder=8'b10110110;
4'd6: decoder=8'b10111110;
4'd7: decoder=8'b11100000;
4'd8: decoder=8'b11111110;
4'd9: decoder=8'b11110110;
4'd10: decoder=8'b11101110;
4'd11: decoder=8'b00111110;
4'd12: decoder=8'b00011010;
4'd13: decoder=8'b01111010;
4'd14: decoder=8'b10011110;
4'd15: decoder=8'b10001110;
endcase
end
endfunction


function [7:0] str_decoder;
input [3:0]dec_in;
begin
case (dec_in)
4'd0: str_decoder=8'b11101110;
4'd1: str_decoder=8'b00111110;
4'd2: str_decoder=8'b00011010;
4'd3: str_decoder=8'b01111010;
4'd4: str_decoder=8'b10001110;
4'd5: str_decoder=8'b00100000;
4'd6: str_decoder=8'b00011100;
4'd7: str_decoder=8'b00101010;
4'd8: str_decoder=8'b00111010;
4'd9: str_decoder=8'b11001110;
4'd10: str_decoder=8'b00001010;
4'd11: str_decoder=8'b00011110;
4'd12: str_decoder=8'b00111000;
4'd13: str_decoder=8'b10111100;
4'd15: str_decoder=8'b00000000;
endcase
end
endfunction


function [31:0] leda_out;
input mode;
input [3:0]dsel;
input [3:0] rsel;
input [15:0] mar;

begin
case (dsel)
0:begin
if (mode)
leda_out = {str_decoder(4'd15),str_decoder(4'd8),str_decoder(4'd12),str_decoder(4'd11)};
else
leda_out = {decoder(mar[15:12]),decoder(mar[11:8]),decoder(mar[7:4]),decoder(mar[3:0])};
end
1:leda_out = {str_decoder(4'd7),str_decoder(4'd7),str_decoder(4'd0),str_decoder(4'd10)};
2:leda_out = {str_decoder(4'd7),str_decoder(4'd7),str_decoder(4'd3),str_decoder(4'd10)};
3:leda_out = {str_decoder(4'd15),str_decoder(4'd15),str_decoder(4'd9),str_decoder(4'd2)};
4:leda_out = {str_decoder(4'd15),str_decoder(4'd15),str_decoder(4'd5),str_decoder(4'd10)};
5:leda_out = {str_decoder(4'd15),str_decoder(4'd15),str_decoder(4'd15),str_decoder(4'd0)};
6:leda_out = {str_decoder(4'd15),str_decoder(4'd15),str_decoder(4'd15),str_decoder(4'd1)};
7:leda_out = {str_decoder(4'd15),str_decoder(4'd15),str_decoder(4'd15),str_decoder(4'd2)};
8:begin
if (rsel[3])
leda_out = {str_decoder(4'd15),str_decoder(4'd15),str_decoder(4'd15),str_decoder(4'd15)};
else
leda_out = {str_decoder(4'd15),str_decoder(4'd15),str_decoder(4'd10),decoder({1'b0,rsel[2:0]})};
end
15:leda_out = {decoder(4'd15),str_decoder(4'd6),str_decoder(4'd0),str_decoder(4'd13)};
default:leda_out = {str_decoder(4'd15),str_decoder(4'd15),str_decoder(4'd15),str_decoder(4'd15)};
endcase
end
endfunction

function [15:0] ledb_out;
input [3:0] dsel;
input [15:0] memout;
input [15:0] mar;
input [15:0] mdr;
input [15:0] pc;
input [15:0] ir;
input [15:0] areg;
input [15:0] breg;
input [15:0] creg;
input [15:0] regout;
input [2:0] flag;

begin
case (dsel)
0:ledb_out = memout;
1:ledb_out = mar;
2:ledb_out = mdr;
3:ledb_out = pc;
4:ledb_out = ir;
5:ledb_out = areg;
6:ledb_out = breg;
7:ledb_out = creg;
8:ledb_out = regout;
15:ledb_out = {7'b000,flag[2],3'b000,flag[1],3'b000,flag[0]};
default:ledb_out = 16'h0000;
endcase
end
endfunction

function [7:0] ledc_out;
input mode2;
input clock2;
input key2;
input op2;
input [4:0] phase2;
begin
if (!mode2)
ledc_out = {1'b1,clock2,!clock2,key2,4'b0000};
else
ledc_out = {op2,clock2,!clock2,phase2[4],phase2[0],phase2[1],phase2[2],phase2[3]};
end
endfunction

assign {leda3,leda2,leda1,leda0}=leda_out(mode,dsel,rsel,mar);

assign tmpb = ledb_out(dsel,memout,mar,mdr,pc,ir,areg,breg,creg,regout,flag);

assign ledb3 = decoder(tmpb[15:12]);
assign ledb2 = decoder(tmpb[11:8]);
assign ledb1 = decoder(tmpb[7:4]);
assign ledb0 = decoder(tmpb[3:0]);

assign dispdata = tmpb;
assign ledc = ledc_out(mode,clock,key,op,phase);

endmodule


102 ::2003/04/16 15:29
?

103 ::2003/04/25 13:44

# XFree86 4 configuration created by pyxf86config

Section "ServerLayout"
Identifier "Default Layout"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "DevInputMice" "AlwaysCore"
EndSection

Section "Files"

# RgbPath is the location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.
# Multiple FontPath entries are allowed (they are concatenated together)
# By default, Red Hat 6.0 and later now use a font server independent of
# the X server to render fonts.
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "unix/:7100"
EndSection

Section "Module"
Load "dbe"
Load "extmod"
Load "fbdevhw"
Load "glx"
Load "record"
# Load "freetype"
Load "xtt"
Load "type1"
Load "dri"
EndSection

Section "InputDevice"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
# Option "Xleds" "1 2 3"
# To disable the XKEYBOARD extension, uncomment XkbDisable.
# Option "XkbDisable"
# To customise the XKB settings to suit your keyboard, modify the
# lines below (which are the defaults). For example, for a non-U.S.
# keyboard, you will probably want to use:
# Option "XkbModel" "pc102"
# If you have a US Microsoft Natural keyboard, you can use:
# Option "XkbModel" "microsoft"
#
# Then to change the language, change the Layout setting.
# For example, a german layout can be obtained with:
# Option "XkbLayout" "de"
# or:
# Option "XkbLayout" "de"
# Option "XkbVariant" "nodeadkeys"
#
# If you'd like to switch the positions of your capslock and
# control keys, use:
# Option "XkbOptions" "ctrl:swapcaps"
# Or if you just want both to be control, use:
# Option "XkbOptions" "ctrl:nocaps"
#
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "jp106"
Option "XkbLayout" "jp"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/psaux"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection

Section "InputDevice"

# If the normal CorePointer mouse is not a USB mouse then
# this input device can be used in AlwaysCore mode to let you
# also use USB mice at the same time.
Identifier "DevInputMice"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Generic Laptop Display Panel 1024x768"
HorizSync 31.5 - 48.5
VertRefresh 40.0 - 70.0
Option "dpms"
EndSection

Section "Device"
Identifier "Videocard0"
Driver "i810"
VendorName "Videocard vendor"
BoardName "Intel 830"
VideoRam 16384
EndSection

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "DRI"
Group 0
Mode 0666
EndSection


104 :管理人 ★:2003/04/26 19:03
test

105 :管理人 ★:2003/04/27 15:16 ID:???
test2

106 :管理人 ★:2003/04/28 13:06 ID:???
test3

107 :名無しさん@リックおっぱい:2003/05/08 19:33
test4

108 :名無しさん@リックおっぱい:2003/05/08 19:34
もう一度

109 :isha:2003/05/09 15:42
test

110 :名無しさん@リックおっぱい:2003/05/09 15:42
test1

111 :◆WFKAmTe48A :2003/05/09 15:43
test21

112 :名無しさん@リックおっぱい:2003/05/09 15:45
うーん…

113 :monday@研究室:2003/05/09 16:45
どうだろう…

114 :monday ★:2003/05/09 17:39
test

115 :@スカラー波@monday ★:2003/05/09 17:41
キタ━━━━(゚∀゚)━━━━!!

116 :◆.CzKQna1OU @monday ★:2003/05/13 13:28
どうでしょう?

117 :test ◆blhesnrpaI :2003/05/14 12:42
テス

118 :test ◆ka3muSDfMg :2003/05/23 01:32
てす

119 :◆JddBb8X44M :2003/05/24 17:29
てすと

120 :◆JddBb8X44M :2003/05/24 17:30
てすととと


121 :名無しさん@リックおっぱい:2003/06/06 18:53
滲。「」

122 :monday ★:2003/06/19 23:06
 \ │ /                              稚内
  / ̄\   / ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄             札幌旭川
─( ゚ ∀ ゚ )< にっぽんにっぽん〜!            函館十勝根室
  \_/   \_________
 / │ \                             青森
                                  秋田岩手
                                  山形宮城
                                  新潟福島
                                富山群馬栃木
               島根鳥取兵京都福井石川長山( ゚ ∀ ゚ )茨城
      長佐福岡 山口広島岡山庫大奈滋賀岐阜野梨東京千葉
      崎賀熊大分          阪良三重愛知静岡神奈川
         本宮崎  愛媛香川  和歌山
         鹿児島  高知徳島

沖縄                       ∩ ∧ ∧ ∩/ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
  ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄\∩ ∧ ∧ ∩     \( ゚∀゚)< みんなみんなみんな!
 だいすき〜〜〜!   >( ゚∀゚ )/     |    / \__________
 ________/ |    〈      |   |
               / /\_」      / /\」
                ̄         / /


123 :monday ★:2003/06/26 11:47
あれ?♥

124 :名無しさん@リックおっぱい:2003/09/08 15:55
test

125 :名無しさん@リックおっぱい:2003/12/01 14:12
sage

126 :名無しさん@リックおっぱい:2003/12/01 14:16
saga


127 :dazaifu.csce.kyushu-u.ac.jp:2003/12/09 15:17
testtest

128 :192.168.1.2:2003/12/09 15:30
テスト

129 :省略:省略
省略

130 :省略:省略
省略

131 :◆4.rxxxxxxk :03/12/12 18:09
てすと

132 :◆4.rxxxxxxk @管理人 ★:03/12/12 18:10
てすと2

133 :◆4.rxxxxxxk @管理人 ★:03/12/12 18:16
test3

134 :名無しさん@リックおっぱい:04/02/23 08:38
test

135 :◆kA6ZNawOoM :04/07/27 16:51
test

136 :てすと:04/08/23 16:37






     ___
    /     \       ________
   /   ∧ ∧ \  /
  |    ’ `   | < 氏ねよおめーら
  |     )●(  |  \________
  \     A   ノ
    \____/


137 :てすと:04/08/23 16:38






     ___
    /     \       ________
   /   / \ \  /
  |    ’  `   | < 氏ねよおめーら
  |     )●(  |  \________
  \     A   ノ
    \____/



138 :管理人 ★:04/11/10 23:02
てすと

139 :管理人 ★:04/11/21 23:33
てすと

140 :省略:省略
省略

141 :省略:省略
省略

142 :名無しさん@リックおっぱい:05/01/17 18:13
   r==:ュ    ,ィ
    r―‐'.=lrェ[l二ニl=ー
    ゙-‐'</゚^|iilヾエiiiiiニコ
         .゙´

143 :省略:06/01/23 01:08
省略

144 :( ´ω`)&&rrlo@monday ★:06/02/10 18:27
テスト

145 :( ´ω`)&&rrlo;@monday ★:06/02/10 18:28
test

146 :( ´ω`)@monday ★:06/02/10 18:29
(´・(ェ)・`)ショボーン

147 :名無しさん@リックおっぱい:06/06/04 14:30
ヽ(`Д´)ノ

148 :省略:06/08/21 10:17
省略

149 :名無しさん@リックおっぱい:2020/04/06(月) 19:17:00 ID:24WKUyTE0
まだ動くんかな

28KB
新着レスの表示

名前: E-mail(省略可)
READ.CGI - 0ch+ BBS 0.7.4 20131106
ぜろちゃんねるプラス