arrseq / lightning_processor

Processor project including emulator and HDL implementing the xT3 architecture
https://discord.gg/b67Wcd62pD
MIT License
4 stars 2 forks source link

Current encoder has horrific performance and has trait issues. #61

Closed x4exr closed 2 months ago

x4exr commented 2 months ago

Issue to self. Solution is to rewrite the instruction format in a more abstract way to allow for the CPU, Coprocessor and other units to use the same instruction system and adjust for their needs without making sacrifices. For the trait issue, the new instruction format should know exactly what not to do.

Performance can be fixed by storing the encoder and decoder in separate files and not specializing bytes which force the developer to create intermediate structures that cost cycles and don't benefit anything.