mirror of https://github.com/efabless/caravel.git
Fix power guards
This commit is contained in:
parent
0738d1bc19
commit
082e52c41d
|
@ -276,8 +276,10 @@ module chip_io(
|
|||
wire [6:0] vssd_const_zero; // Constant value for management pins
|
||||
|
||||
constant_block constant_value_inst [6:0] (
|
||||
`ifdef USE_POWER_PINS
|
||||
.vccd(vccd),
|
||||
.vssd(vssd),
|
||||
`endif // USE_POWER_PINS
|
||||
.one(vccd_const_one),
|
||||
.zero(vssd_const_zero)
|
||||
);
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
|
||||
`define MGMT_ABUTMENT_PINS \
|
||||
.AMUXBUS_A(analog_a),\
|
||||
.AMUXBUS_B(analog_b),\
|
||||
.AMUXBUS_B(analog_b), `ifdef USE_POWER_PINS \
|
||||
.VSSA(vssa),\
|
||||
.VDDA(vdda),\
|
||||
.VSWITCH(vddio),\
|
||||
|
@ -55,7 +55,7 @@
|
|||
.VCCD(vccd),\
|
||||
.VSSIO(vssio),\
|
||||
.VSSD(vssd),\
|
||||
.VSSIO_Q(vssio_q),
|
||||
.VSSIO_Q(vssio_q), `endif
|
||||
`else
|
||||
`define USER1_ABUTMENT_PINS
|
||||
`define USER2_ABUTMENT_PINS
|
||||
|
|
|
@ -44,12 +44,19 @@ module simple_por(
|
|||
// down. Note that this is sped way up for verilog simulation; the
|
||||
// actual circuit is set to a 15ms delay.
|
||||
|
||||
`ifdef USE_POWER_PINS
|
||||
always @(posedge vdd3v3) begin
|
||||
`else
|
||||
initial begin
|
||||
`endif
|
||||
#500 inode <= 1'b1;
|
||||
end
|
||||
|
||||
`ifdef USE_POWER_PINS
|
||||
always @(negedge vdd3v3) begin
|
||||
#500 inode <= 1'b0;
|
||||
end
|
||||
`endif
|
||||
|
||||
// Instantiate two shmitt trigger buffers in series
|
||||
|
||||
|
|
Loading…
Reference in New Issue