aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/intel/cyclonev/cells_sim.v
diff options
context:
space:
mode:
authorDiego <dhdezr@gmail.com>2019-04-11 19:59:03 -0500
committerDiego <dhdezr@gmail.com>2019-04-11 19:59:03 -0500
commit643ae9bfc534c20444dfcd33083c6c188c2f1ec8 (patch)
tree82488114e41693a661815e3c2806d99c1350c436 /techlibs/intel/cyclonev/cells_sim.v
parent0deaccbaae436bc94ad5b2913fa39a9368c09ace (diff)
downloadyosys-643ae9bfc534c20444dfcd33083c6c188c2f1ec8.tar.gz
yosys-643ae9bfc534c20444dfcd33083c6c188c2f1ec8.tar.bz2
yosys-643ae9bfc534c20444dfcd33083c6c188c2f1ec8.zip
Fixing issues in CycloneV cell sim
Diffstat (limited to 'techlibs/intel/cyclonev/cells_sim.v')
-rw-r--r--techlibs/intel/cyclonev/cells_sim.v12
1 files changed, 9 insertions, 3 deletions
diff --git a/techlibs/intel/cyclonev/cells_sim.v b/techlibs/intel/cyclonev/cells_sim.v
index fa27c2c8e..9b2a10e72 100644
--- a/techlibs/intel/cyclonev/cells_sim.v
+++ b/techlibs/intel/cyclonev/cells_sim.v
@@ -85,7 +85,7 @@ module cyclonev_lcell_comb
begin
upper_lut_value = lut4(mask[31:16], dataa, datab, datac, datad);
lower_lut_value = lut4(mask[15:0], dataa, datab, datac, datad);
- lut5 = (datae) ? upper_mask_value : lower_mask_value;
+ lut5 = (datae) ? upper_lut_value : lower_lut_value;
end
endfunction // lut5
@@ -95,15 +95,16 @@ module cyclonev_lcell_comb
input dataa, datab, datac, datad, datae, dataf;
reg upper_lut_value;
reg lower_lut_value;
+ reg out_0, out_1, out_2, out_3;
begin
upper_lut_value = lut5(mask[63:32], dataa, datab, datac, datad, datae);
lower_lut_value = lut5(mask[31:0], dataa, datab, datac, datad, datae);
- lut6 = (dataf) ? upper_mask_value : lower_mask_value;
+ lut6 = (dataf) ? upper_lut_value : lower_lut_value;
end
endfunction // lut6
assign {mask_a, mask_b, mask_c, mask_d} = {lut_mask[15:0], lut_mask[31:16], lut_mask[47:32], lut_mask[63:48]};
-
+`ifdef ADVANCED_ALM
always @(*) begin
if(extended_lut == "on")
shared_lut_alm = datag;
@@ -115,6 +116,11 @@ module cyclonev_lcell_comb
out_2 = lut4(mask_c, dataa, datab, datac, datad);
out_3 = lut4(mask_d, dataa, datab, shared_lut_alm, datad);
end
+`else
+ `ifdef DEBUG
+ initial $display("Advanced ALM lut combine is not implemented yet");
+ `endif
+`endif
endmodule // cyclonev_lcell_comb