grahamedgecombe / icicle

32-bit RISC-V system on chip for iCE40 FPGAs
ISC License
301 stars 52 forks source link

wrong bit width in opcode #6

Closed latticesakita closed 6 years ago

latticesakita commented 6 years ago

Hi, opcode is 7bits width but it is declared as 8bits in rv32_fetch.sv. it should be below.

logic [6:0] opcode; assign opcode = instr_read_value_in[6:0];

Hope you will update, Regards, Sakita

grahamedgecombe commented 6 years ago

Thanks, this has actually unearthed another issue - the branch prediction doesn't work properly! I'm looking at that at the moment...

grahamedgecombe commented 6 years ago

Finally (!) fixed in the following series of commits: