douggilliland / R32V2020

My 32-bit RISC CPU for smallish FPGAs
GNU General Public License v3.0
14 stars 3 forks source link

Use hash to denote immediate values #23

Closed mjgpy3 closed 5 years ago

douggilliland commented 5 years ago

@mjgpy3 Is this in the code? If so, what is the format?

mjgpy3 commented 5 years ago

@douggilliland right now, loading intermediates just use syntax like 0xab. You had mentioned that you wanted them to be denoted with a # character like #0xab. This issue was a reminder to implement that.

douggilliland commented 5 years ago

VHDL Changes needed for Immediate loads

douggilliland commented 5 years ago

Decided that immediate instructions destination registers need to be limited to r8-r15 only. LIL and LIU are the only two instructions which load the register file from the Instruction ROM data values.

Still need to add muxes.

douggilliland commented 5 years ago

Immediates are now working (in the FPGA).

Test Code

liu r8,0x1234 lil r8,0x5678

douggilliland commented 5 years ago

immediates