Skip to content

Commit

Permalink
pg: Add basic modeling of the power gate behavior
Browse files Browse the repository at this point in the history
Useful for GL simulation where without this the user module end up
not powered and everything fails.

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
  • Loading branch information
smunaut committed Mar 13, 2024
1 parent 76803d3 commit 6efa0f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pg/tt_pg_vdd_1/tt_pg_vdd_1.v
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ module tt_pg_vdd_1 (
input wire ctrl
);

`ifdef USE_POWER_PINS
assign GPWR = !ctrl ? VPWR : 1'bz;
`endif

endmodule
4 changes: 4 additions & 0 deletions pg/tt_pg_vdd_2/tt_pg_vdd_2.v
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ module tt_pg_vdd_2 (
input wire ctrl
);

`ifdef USE_POWER_PINS
assign GPWR = !ctrl ? VPWR : 1'bz;
`endif

endmodule

0 comments on commit 6efa0f9

Please sign in to comment.