Guest User

Untitled

a guest
May 21st, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VHDL 1.90 KB | None | 0 0
  1. when "00000" => oQ <= "000110010010000"; --inc r2
  2.             when "00001" => oQ <= "000110010010000"; --inc r2
  3.             when "00010" => oQ <= "000110010010000"; --inc r2
  4.            
  5.             when "00011" => oQ <= "001000010010000"; --shl r2
  6.             when "00100" => oQ <= "100000000101101"; --pocetak: ld r0, r5
  7.             when "00101" => oQ <= "000000011000000"; --mov r3,r0
  8.             when "00110" => oQ <= "000110101101000"; --inc r5
  9.             when "00111" => oQ <= "100000000000101"; --ld r0,r5
  10.             when "01000" => oQ <= "000001011011000"; --add r3,r0
  11.             when "01001" => oQ <= "001010011011000"; --ashl r3
  12.             when "01010" => oQ <= "001010011011000"; --ashl r3
  13.             when "01011" => oQ <= "000110101101000"; --inc r5
  14.             when "01100" => oQ <= "100000000101101"; --ld r0,r5
  15.             when "01101" => oQ <= "000000100000000"; --mov r4,r0
  16.             when "01110" => oQ <= "001011100100000"; --ashl r4
  17.             when "01111" => oQ <= "001011100100000"; --ashl r4
  18.             when "10000" => oQ <= "001011100100000"; --ashl r4
  19.             when "10001" => oQ <= "000001100011100"; --add r4,r3
  20.             when "10010" => oQ <= "000110101101000"; --inc r5
  21.             when "10011" => oQ <= "110000000100101"; --st r4,r5
  22.             when "10100" => oQ <= "000010101101010"; --sub r2,r5
  23.             when "10101" => oQ <= "010001000011010"; --jz kraj
  24.             when "10110" => oQ <= "000001101010101"; --add r2,r5
  25.             when "10111" => oQ <= "000111101101000"; --dec r5
  26.             when "11000" => oQ <= "000111101101000"; --dec r5
  27.             when "11001" => oQ <= "010000000000100"; --jmp pocetak
  28.             when "11010" => oQ <= "100000100101010"; --kraj: jmp kraj
  29. --          when "11010" => oQ <= "110000000101111"; --store r2,r7(0);
  30. --          when "11011" => oQ <= "010000000000100"; --jmp pocetak
  31.             when "11100" => oQ <= "000111010010000";
  32.             when "11101" => oQ <= "010000000011010"; --pomeriti tamo na kraj, samo sam proveravao sta je upisano u memoriju
  33.             when "11110" => oQ <= "000000000000000";
  34.             when "11111" => oQ <= "000000000000000";
  35.          when others  => oQ <= "000000000000000";
Add Comment
Please, Sign In to add comment