summaryrefslogtreecommitdiff
path: root/techlibs
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-09-06 19:44:11 +0200
committerClifford Wolf <clifford@clifford.at>2014-09-06 19:44:11 +0200
commitfa64942018a39085301d7f24832ad0ad7b0d22f1 (patch)
tree35c826c4ac0b283c3e9f5cd8ef8448afd7425e69 /techlibs
parent680eaaac41bc64000faa483955279155b0fc0a6b (diff)
Added $macc SAT model
Diffstat (limited to 'techlibs')
-rw-r--r--techlibs/common/simlib.v6
-rw-r--r--techlibs/common/techmap.v6
2 files changed, 6 insertions, 6 deletions
diff --git a/techlibs/common/simlib.v b/techlibs/common/simlib.v
index eabd6595..b1f871d9 100644
--- a/techlibs/common/simlib.v
+++ b/techlibs/common/simlib.v
@@ -771,16 +771,16 @@ module \$macc (A, B, Y);
localparam integer num_abits = $clog2(A_WIDTH);
function [2*num_ports*num_abits-1:0] get_port_offsets;
- input [CONFIG_WIDTH-1:0] CONFIG;
+ input [CONFIG_WIDTH-1:0] cfg;
integer i, cursor;
begin
cursor = 0;
get_port_offsets = 0;
for (i = 0; i < num_ports; i = i+1) begin
get_port_offsets[(2*i + 0)*num_abits +: num_abits] = cursor;
- cursor = cursor + CONFIG[4 + i*(2 + 2*num_bits) + 2 +: num_bits];
+ cursor = cursor + cfg[4 + i*(2 + 2*num_bits) + 2 +: num_bits];
get_port_offsets[(2*i + 1)*num_abits +: num_abits] = cursor;
- cursor = cursor + CONFIG[4 + i*(2 + 2*num_bits) + 2 + num_bits +: num_bits];
+ cursor = cursor + cfg[4 + i*(2 + 2*num_bits) + 2 + num_bits +: num_bits];
end
end
endfunction
diff --git a/techlibs/common/techmap.v b/techlibs/common/techmap.v
index 8237a737..f0397858 100644
--- a/techlibs/common/techmap.v
+++ b/techlibs/common/techmap.v
@@ -597,16 +597,16 @@ module \$macc (A, B, Y);
localparam integer num_abits = $clog2(A_WIDTH);
function [2*num_ports*num_abits-1:0] get_port_offsets;
- input [CONFIG_WIDTH-1:0] CONFIG;
+ input [CONFIG_WIDTH-1:0] cfg;
integer i, cursor;
begin
cursor = 0;
get_port_offsets = 0;
for (i = 0; i < num_ports; i = i+1) begin
get_port_offsets[(2*i + 0)*num_abits +: num_abits] = cursor;
- cursor = cursor + CONFIG[4 + i*(2 + 2*num_bits) + 2 +: num_bits];
+ cursor = cursor + cfg[4 + i*(2 + 2*num_bits) + 2 +: num_bits];
get_port_offsets[(2*i + 1)*num_abits +: num_abits] = cursor;
- cursor = cursor + CONFIG[4 + i*(2 + 2*num_bits) + 2 + num_bits +: num_bits];
+ cursor = cursor + cfg[4 + i*(2 + 2*num_bits) + 2 + num_bits +: num_bits];
end
end
endfunction