[HDL] Add yosys tech lib for a DSP-only heterogeneous FPGA
This commit is contained in:
parent
35567fb3c3
commit
a4bbffd1aa
|
@ -0,0 +1,12 @@
|
|||
//-----------------------------
|
||||
// 8-bit multiplier
|
||||
//-----------------------------
|
||||
module mult_8(
|
||||
input [0:7] A,
|
||||
input [0:7] B,
|
||||
output [0:15] Y
|
||||
);
|
||||
|
||||
assign Y = A * B;
|
||||
|
||||
endmodule
|
|
@ -0,0 +1,20 @@
|
|||
//-----------------------------
|
||||
// 8-bit multiplier
|
||||
//-----------------------------
|
||||
module mult_8x8 (
|
||||
input [0:7] A,
|
||||
input [0:7] B,
|
||||
output [0:15] Y
|
||||
);
|
||||
parameter A_SIGNED = 0;
|
||||
parameter B_SIGNED = 0;
|
||||
parameter A_WIDTH = 0;
|
||||
parameter B_WIDTH = 0;
|
||||
parameter Y_WIDTH = 0;
|
||||
|
||||
mult_8 #() _TECHMAP_REPLACE_ (
|
||||
.A (A),
|
||||
.B (B),
|
||||
.Y (Y) );
|
||||
|
||||
endmodule
|
Loading…
Reference in New Issue