2021-02-02 15:59:31 -06:00
|
|
|
# This is an artificial microbenchmark
|
|
|
|
# which is designed to validate the support
|
|
|
|
# on using bitstream information from the .param
|
|
|
|
# attribute of hard macro of LUTs
|
|
|
|
#
|
|
|
|
.model and2
|
|
|
|
.inputs a b
|
|
|
|
.outputs c
|
|
|
|
|
2021-02-02 16:51:16 -06:00
|
|
|
.subckt adder_lut in[1]=a in[0]=b lut4_out[0]=c
|
2021-02-02 15:59:31 -06:00
|
|
|
.param LUT 1010101010101010
|
|
|
|
|
|
|
|
.end
|
2021-02-02 16:51:16 -06:00
|
|
|
|
|
|
|
.model adder_lut4
|
|
|
|
.inputs in[3] in[2] in[1] in[0]
|
|
|
|
.outputs lut2_out[1] lut2_out[0] lut4_out[0]
|
|
|
|
.blackbox
|
|
|
|
.end
|