vista์์ quartus์ 41
12461 ๋จ์ด ๋ด cpuquartusstack_machine
๊ฐ์
๋น์คํ๋ก quartus๋ฅผ ์๋ํ์ด์.
๋๋ cpu๋ก ์ฐ์ต ๋ฌธ์ ๋ฅผ ํ์๋ค.
์ฌ์ง.

4๊ฐ์ 9๋ฅผ ์ฌ์ฉํ์ฌ 1์์ 15๊น์ง์ ์๋ฅผ ๋ํ๋ด๋ ๊ณต์์ ๋ง๋ ๋ค.
mem[12'h000] = 16'h1009;// push 9
mem[12'h001] = 16'h1009;// push 9
mem[12'h002] = 16'hf003;// -
mem[12'h003] = 16'h1009;// push 9
mem[12'h004] = 16'h1009;// push 9
mem[12'h005] = 16'hf005;// /
mem[12'h006] = 16'h1030;// push '0'
mem[12'h007] = 16'hf000;// +
mem[12'h008] = 16'he000;// out
mem[12'h009] = 16'h1020;// push 32
mem[12'h00a] = 16'he000;// out
mem[12'h00b] = 16'h1009;// push 9
mem[12'h00c] = 16'h1009;// push 9
mem[12'h00d] = 16'hf005;// /
mem[12'h00e] = 16'h1009;// push 9
mem[12'h00f] = 16'h1009;// push 9
mem[12'h010] = 16'hf005;// /
mem[12'h011] = 16'hf000;// +
mem[12'h012] = 16'h1030;// push '0'
mem[12'h013] = 16'hf000;// +
mem[12'h014] = 16'he000;// out
mem[12'h015] = 16'h1020;// push 32
mem[12'h016] = 16'he000;// out
mem[12'h017] = 16'h1009;// push 9
mem[12'h018] = 16'h1009;// push 9
mem[12'h019] = 16'hf000;// +
mem[12'h01a] = 16'h1009;// push 9
mem[12'h01b] = 16'hf000;// +
mem[12'h01c] = 16'h1009;// push 9
mem[12'h01d] = 16'hf005;// /
mem[12'h01e] = 16'h1030;// push '0'
mem[12'h01f] = 16'hf000;// +
mem[12'h020] = 16'he000;// out
mem[12'h021] = 16'h1020;// push 32
mem[12'h022] = 16'he000;// out
mem[12'h023] = 16'h1009;// push 9
mem[12'h024] = 16'h1009;// push 9
mem[12'h025] = 16'h1009;// push 9
mem[12'h026] = 16'hf000;// +
mem[12'h027] = 16'h1009;// push 9
mem[12'h028] = 16'hf005;// /
mem[12'h029] = 16'h7000;// dup
mem[12'h02a] = 16'hf000;// +
mem[12'h02b] = 16'h1030;// push '0'
mem[12'h02c] = 16'hf000;// +
mem[12'h02d] = 16'he000;// out
mem[12'h02e] = 16'h1020;// push 32
mem[12'h02f] = 16'he000;// out
mem[12'h030] = 16'h1009;// push 9
mem[12'h031] = 16'h1009;// push 9
mem[12'h032] = 16'h1009;// push 9
mem[12'h033] = 16'hf000;// +
mem[12'h034] = 16'h1009;// push 9
mem[12'h035] = 16'hf005;// /
mem[12'h036] = 16'h7000;// dup
mem[12'h037] = 16'hf000;// +
mem[12'h038] = 16'hf003;// -
mem[12'h039] = 16'h1030;// push '0'
mem[12'h03a] = 16'hf000;// +
mem[12'h03b] = 16'he000;// out
mem[12'h03c] = 16'h1020;// push 32
mem[12'h03d] = 16'he000;// out
mem[12'h03e] = 16'h1009;// push 9
mem[12'h03f] = 16'h7000;// dup
mem[12'h040] = 16'h1009;// push 9
mem[12'h041] = 16'hf000;// +
mem[12'h042] = 16'h1009;// push 9
mem[12'h043] = 16'hf000;// +
mem[12'h044] = 16'h1009;// push 9
mem[12'h045] = 16'hf005;// /
mem[12'h046] = 16'hf003;// -
mem[12'h047] = 16'h1030;// push '0'
mem[12'h048] = 16'hf000;// +
mem[12'h049] = 16'he000;// out
mem[12'h04a] = 16'h1020;// push 32
mem[12'h04b] = 16'he000;// out
mem[12'h04c] = 16'h1009;// push 9
mem[12'h04d] = 16'h1009;// push 9
mem[12'h04e] = 16'h1009;// push 9
mem[12'h04f] = 16'hf000;// +
mem[12'h050] = 16'h1009;// push 9
mem[12'h051] = 16'hf005;// /
mem[12'h052] = 16'hf003;// -
mem[12'h053] = 16'h1030;// push '0'
mem[12'h054] = 16'hf000;// +
mem[12'h055] = 16'he000;// out
mem[12'h056] = 16'h1020;// push 32
mem[12'h057] = 16'he000;// out
mem[12'h058] = 16'h1009;// push 9
mem[12'h059] = 16'h1009;// push 9
mem[12'h05a] = 16'h1009;// push 9
mem[12'h05b] = 16'h1009;// push 9
mem[12'h05c] = 16'hf005;// /
mem[12'h05d] = 16'hf003;// -
mem[12'h05e] = 16'h1030;// push '0'
mem[12'h05f] = 16'hf000;// +
mem[12'h060] = 16'he000;// out
mem[12'h061] = 16'h1020;// push 32
mem[12'h062] = 16'he000;// out
mem[12'h063] = 16'h1009;// push 9
mem[12'h064] = 16'h1009;// push 9
mem[12'h065] = 16'hf003;// -
mem[12'h066] = 16'h1009;// push 9
mem[12'h067] = 16'hf004;// *
mem[12'h068] = 16'h1009;// push 9
mem[12'h069] = 16'h1030;// push '0'
mem[12'h06a] = 16'hf000;// +
mem[12'h06b] = 16'he000;// out
mem[12'h06c] = 16'h1020;// push 32
mem[12'h06d] = 16'he000;// out
mem[12'h06e] = 16'h1009;// push 9
mem[12'h06f] = 16'h1009;// push 9
mem[12'h070] = 16'hf005;// /
mem[12'h071] = 16'h1009;// push 9
mem[12'h072] = 16'h7000;// dup
mem[12'h073] = 16'h1009;// push 9
mem[12'h074] = 16'hf005;// /
mem[12'h075] = 16'hf000;// +
mem[12'h076] = 16'h3100;// set i
mem[12'h077] = 16'h2100;// get i
mem[12'h078] = 16'h100a;// push 10
mem[12'h079] = 16'hf005;// /
mem[12'h07a] = 16'h1030;// push '0'
mem[12'h07b] = 16'hf000;// +
mem[12'h07c] = 16'he000;// out
mem[12'h07d] = 16'h2100;// get i
mem[12'h07e] = 16'h100a;// push 10
mem[12'h07f] = 16'hf006;// %
mem[12'h080] = 16'h1030;// push '0'
mem[12'h081] = 16'hf000;// +
mem[12'h082] = 16'he000;// out
mem[12'h083] = 16'h1020;// push 32
mem[12'h084] = 16'he000;// out
mem[12'h085] = 16'h1009;// push 9
mem[12'h086] = 16'h1009;// push 9
mem[12'h087] = 16'h1009;// push 9
mem[12'h088] = 16'hf000;// +
mem[12'h089] = 16'h1009;// push 9
mem[12'h08a] = 16'hf005;// /
mem[12'h08b] = 16'hf000;// +
mem[12'h08c] = 16'h3100;// set i
mem[12'h08d] = 16'h2100;// get i
mem[12'h08e] = 16'h100a;// push 10
mem[12'h08f] = 16'hf005;// /
mem[12'h090] = 16'h1030;// push '0'
mem[12'h091] = 16'hf000;// +
mem[12'h092] = 16'he000;// out
mem[12'h093] = 16'h2100;// get i
mem[12'h094] = 16'h100a;// push 10
mem[12'h095] = 16'hf006;// %
mem[12'h096] = 16'h1030;// push '0'
mem[12'h097] = 16'hf000;// +
mem[12'h098] = 16'he000;// out
mem[12'h099] = 16'h1020;// push 32
mem[12'h09a] = 16'he000;// out
mem[12'h09b] = 16'h1009;// push 9
mem[12'h09c] = 16'h7000;// dup
mem[12'h09d] = 16'h1009;// push 9
mem[12'h09e] = 16'h1009;// push 9
mem[12'h09f] = 16'hf000;// +
mem[12'h0a0] = 16'hf000;// +
mem[12'h0a1] = 16'h1009;// push 9
mem[12'h0a2] = 16'hf005;// /
mem[12'h0a3] = 16'hf000;// +
mem[12'h0a4] = 16'h3100;// set i
mem[12'h0a5] = 16'h2100;// get i
mem[12'h0a6] = 16'h100a;// push 10
mem[12'h0a7] = 16'hf005;// /
mem[12'h0a8] = 16'h1030;// push '0'
mem[12'h0a9] = 16'hf000;// +
mem[12'h0aa] = 16'he000;// out
mem[12'h0ab] = 16'h2100;// get i
mem[12'h0ac] = 16'h100a;// push 10
mem[12'h0ad] = 16'hf006;// %
mem[12'h0ae] = 16'h1030;// push '0'
mem[12'h0af] = 16'hf000;// +
mem[12'h0b0] = 16'he000;// out
mem[12'h0b1] = 16'h1020;// push 32
mem[12'h0b2] = 16'he000;// out
mem[12'h0b3] = 16'h1009;// push 9
mem[12'h0b4] = 16'h1009;// push 9
mem[12'h0b5] = 16'h1009;// push 9
mem[12'h0b6] = 16'hf000;// +
mem[12'h0b7] = 16'h1009;// push 9
mem[12'h0b8] = 16'hf005;// /
mem[12'h0b9] = 16'h7000;// dup
mem[12'h0ba] = 16'hf000;// +
mem[12'h0bb] = 16'hf000;// +
mem[12'h0bc] = 16'h3100;// set i
mem[12'h0bd] = 16'h2100;// get i
mem[12'h0be] = 16'h100a;// push 10
mem[12'h0bf] = 16'hf005;// /
mem[12'h0c0] = 16'h1030;// push '0'
mem[12'h0c1] = 16'hf000;// +
mem[12'h0c2] = 16'he000;// out
mem[12'h0c3] = 16'h2100;// get i
mem[12'h0c4] = 16'h100a;// push 10
mem[12'h0c5] = 16'hf006;// %
mem[12'h0c6] = 16'h1030;// push '0'
mem[12'h0c7] = 16'hf000;// +
mem[12'h0c8] = 16'he000;// out
mem[12'h0c9] = 16'h1020;// push 32
mem[12'h0ca] = 16'he000;// out
mem[12'h0cb] = 16'h1009;// push 9
mem[12'h0cc] = 16'h7000;// dup
mem[12'h0cd] = 16'h1009;// push 9
mem[12'h0ce] = 16'h1009;// push 9
mem[12'h0cf] = 16'hf000;// +
mem[12'h0d0] = 16'h1009;// push 9
mem[12'h0d1] = 16'hf005;// /
mem[12'h0d2] = 16'h7000;// dup
mem[12'h0d3] = 16'hf000;// +
mem[12'h0d4] = 16'hf003;// -
mem[12'h0d5] = 16'hf000;// +
mem[12'h0d6] = 16'h3100;// set i
mem[12'h0d7] = 16'h2100;// get i
mem[12'h0d8] = 16'h100a;// push 10
mem[12'h0d9] = 16'hf005;// /
mem[12'h0da] = 16'h1030;// push '0'
mem[12'h0db] = 16'hf000;// +
mem[12'h0dc] = 16'he000;// out
mem[12'h0dd] = 16'h2100;// get i
mem[12'h0de] = 16'h100a;// push 10
mem[12'h0df] = 16'hf006;// %
mem[12'h0e0] = 16'h1030;// push '0'
mem[12'h0e1] = 16'hf000;// +
mem[12'h0e2] = 16'he000;// out
mem[12'h0e3] = 16'h1020;// push 32
mem[12'h0e4] = 16'he000;// out
mem[12'h0e5] = 16'h1009;// push 9
mem[12'h0e6] = 16'h7000;// dup
mem[12'h0e7] = 16'h7000;// dup
mem[12'h0e8] = 16'h1009;// push 9
mem[12'h0e9] = 16'hf000;// +
mem[12'h0ea] = 16'h1009;// push 9
mem[12'h0eb] = 16'hf000;// +
mem[12'h0ec] = 16'h1009;// push 9
mem[12'h0ed] = 16'hf005;// /
mem[12'h0ee] = 16'hf003;// -
mem[12'h0ef] = 16'hf000;// +
mem[12'h0f0] = 16'h3100;// set i
mem[12'h0f1] = 16'h2100;// get i
mem[12'h0f2] = 16'h100a;// push 10
mem[12'h0f3] = 16'hf005;// /
mem[12'h0f4] = 16'h1030;// push '0'
mem[12'h0f5] = 16'hf000;// +
mem[12'h0f6] = 16'he000;// out
mem[12'h0f7] = 16'h2100;// get i
mem[12'h0f8] = 16'h100a;// push 10
mem[12'h0f9] = 16'hf006;// %
mem[12'h0fa] = 16'h1030;// push '0'
mem[12'h0fb] = 16'hf000;// +
mem[12'h0fc] = 16'he000;// out
mem[12'h0fd] = 16'h1020;// push 32
mem[12'h0fe] = 16'he000;// out
mem[12'h0ff] = 16'h40ff;//bye: jmp bye
mem[12'h100] = 16'h0000;//i: 0x0000
์ด์.
Reference
์ด ๋ฌธ์ ์ ๊ดํ์ฌ(vista์์ quartus์ 41), ์ฐ๋ฆฌ๋ ์ด๊ณณ์์ ๋ ๋ง์ ์๋ฃ๋ฅผ ๋ฐ๊ฒฌํ๊ณ ๋งํฌ๋ฅผ ํด๋ฆญํ์ฌ ๋ณด์๋ค https://qiita.com/ohisama@github/items/1e6b34012a7dd07a9629ํ ์คํธ๋ฅผ ์์ ๋กญ๊ฒ ๊ณต์ ํ๊ฑฐ๋ ๋ณต์ฌํ ์ ์์ต๋๋ค.ํ์ง๋ง ์ด ๋ฌธ์์ URL์ ์ฐธ์กฐ URL๋ก ๋จ๊ฒจ ๋์ญ์์ค.
์ฐ์ํ ๊ฐ๋ฐ์ ์ฝํ
์ธ ๋ฐ๊ฒฌ์ ์ ๋
(Collection and Share based on the CC Protocol.)
์ข์ ์นํ์ด์ง ์ฆ๊ฒจ์ฐพ๊ธฐ
๊ฐ๋ฐ์ ์ฐ์ ์ฌ์ดํธ ์์ง
๊ฐ๋ฐ์๊ฐ ์์์ผ ํ ํ์ ์ฌ์ดํธ 100์ ์ถ์ฒ ์ฐ๋ฆฌ๋ ๋น์ ์ ์ํด 100๊ฐ์ ์์ฃผ ์ฌ์ฉํ๋ ๊ฐ๋ฐ์ ํ์ต ์ฌ์ดํธ๋ฅผ ์ ๋ฆฌํ์ต๋๋ค