I am building some 8051 perifericals on verilog and to test them i need a 8051 cpu core in verilog.
I looked on opencores already and most of them are in VHDL can some help me get one and compiling it for a Altera DE2? Or can some one tell me where to get some toturials on compling a microprocessor into a FPGA and puting some code on it?
Have you understood the complete architecture of microcontroller (Pipeplining operations, how many registers, Timers, etc)
then write seperate modules for the same and then use this modules (Call) on main module.
you can put the interface the cpu with memory blocks available in altera and then write hex code into that memory. the comtroller redas the hex code from the interfaced memory.