Permalink
Browse files

Some core fixes from LBNL

  • Loading branch information...
1 parent ab5841e commit 893b1224d44cb0a9452644a2901abe400a7928ae @atgreen committed Sep 21, 2012
Showing with 6 additions and 3 deletions.
  1. +1 −0 moxie/cores/moxie/cpu_ififo.v
  2. +5 −3 moxie/cores/moxie/moxie.v
@@ -108,6 +108,7 @@ module cpu_ififo #(parameter BOOT_ADDRESS = 32'h00001000
assign PC = (newPC_p_i ? PC_i : next_PC);
+ // FIXME: multiple assignments to next_PC :(
always @(negedge rst_i)
next_PC <= PC_i;
@@ -96,6 +96,10 @@ module moxie (/*AUTOARG*/
reg [0:0] wb_I_stb_o;
+ // Forwarding registers.
+ reg forward_0;
+ reg forward_1;
+
// synthesis translate_off
initial
begin
@@ -203,9 +207,7 @@ module moxie (/*AUTOARG*/
.memory_address_i (xw_memory_address),
.mem_result_i (xw_mem_result) );
- // Forwarding logic.
- reg forward_0;
- reg forward_1;
+ // Forwarding logic.
always @(posedge clk_i)
begin
// If we're writing to the same register we're about to read

0 comments on commit 893b122

Please sign in to comment.