Skip to content

Commit

Permalink
fix: change wire int assignment 4
Browse files Browse the repository at this point in the history
  • Loading branch information
litneet64 committed May 31, 2024
1 parent f57bf16 commit aacd466
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/puf_bit.v
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@ module puf_bit(
localparam n_half = n_ro / 2;

wire[n_ro-1:0] ro_out;
reg[n_ro-1:0] inter_en = (en) ? n_ro'b1 : n_ro'b0;
reg[n_ro-1:0] inter_en;

wire mux_out_1, mux_out_2;
wire ctr_out_1, ctr_out_2;

always @ (posedge clk) begin
if (en && inter_en == n_ro'x) begin
inter_en <= n_ro'b1;
end
end

ring_osc ro_array_1[n_half-1:0] (inter_en[n_half-1:0], ro_out[n_half-1:0]);
ring_osc ro_array_2[n_half-1:0] (inter_en[n_ro-1:n_half], ro_out[n_ro-1:n_half]);

Expand Down

0 comments on commit aacd466

Please sign in to comment.