aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorYann Herklotz <git@ymhg.org>2019-05-06 19:05:26 +0100
committerYann Herklotz <git@ymhg.org>2019-05-06 19:05:26 +0100
commitaf9991b01ae2732aef5ed379fab898bdb46d2095 (patch)
treeb75e3579259b473119afca3f0fbacb417eff2b72 /data
parent8ca432fb7a28d99a6b02a6f63110e0a9516032a7 (diff)
downloadverismith-af9991b01ae2732aef5ed379fab898bdb46d2095.tar.gz
verismith-af9991b01ae2732aef5ed379fab898bdb46d2095.zip
Replace by the unisims model
Diffstat (limited to 'data')
-rw-r--r--data/cells_xilinx_7.v20
1 files changed, 7 insertions, 13 deletions
diff --git a/data/cells_xilinx_7.v b/data/cells_xilinx_7.v
index 329b463..d7e9f67 100644
--- a/data/cells_xilinx_7.v
+++ b/data/cells_xilinx_7.v
@@ -241,22 +241,16 @@ module FD (Q, C, D);
endmodule
module LDPE (Q, D, G, GE, PRE);
- parameter [0:0] INIT = 1'b1;
- parameter [0:0] IS_G_INVERTED = 1'b0;
- parameter [0:0] IS_PRE_INVERTED = 1'b0;
+ parameter INIT = 1'b1;
output Q;
- reg Q = INIT;
+ reg Q;
input D, G, GE, PRE;
- wire G_in, PRE_in;
- assign G_in = IS_G_INVERTED ^ G;
- assign PRE_in = IS_PRE_INVERTED ^ PRE;
-
- always @( PRE_in or D or G_in or GE)
- if (PRE_in)
- Q <= 1;
- else if (G_in && GE)
- Q <= D;
+ always @( PRE or D or G or GE)
+ if (PRE)
+ Q <= 1;
+ else if (G && GE)
+ Q <= D;
endmodule