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-04 21:20:10 -06:00
|
|
|
.subckt adder_lut4 in[1]=a in[0]=b lut4_out[0]=c
|
|
|
|
.param LUT 1000100010001000
|
2021-02-02 15:59:31 -06:00
|
|
|
|
|
|
|
.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
|