aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim StroĢˆmbergson <joachim@secworks.se>2014-10-23 15:18:42 +0200
committerJoachim StroĢˆmbergson <joachim@secworks.se>2014-10-23 15:18:42 +0200
commit739bc2f3d81081ef6b75a92d66127fa342453395 (patch)
tree580f7bb3a2410f06641bfa06334729eef0523f95
parent46a4acd4adfea0bb7254e5355f59e7f71c54cbad (diff)
Added Xilinx specific constraint attribute to preserve the ring oscillators. Fixed name of rosc instances.
-rw-r--r--src/rtl/rosc_entropy_core.v17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/rtl/rosc_entropy_core.v b/src/rtl/rosc_entropy_core.v
index 6fb48ec..eb9dd6e 100644
--- a/src/rtl/rosc_entropy_core.v
+++ b/src/rtl/rosc_entropy_core.v
@@ -104,6 +104,9 @@ module rosc_entropy_core(
// Wires.
//----------------------------------------------------------------
reg rosc_we;
+
+ // Ugly in-line Xilinx attribute to preserve the registers.
+ (* equivalent_register_removal = "no" *)
wire [31 : 0] rosc_dout;
@@ -127,13 +130,13 @@ module rosc_entropy_core(
generate
for(i = 0 ; i < 32 ; i = i + 1)
begin: oscillators
- rosc #(.WIDTH(1)) osc_array(.clk(clk),
- .we(rosc_we),
- .reset_n(reset_n),
- .opa(opa),
- .opb(opb),
- .dout(rosc_dout[i])
- );
+ rosc #(.WIDTH(1)) rosc_array(.clk(clk),
+ .we(rosc_we),
+ .reset_n(reset_n),
+ .opa(opa),
+ .opb(opb),
+ .dout(rosc_dout[i])
+ );
end
endgenerate