File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ package sifive.fpgashells.ip.xilinx
4
4
import Chisel ._
5
5
import chisel3 .{Input , Output }
6
6
import chisel3 .experimental .{Analog , attach }
7
+ import chisel3 .util .HasBlackBoxInline
7
8
import freechips .rocketchip .util .{ElaborationArtefacts }
8
9
9
10
import sifive .blocks .devices .pinctrl .{BasePin }
@@ -80,11 +81,29 @@ class reset_mig extends BlackBox {
80
81
81
82
// This is a FPGA-Only construct, which uses
82
83
// 'initial' constructions
83
- class PowerOnResetFPGAOnly extends BlackBox {
84
+ class PowerOnResetFPGAOnly extends BlackBox with HasBlackBoxInline {
84
85
val io = new Bundle {
85
86
val clock = Input (Clock ())
86
87
val power_on_reset = Output (Bool ())
87
88
}
89
+ setInline(" " ,
90
+ """ // See LICENSE file for license details.
91
+ |(* keep_hierarchy = "yes" *) module PowerOnResetFPGAOnly(
92
+ | input clock,
93
+ | (* dont_touch = "true" *) output power_on_reset
94
+ |);
95
+ | reg reset;
96
+ | assign power_on_reset = reset;
97
+ |
98
+ | initial begin
99
+ | reset <= 1'b1;
100
+ | end
101
+ |
102
+ | always @(posedge clock) begin
103
+ | reset <= 1'b0;
104
+ | end
105
+ |endmodule
106
+ |""" .stripMargin)
88
107
}
89
108
90
109
object PowerOnResetFPGAOnly {
You can’t perform that action at this time.
0 commit comments