yosys/manual/PRESENTATION_ExAdv/macc_xilinx_test.ys

44 lines
1.3 KiB
Plaintext
Raw Normal View History

2014-02-20 13:44:41 -06:00
read_verilog macc_xilinx_test.v
read_verilog -lib -icells macc_xilinx_unwrap_map.v
2014-02-20 16:44:28 -06:00
read_verilog -lib -icells macc_xilinx_xmap.v
hierarchy -check ;;
2014-02-20 13:44:41 -06:00
2014-02-20 19:13:02 -06:00
show -prefix macc_xilinx_test1a -format pdf -notitle test1
show -prefix macc_xilinx_test2a -format pdf -notitle test2
2014-02-20 13:44:41 -06:00
techmap -map macc_xilinx_swap_map.v;;
2014-02-20 19:13:02 -06:00
show -prefix macc_xilinx_test1b -format pdf -notitle test1
show -prefix macc_xilinx_test2b -format pdf -notitle test2
2014-02-20 13:44:41 -06:00
techmap -map macc_xilinx_wrap_map.v
connwrappers -unsigned $__mul_wrapper Y Y_WIDTH \
-unsigned $__add_wrapper Y Y_WIDTH;;
2014-02-20 19:13:02 -06:00
show -prefix macc_xilinx_test1c -format pdf -notitle test1
show -prefix macc_xilinx_test2c -format pdf -notitle test2
2014-02-20 16:44:28 -06:00
design -push
read_verilog macc_xilinx_xmap.v
techmap -map macc_xilinx_swap_map.v
techmap -map macc_xilinx_wrap_map.v;;
design -save __macc_xilinx_xmap
design -pop
extract -constports -ignore_parameters \
-map %__macc_xilinx_xmap \
-swap $__add_wrapper A,B ;;
2014-02-20 19:13:02 -06:00
show -prefix macc_xilinx_test1d -format pdf -notitle test1
show -prefix macc_xilinx_test2d -format pdf -notitle test2
2014-02-20 16:44:28 -06:00
techmap -map macc_xilinx_unwrap_map.v;;
2014-02-20 19:13:02 -06:00
show -prefix macc_xilinx_test1e -format pdf -notitle test1
show -prefix macc_xilinx_test2e -format pdf -notitle test2
2014-02-21 07:59:59 -06:00
design -load __macc_xilinx_xmap
2014-02-20 19:13:02 -06:00
show -prefix macc_xilinx_xmap -format pdf -notitle
2014-02-20 13:44:41 -06:00