Skip to content

Commit

Permalink
fix: extra newlines and const bitwidth
Browse files Browse the repository at this point in the history
  • Loading branch information
litneet64 committed May 31, 2024
1 parent 84fae87 commit 52a05dd
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/arbiter.v
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

module arbiter (
input wire out_1, out_2, clk, rst,
output wire resp, finish
Expand Down Expand Up @@ -26,4 +27,4 @@ module arbiter (

end

endmodule
endmodule
3 changes: 2 additions & 1 deletion src/counter.v
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

module counter(
input wire in, clk, rst,
output wire out
Expand All @@ -24,4 +25,4 @@ module counter(
end


endmodule
endmodule
3 changes: 2 additions & 1 deletion src/mux_16.v
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

module mux_16 (
input wire[15:0] ro,
input wire[3:0] chall,
Expand Down Expand Up @@ -29,4 +30,4 @@ module mux_16 (
end


endmodule
endmodule
7 changes: 5 additions & 2 deletions src/puf_bit.v
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

module puf_bit(
input wire[7:0] chall,
input wire clk, rst, en,
Expand All @@ -6,14 +7,16 @@ module puf_bit(

localparam n_ro = 32;
localparam n_half = n_ro / 2;
parameter BITWIDTH = n_ro;

wire[n_ro-1:0] ro_out;
reg[n_ro-1:0] inter_en;

wire mux_out_1, mux_out_2;
wire ctr_out_1, ctr_out_2;

assign inter_en[n_ro-1:0] = n_ro'd1;

assign inter_en[n_ro-1:0] = BITWIDTH'd1;

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 All @@ -26,4 +29,4 @@ module puf_bit(

arbiter race_arb(cnt_out_1, cnt_out_2, clk, rst, resp, finish);

endmodule
endmodule
1 change: 0 additions & 1 deletion src/ring_osc.v
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ module ring_osc(
assign out = inter_wire[num_inv];

endmodule

0 comments on commit 52a05dd

Please sign in to comment.