mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
made redunantmul generate DW02_multp for synopsys sythnesis
This commit is contained in:
parent
295a3c7af2
commit
51185478df
@ -30,6 +30,7 @@
|
|||||||
`define QEMU 0
|
`define QEMU 0
|
||||||
`define BUILDROOT 0
|
`define BUILDROOT 0
|
||||||
`define BUSYBEAR 0
|
`define BUSYBEAR 0
|
||||||
|
`define DESIGN_COMPILER 0
|
||||||
|
|
||||||
// RV32 or RV64: XLEN = 32 or 64
|
// RV32 or RV64: XLEN = 32 or 64
|
||||||
`define XLEN 32
|
`define XLEN 32
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
`define QEMU 0
|
`define QEMU 0
|
||||||
`define BUILDROOT 0
|
`define BUILDROOT 0
|
||||||
`define BUSYBEAR 0
|
`define BUSYBEAR 0
|
||||||
|
`define DESIGN_COMPILER 0
|
||||||
|
|
||||||
// RV32 or RV64: XLEN = 32 or 64
|
// RV32 or RV64: XLEN = 32 or 64
|
||||||
`define XLEN 32
|
`define XLEN 32
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
`define QEMU 0
|
`define QEMU 0
|
||||||
`define BUILDROOT 0
|
`define BUILDROOT 0
|
||||||
`define BUSYBEAR 0
|
`define BUSYBEAR 0
|
||||||
|
`define DESIGN_COMPILER 0
|
||||||
|
|
||||||
// RV32 or RV64: XLEN = 32 or 64
|
// RV32 or RV64: XLEN = 32 or 64
|
||||||
`define XLEN 64
|
`define XLEN 64
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
`define QEMU 0
|
`define QEMU 0
|
||||||
`define BUILDROOT 0
|
`define BUILDROOT 0
|
||||||
`define BUSYBEAR 0
|
`define BUSYBEAR 0
|
||||||
|
`define DESIGN_COMPILER 0
|
||||||
|
|
||||||
// RV32 or RV64: XLEN = 32 or 64
|
// RV32 or RV64: XLEN = 32 or 64
|
||||||
`define XLEN 64
|
`define XLEN 64
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
`define QEMU 0
|
`define QEMU 0
|
||||||
`define BUILDROOT 0
|
`define BUILDROOT 0
|
||||||
`define BUSYBEAR 0
|
`define BUSYBEAR 0
|
||||||
|
`define DESIGN_COMPILER 0
|
||||||
|
|
||||||
// RV32 or RV64: XLEN = 32 or 64
|
// RV32 or RV64: XLEN = 32 or 64
|
||||||
`define XLEN 64
|
`define XLEN 64
|
||||||
|
@ -25,16 +25,19 @@
|
|||||||
|
|
||||||
`include "wally-config.vh"
|
`include "wally-config.vh"
|
||||||
|
|
||||||
/* verilator lint_off UNOPTFLAT */
|
|
||||||
|
|
||||||
module redundantmul #(parameter WIDTH =8)(
|
module redundantmul #(parameter WIDTH =8)(
|
||||||
input logic [WIDTH-1:0] a,b,
|
input logic [WIDTH-1:0] a,b,
|
||||||
output logic [2*WIDTH-1:0] out0, out1);
|
output logic [2*WIDTH-1:0] out0, out1);
|
||||||
|
|
||||||
|
generate
|
||||||
|
if (`DESIGN_COMPILER == 1)
|
||||||
|
DW02_multp #(WIDTH, WIDTH, 2*WIDTH) bigmul(.a, .b, .tc(1'b0), .out0, .out1);
|
||||||
|
else begin
|
||||||
assign out0 = 0;
|
assign out0 = 0;
|
||||||
assign out1 = a*b;
|
assign out1 = a*b;
|
||||||
// DW02_multp #(`XLEN, `XLEN, 2*`XLEN) bigmul(.a(Aprime), .b(Bprime), .tc(1'b0), .out0(PP0E), .out1(PP1E));
|
end
|
||||||
|
endgenerate
|
||||||
|
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
/* verilator lint_on UNOPTFLAT */
|
|
||||||
|
Loading…
Reference in New Issue
Block a user