Files

53 lines
1.8 KiB
Plaintext
Raw Permalink Normal View History

2023-11-16 09:46:47 +13:00
# ============================================================================
# part a
2014-02-20 20:44:41 +01:00
read_verilog macc_xilinx_test.v
read_verilog -lib -icells macc_xilinx_unwrap_map.v
2014-02-20 23:44:28 +01:00
read_verilog -lib -icells macc_xilinx_xmap.v
hierarchy -check ;;
2023-11-16 09:46:47 +13:00
# end part a
2023-11-14 18:54:16 +13:00
show -prefix macc_xilinx_test1a -format dot -notitle test1
show -prefix macc_xilinx_test2a -format dot -notitle test2
2014-02-20 20:44:41 +01:00
2023-11-16 09:46:47 +13:00
# ============================================================================
# part b
2014-02-20 20:44:41 +01:00
techmap -map macc_xilinx_swap_map.v;;
2023-11-16 09:46:47 +13:00
# end part b
2023-11-14 18:54:16 +13:00
show -prefix macc_xilinx_test1b -format dot -notitle test1
show -prefix macc_xilinx_test2b -format dot -notitle test2
2014-02-20 20:44:41 +01:00
2023-11-16 09:46:47 +13:00
# ============================================================================
# part c
2014-02-20 20:44:41 +01:00
techmap -map macc_xilinx_wrap_map.v
connwrappers -unsigned $__mul_wrapper Y Y_WIDTH \
-unsigned $__add_wrapper Y Y_WIDTH;;
2023-11-16 09:46:47 +13:00
# end part c
2023-11-14 18:54:16 +13:00
show -prefix macc_xilinx_test1c -format dot -notitle test1
show -prefix macc_xilinx_test2c -format dot -notitle test2
2014-02-20 23:44:28 +01:00
2023-11-16 09:46:47 +13:00
# ============================================================================
# part d
2014-02-20 23:44:28 +01: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 ;;
2023-11-16 09:46:47 +13:00
# end part d
2023-11-14 18:54:16 +13:00
show -prefix macc_xilinx_test1d -format dot -notitle test1
show -prefix macc_xilinx_test2d -format dot -notitle test2
2014-02-20 23:44:28 +01:00
2023-11-16 09:46:47 +13:00
# ============================================================================
# part e
2014-02-20 23:44:28 +01:00
techmap -map macc_xilinx_unwrap_map.v;;
2023-11-16 09:46:47 +13:00
# end part e
2023-11-14 18:54:16 +13:00
show -prefix macc_xilinx_test1e -format dot -notitle test1
show -prefix macc_xilinx_test2e -format dot -notitle test2
2014-02-21 02:13:02 +01:00
2014-02-21 14:59:59 +01:00
design -load __macc_xilinx_xmap
2023-11-14 18:54:16 +13:00
show -prefix macc_xilinx_xmap -format dot -notitle