Added blackbox $__COUNT_ cell model
authorAndrew Zonenberg <azonenberg@drawersteak.com>
Tue, 29 Aug 2017 21:17:29 +0000 (14:17 -0700)
committerAndrew Zonenberg <azonenberg@drawersteak.com>
Fri, 1 Sep 2017 13:44:28 +0000 (06:44 -0700)
techlibs/greenpak4/Makefile.inc
techlibs/greenpak4/cells_blackbox.v [new file with mode: 0644]

index 9c3efcb8d610a35f2ab2aa9c14530d6641d6346d..b43fb7511f87fc30659f7a0236ca673510e042cb 100644 (file)
@@ -2,6 +2,7 @@
 OBJS += techlibs/greenpak4/synth_greenpak4.o
 OBJS += techlibs/greenpak4/greenpak4_dffinv.o
 
+$(eval $(call add_share_file,share/greenpak4,techlibs/greenpak4/cells_blackbox.v))
 $(eval $(call add_share_file,share/greenpak4,techlibs/greenpak4/cells_latch.v))
 $(eval $(call add_share_file,share/greenpak4,techlibs/greenpak4/cells_map.v))
 $(eval $(call add_share_file,share/greenpak4,techlibs/greenpak4/cells_sim.v))
diff --git a/techlibs/greenpak4/cells_blackbox.v b/techlibs/greenpak4/cells_blackbox.v
new file mode 100644 (file)
index 0000000..8dd38a0
--- /dev/null
@@ -0,0 +1,17 @@
+module \$__COUNT_ (CE, CLK, OUT, POUT, RST, UP);
+
+       input wire CE;
+       input wire CLK;
+       output reg OUT;
+       output reg[WIDTH-1:0] POUT;
+       input wire RST;
+       input wire UP;
+
+       parameter COUNT_TO = 1;
+       parameter RESET_MODE = "RISING";
+       parameter HAS_POUT = 0;
+       parameter HAS_CE = 0;
+       parameter WIDTH = 8;
+       parameter DIRECTION = "DOWN";
+
+endmodule