Guest
#2709814
Hello, In cpu architecture course, we were tasked with building a single cycle MIPS cpu. after writing the entire architecture and performing multiple test benches we wrote the architecture to an fpga board and... it didn't work. Examining things closely, we found out there's something wrong with our instruction fetch. mainly, the PC can't advance to the next instruction address. I wrote down a simple entity with 2 components - a 32 bits register and an adder. the register outputs data (program address) to the adder. the adder performs a "+4" on the address and sends it back to the PC. Simple, isn't it? But it's not working, for some reason - when i simulate this unit it only has junk on it's bus (XXXXXXXX on modelsim). I can't find the problem and i'm desperate. i have attached all the relevant files. can someone find what the problem is? thank you, Shay