From aacd466423afa988e6efa9011525e4401261d1e4 Mon Sep 17 00:00:00 2001 From: litneet64 Date: Fri, 31 May 2024 08:47:47 -0400 Subject: [PATCH] fix: change wire int assignment 4 --- src/puf_bit.v | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/puf_bit.v b/src/puf_bit.v index b746e38..ba5369b 100644 --- a/src/puf_bit.v +++ b/src/puf_bit.v @@ -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]);