aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2017-02-25 13:08:27 +0100
committerClifford Wolf <clifford@clifford.at>2017-02-25 13:08:27 +0100
commitf3324ed0cc35590e4d0042f6265b83bab0af37bf (patch)
treebd3f3b213116d318eb2d713add77727bd50632dc
parentdac0842d61b5e3ee63d6f8b87225cde82a763768 (diff)
parent931d775b0b980a073ec29a122fde87138ba0d844 (diff)
downloadyosys-f3324ed0cc35590e4d0042f6265b83bab0af37bf.tar.gz
yosys-f3324ed0cc35590e4d0042f6265b83bab0af37bf.tar.bz2
yosys-f3324ed0cc35590e4d0042f6265b83bab0af37bf.zip
Merge branch 'master' of github.com:cliffordwolf/yosys
-rw-r--r--techlibs/greenpak4/cells_sim.v7
1 files changed, 4 insertions, 3 deletions
diff --git a/techlibs/greenpak4/cells_sim.v b/techlibs/greenpak4/cells_sim.v
index dd21bdd50..57f27b44e 100644
--- a/techlibs/greenpak4/cells_sim.v
+++ b/techlibs/greenpak4/cells_sim.v
@@ -53,7 +53,7 @@ module GP_CLKBUF(input wire IN, output wire OUT);
assign OUT = IN;
endmodule
-module GP_COUNT8(input CLK, input wire RST, output reg OUT);
+module GP_COUNT8(input CLK, input wire RST, output reg OUT, output reg[7:0] POUT);
parameter RESET_MODE = "RISING";
@@ -67,6 +67,7 @@ module GP_COUNT8(input CLK, input wire RST, output reg OUT);
//Combinatorially output whenever we wrap low
always @(*) begin
OUT <= (count == 8'h0);
+ OUT <= count;
end
//POR or SYSRST reset value is COUNT_TO. Datasheet is unclear but conversations w/ Silego confirm.
@@ -103,7 +104,7 @@ module GP_COUNT14(input CLK, input wire RST, output reg OUT);
endmodule
module GP_COUNT8_ADV(input CLK, input RST, output reg OUT,
- input UP, input KEEP);
+ input UP, input KEEP, output reg[7:0] POUT);
parameter RESET_MODE = "RISING";
parameter RESET_VALUE = "ZERO";
@@ -116,7 +117,7 @@ module GP_COUNT8_ADV(input CLK, input RST, output reg OUT,
endmodule
module GP_COUNT14_ADV(input CLK, input RST, output reg OUT,
- input UP, input KEEP);
+ input UP, input KEEP, output reg[7:0] POUT);
parameter RESET_MODE = "RISING";
parameter RESET_VALUE = "ZERO";