Skip to content

Commit

Permalink
missing enable and bad out asigment for code generator
Browse files Browse the repository at this point in the history
  • Loading branch information
kristianpaul committed Sep 10, 2011
1 parent d4b6326 commit b4beb96
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cores/namuru/rtl/namuru_code_gen2.v
Expand Up @@ -76,12 +76,12 @@ module code_gen (clk, rstn, tic_enable, hc_enable, prn_key_enable, prn_key, code
defparam sr.lpm_width= 3; */
reg [2:0] shift_temp;
always @(posedge clk) begin
if (prn_key_enable)
if (prn_key_enable)
shift_temp <= 3'b0;
else
shift_temp <= {shift_temp[1:0], ca_code};
else if (hc_enable)
shift_temp <= {shift_temp[1:0], ca_code};
end
assign srq = shift_temp[2];
assign srq = shift_temp;

// The G1 shift register
//----------------------
Expand Down

0 comments on commit b4beb96

Please sign in to comment.