Skip to content

Commit

Permalink
Merge pull request f4pga#1505 from antmicro/limit_200T
Browse files Browse the repository at this point in the history
Define A200T device with limited grid
  • Loading branch information
litghost committed Jul 14, 2020
2 parents 21fe508 + 6dc0824 commit d54ff2a
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 3 deletions.
29 changes: 27 additions & 2 deletions tests/9-soc/picosoc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ foreach(FREQ ${NEXYS_VIDEO_FREQS})
get_file_target(TARGET_NEXYS_VIDEO_DEMO_V nexys_video_demo_${FREQ}.v)
add_dependencies(${TARGET_NEXYS_VIDEO_DEMO_V} ${TARGET_NEXYS_VIDEO_XDC} ${TARGET_NEXYS_VIDEO_PCF})

math(EXPR PERIOD "1000 / ${FREQ}" OUTPUT_FORMAT DECIMAL)

add_fpga_target(
NAME picosoc_nexys_video_${FREQ}
BOARD nexys_video
Expand All @@ -168,15 +170,38 @@ foreach(FREQ ${NEXYS_VIDEO_FREQS})
EXPLICIT_ADD_FILE_TARGET
)

math(EXPR PERIOD "1000 / ${FREQ}" OUTPUT_FORMAT DECIMAL)

add_vivado_target(
NAME picosoc_nexys_video_${FREQ}_vivado
PARENT_NAME picosoc_nexys_video_${FREQ}
CLOCK_PINS clk
CLOCK_PERIODS ${PERIOD}
)

# Nexys Video with a limited grid

add_fpga_target(
NAME picosoc_nexys_video_mid_${FREQ}
BOARD nexys_video-mid
TOP nexys_video_demo
SOURCES
nexys_video_demo_${FREQ}.v
picosoc_noflash.v
picorv32.v
simpleuart.v
firmware_noflash_${FREQ}.v
SDC_FILE nexys_video_${FREQ}.sdc
INPUT_IO_FILE ${NEXYS_VIDEO_PCF}
INPUT_XDC_FILE ${NEXYS_VIDEO_XDC}
EXPLICIT_ADD_FILE_TARGET
)

add_vivado_target(
NAME picosoc_nexys_video_mid_${FREQ}_vivado
PARENT_NAME picosoc_nexys_video_mid_${FREQ}
CLOCK_PINS clk
CLOCK_PERIODS ${PERIOD}
)

endforeach()

# ============================================================================
Expand Down
2 changes: 1 addition & 1 deletion xc/xc7/archs/artix7_200t/devices/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
add_xc_device_define(
ARCH artix7_200t
PART xc7a200tffg1156-1
DEVICES xc7a200t
DEVICES xc7a200t xc7a200t-mid
)
32 changes: 32 additions & 0 deletions xc/xc7/archs/artix7_200t/devices/xc7a200t-mid-virt/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
add_xc_device_define_type(
ARCH artix7_200t
DEVICE xc7a200t-mid
TILE_TYPES
CLBLL_L
CLBLL_R
CLBLM_L
CLBLM_R
BRAM_L
LIOPAD_M
LIOPAD_S
LIOPAD_SING
RIOPAD_M
RIOPAD_S
RIOPAD_SING
CLK_BUFG_BOT_R
CLK_BUFG_TOP_R
CMT_TOP_L_UPPER_T
CMT_TOP_R_UPPER_T
HCLK_IOI3
PB_TYPES
SLICEL
SLICEM
BRAM_L
IOPAD
IOPAD_M
IOPAD_S
BUFGCTRL
PLLE2_ADV
HCLK_IOI3
GRAPH_LIMIT 0,0,264,207
)
9 changes: 9 additions & 0 deletions xc/xc7/boards.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,15 @@ add_xc_board(
PROG_CMD "${OPENOCD} -f board/digilent_nexys_video.cfg -c \\\"init $<SEMICOLON> pld load 0 \${OUT_BIN} $<SEMICOLON> exit\\\""
)

add_xc_board(
BOARD nexys_video-mid
DEVICE xc7a200t-mid
PACKAGE test
PART xc7a200tsbg484-1
PROG_TOOL ${OPENOCD_TARGET}
PROG_CMD "${OPENOCD} -f board/digilent_nexys_video.cfg -c \\\"init $<SEMICOLON> pld load 0 \${OUT_BIN} $<SEMICOLON> exit\\\""
)

#add_xc_board(
# BOARD zedboard-full
# DEVICE xc7z020
Expand Down

0 comments on commit d54ff2a

Please sign in to comment.