Author Topic: softcore for learning purposes  (Read 7475 times)

0 Members and 1 Guest are viewing this topic.

Offline brucehoult

  • Super Contributor
  • ***
  • Posts: 4418
  • Country: nz
Re: softcore for learning purposes
« Reply #50 on: October 13, 2020, 08:52:26 pm »
LC3 doesn't have opcode space to add more. There is only one free major opcode.
Subtraction can be handled by taking the 2s complement and adding.  Slide 5-10 on page 3 here:

https://www.cis.upenn.edu/~milom/cse240-Fall05/handouts/Ch05.pdf

Sure. I covered synthesizing SUB, OR, XOR from first principles back in...

https://www.eevblog.com/forum/fpga/softcore-for-learning-purposes/msg3270124/#msg3270124

I showed how to fake up shifts a few posts later.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf