diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-09-18 12:00:37 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-09-18 12:00:37 +0200 |
commit | 745d56149d276f52146e302d59f74ede8d1875ba (patch) | |
tree | d4e44c010631a538eef8f8cf95312edd89bd2ece /techlibs/greenpak4/cells_sim.v | |
parent | 452d4bf741cd46176c1dfbd232dd560e436b9f15 (diff) |
Renamed GreenPAK4 cells, improved GP4 DFF mapping
Diffstat (limited to 'techlibs/greenpak4/cells_sim.v')
-rw-r--r-- | techlibs/greenpak4/cells_sim.v | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/techlibs/greenpak4/cells_sim.v b/techlibs/greenpak4/cells_sim.v index 6bcbda8e..d9ddaacc 100644 --- a/techlibs/greenpak4/cells_sim.v +++ b/techlibs/greenpak4/cells_sim.v @@ -1,4 +1,4 @@ -module DFF(input D, CLK, nRSTZ, nSETZ, output reg Q); +module GP_DFF(input D, CLK, nRSTZ, nSETZ, output reg Q); always @(posedge CLK, negedge nRSTZ, negedge nSETZ) begin if (!nRSTZ) Q <= 1'b0; @@ -9,17 +9,17 @@ module DFF(input D, CLK, nRSTZ, nSETZ, output reg Q); end endmodule -module LUT2(input IN0, IN1, output OUT); +module GP_2LUT(input IN0, IN1, output OUT); parameter [3:0] INIT = 0; assign OUT = INIT[{IN1, IN0}]; endmodule -module LUT3(input IN0, IN1, IN2, output OUT); +module GP_3LUT(input IN0, IN1, IN2, output OUT); parameter [7:0] INIT = 0; assign OUT = INIT[{IN2, IN1, IN0}]; endmodule -module LUT4(input IN0, IN1, IN2, IN3, output OUT); +module GP_4LUT(input IN0, IN1, IN2, IN3, output OUT); parameter [15:0] INIT = 0; assign OUT = INIT[{IN3, IN2, IN1, IN0}]; endmodule |