Adding ability to configure https://theretroweb.com/expansioncards/s/celestica-fpga-accelerator-du-pcb-001-003 with hint from https://fpga.com.ua/index.php?product_id=329&route=product%2Fproduct
This commit is contained in:
parent
a91dd9f628
commit
31ffeb8290
Binary file not shown.
|
|
@ -4,6 +4,7 @@
|
||||||
set_property CFGBVS GND [current_design]
|
set_property CFGBVS GND [current_design]
|
||||||
set_property CONFIG_VOLTAGE 1.8 [current_design]
|
set_property CONFIG_VOLTAGE 1.8 [current_design]
|
||||||
set_property BITSTREAM.GENERAL.COMPRESS TRUE [current_design]
|
set_property BITSTREAM.GENERAL.COMPRESS TRUE [current_design]
|
||||||
|
set_property BITSTREAM.CONFIG.UNUSEDPIN PULLNONE [current_design]
|
||||||
|
|
||||||
## Address bus [25:1]
|
## Address bus [25:1]
|
||||||
set_property -dict {PACKAGE_PIN AD26 IOSTANDARD LVCMOS18} [get_ports {bpi_addr[1]}]
|
set_property -dict {PACKAGE_PIN AD26 IOSTANDARD LVCMOS18} [get_ports {bpi_addr[1]}]
|
||||||
|
|
|
||||||
|
|
@ -357,7 +357,9 @@ bool BPIFlash::erase_block(uint32_t addr)
|
||||||
|
|
||||||
/* Verify erase by reading first few words */
|
/* Verify erase by reading first few words */
|
||||||
if (_verbose) {
|
if (_verbose) {
|
||||||
bpi_write(0, FLASH_CMD_READ_ARRAY);
|
/* Send READ_ARRAY to the erased block's address (not addr 0),
|
||||||
|
* because multi-bank flash requires per-bank mode commands */
|
||||||
|
bpi_write(word_addr, FLASH_CMD_READ_ARRAY);
|
||||||
usleep(100);
|
usleep(100);
|
||||||
char buf[128];
|
char buf[128];
|
||||||
snprintf(buf, sizeof(buf), "Verify erase at 0x%06x:", addr);
|
snprintf(buf, sizeof(buf), "Verify erase at 0x%06x:", addr);
|
||||||
|
|
|
||||||
|
|
@ -880,11 +880,11 @@ void Xilinx::program_mem(ConfigBitstreamParser *bitfile)
|
||||||
* the TLR (Test-Logic-Reset) state.
|
* the TLR (Test-Logic-Reset) state.
|
||||||
*/
|
*/
|
||||||
_jtag->shiftIR(get_ircode(_ircode_map, "JPROGRAM"), NULL, _irlen);
|
_jtag->shiftIR(get_ircode(_ircode_map, "JPROGRAM"), NULL, _irlen);
|
||||||
/* test */
|
/* Poll INIT_B (bit 4 of IR capture) until config memory is cleared */
|
||||||
tx_buf = get_ircode(_ircode_map, "BYPASS");
|
tx_buf = get_ircode(_ircode_map, "BYPASS");
|
||||||
do {
|
do {
|
||||||
_jtag->shiftIR(tx_buf, rx_buf, _irlen);
|
_jtag->shiftIR(tx_buf, rx_buf, _irlen);
|
||||||
} while (!(rx_buf[0] &0x01));
|
} while (!(rx_buf[0] & 0x10));
|
||||||
/*
|
/*
|
||||||
* 8: Move into the RTI state. X 0 10,000(1)
|
* 8: Move into the RTI state. X 0 10,000(1)
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue