projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90b4411
)
Fix TRELLIS_FF simulation model
author
Miodrag Milanovic
<mmicko@gmail.com>
Sat, 31 Aug 2019 09:12:06 +0000
(11:12 +0200)
committer
Miodrag Milanovic
<mmicko@gmail.com>
Sat, 31 Aug 2019 09:12:06 +0000
(11:12 +0200)
techlibs/ecp5/cells_sim.v
patch
|
blob
|
history
diff --git
a/techlibs/ecp5/cells_sim.v
b/techlibs/ecp5/cells_sim.v
index 75a1aad1f48b884192fce737a3f9c47d525d8598..5bdb8395e802dad58b5ecc8b0ab5f0a0545981a2 100644
(file)
--- a/
techlibs/ecp5/cells_sim.v
+++ b/
techlibs/ecp5/cells_sim.v
@@
-229,14
+229,15
@@
module TRELLIS_FF(input CLK, LSR, CE, DI, M, output reg Q);
parameter REGSET = "RESET";
parameter [127:0] LSRMODE = "LSR";
-
reg
muxce;
- always @(*)
+
wire
muxce;
+ generate
case (CEMUX)
- "1": muxce = 1'b1;
- "0": muxce = 1'b0;
- "INV": muxce = ~CE;
- default: muxce = CE;
+ "1":
assign
muxce = 1'b1;
+ "0":
assign
muxce = 1'b0;
+ "INV":
assign
muxce = ~CE;
+ default:
assign
muxce = CE;
endcase
+ endgenerate
wire muxlsr = (LSRMUX == "INV") ? ~LSR : LSR;
wire muxclk = (CLKMUX == "INV") ? ~CLK : CLK;