projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b7ed71
)
Move signal declarations to before first use
author
Jeff Goeders
<jeff.goeders@gmail.com>
Mon, 19 Oct 2020 22:09:04 +0000
(16:09 -0600)
committer
Jeff Goeders
<jeff.goeders@gmail.com>
Mon, 19 Oct 2020 22:09:18 +0000
(16:09 -0600)
Signed-off-by: Jeff Goeders <jeff.goeders@gmail.com>
techlibs/xilinx/cells_sim.v
patch
|
blob
|
history
diff --git
a/techlibs/xilinx/cells_sim.v
b/techlibs/xilinx/cells_sim.v
index 40804c36732ae6ded2011b5277a1d60962782406..4162160bbe2afb5ed14be969c96da0f2bf0ac166 100644
(file)
--- a/
techlibs/xilinx/cells_sim.v
+++ b/
techlibs/xilinx/cells_sim.v
@@
-2335,6
+2335,8
@@
parameter integer PREG = 1;
// The multiplier.
wire signed [35:0] P_MULT;
+wire signed [17:0] A_MULT;
+wire signed [17:0] B_MULT;
assign P_MULT = A_MULT * B_MULT;
// The cascade output.
@@
-2373,8
+2375,6
@@
always @(posedge CLK) begin
end
// The register enables.
-wire signed [17:0] A_MULT;
-wire signed [17:0] B_MULT;
assign A_MULT = (AREG == 1) ? A_REG : A;
assign B_MULT = (BREG == 1) ? B_REG : B_MUX;
assign P = (PREG == 1) ? P_REG : P_MULT;