mirror of
https://github.com/annoyatron255/yosys4gal.git
synced 2024-12-22 10:42:24 +00:00
Insert trivial SOPs between OLMCs
This commit is contained in:
parent
abdaf710e6
commit
ec69cbde5b
|
@ -88,6 +88,9 @@ techmap -max_iter 1 -map techmaps/pla_olmc_int.v */t:GAL_SOP %co1 */w:* %i */t:G
|
|||
iopadmap -bits -outpad GAL_COMB_OUTPUT_P A:Y */t:GAL_SOP "%x:+\[Y\]" */t:GAL_SOP %d o:* %i
|
||||
techmap -map techmaps/olmc_comb.v
|
||||
|
||||
# Add trivial SOPs between directly connected OLMCs
|
||||
techmap -max_iter 1 -map techmaps/trivial_sop_olmc.v */t:GAL_OLMC %ci1 */w:* %i */t:GAL_SOP %co1 */w:* %i %i %c %co1 %D */t:GAL_OLMC %D
|
||||
|
||||
clean -purge
|
||||
|
||||
## Write output files
|
||||
|
|
31
techmaps/trivial_sop_olmc.v
Normal file
31
techmaps/trivial_sop_olmc.v
Normal file
|
@ -0,0 +1,31 @@
|
|||
(* techmap_celltype = "GAL_OLMC" *)
|
||||
module _80_GAL_OLMC (C, E, A, Y);
|
||||
parameter REGISTERED = 0;
|
||||
parameter INVERTED = 0;
|
||||
|
||||
input C, E, A;
|
||||
inout Y;
|
||||
|
||||
wire int;
|
||||
|
||||
generate
|
||||
GAL_OLMC #(
|
||||
.REGISTERED(REGISTERED),
|
||||
.INVERTED(INVERTED)
|
||||
) _TECHMAP_REPLACE_ (
|
||||
.C(C),
|
||||
.E(E),
|
||||
.A(int),
|
||||
.Y(Y)
|
||||
);
|
||||
|
||||
GAL_SOP #(
|
||||
.WIDTH(1),
|
||||
.DEPTH(1),
|
||||
.TABLE(10)
|
||||
) trivial_sop (
|
||||
.A(A),
|
||||
.Y(int),
|
||||
);
|
||||
endgenerate
|
||||
endmodule
|
Loading…
Reference in a new issue