Added GP_POR
authorAndrew Zonenberg <azonenberg@drawersteak.com>
Tue, 5 Apr 2016 04:46:07 +0000 (21:46 -0700)
committerAndrew Zonenberg <azonenberg@drawersteak.com>
Tue, 5 Apr 2016 04:46:07 +0000 (21:46 -0700)
techlibs/greenpak4/cells_sim.v

index d98526215d8e0576a0cd091dd8f84c677e9da7df..f013d9b71f4ef62ccc755ede9cf5e68f73d889a7 100644 (file)
@@ -153,3 +153,25 @@ module GP_BANDGAP(output reg OK, output reg VOUT);
        //cannot simulate mixed signal IP
        
 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