mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-18 20:03:39 +00:00
Added GP_POR
This commit is contained in:
parent
c01ff05fab
commit
c2b909c051
1 changed files with 22 additions and 0 deletions
|
@ -153,3 +153,25 @@ module GP_BANDGAP(output reg OK, output reg VOUT);
|
||||||
//cannot simulate mixed signal IP
|
//cannot simulate mixed signal IP
|
||||||
|
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
|
|
||||||
|
module GP_POR(output reg RST_DONE);
|
||||||
|
parameter POR_TIME = 500;
|
||||||
|
|
||||||
|
initial begin
|
||||||
|
RST_DONE = 0;
|
||||||
|
|
||||||
|
if(POR_TIME == 4)
|
||||||
|
#4000;
|
||||||
|
else if(POR_TIME == 500)
|
||||||
|
#500000;
|
||||||
|
else begin
|
||||||
|
$display("ERROR: bad POR_TIME for GP_POR cell");
|
||||||
|
$finish;
|
||||||
|
end
|
||||||
|
|
||||||
|
RST_DONE = 1;
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
endmodule
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue