updated readme for z710 board burning

This commit is contained in:
PurplePower
2024-01-13 11:54:24 +08:00
parent 8b505af0bf
commit 0a8f2ecffc
5 changed files with 68 additions and 20 deletions

View File

@@ -31,17 +31,17 @@ class Top(binaryFilename: String = "say_goodbye.asmbin") extends Module {
val mem = Module(new Memory(Parameters.MemorySizeInWords)) val mem = Module(new Memory(Parameters.MemorySizeInWords))
// val hdmi_display = Module(new HDMIDisplay) // val hdmi_display = Module(new HDMIDisplay)
// val display = Module(new CharacterDisplay) // val display = Module(new CharacterDisplay)
// val timer = Module(new Timer) val timer = Module(new Timer)
// val uart = Module(new Uart(frequency = 32_000000, baudRate = 115200)) // 31M or 32M is good, 33M more error val uart = Module(new Uart(frequency = 32_000000, baudRate = 115200)) // 31M or 32M is good, 33M more error
val dummy = Module(new Dummy) val dummy = Module(new Dummy)
// display.io.bundle <> dummy.io.bundle // display.io.bundle <> dummy.io.bundle
mem.io.bundle <> dummy.io.bundle mem.io.bundle <> dummy.io.bundle
mem.io.debug_read_address := 0.U mem.io.debug_read_address := 0.U
// timer.io.bundle <> dummy.io.bundle timer.io.bundle <> dummy.io.bundle
// uart.io.bundle <> dummy.io.bundle uart.io.bundle <> dummy.io.bundle
// io.tx := uart.io.txd io.tx := uart.io.txd
// uart.io.rxd := io.rx uart.io.rxd := io.rx
io.tx := 0.U io.tx := 0.U
val instruction_rom = Module(new InstructionROM(binaryFilename)) val instruction_rom = Module(new InstructionROM(binaryFilename))
@@ -60,26 +60,26 @@ class Top(binaryFilename: String = "say_goodbye.asmbin") extends Module {
withClock(CPU_tick.asClock) { withClock(CPU_tick.asClock) {
val cpu = Module(new CPU) val cpu = Module(new CPU)
// cpu.io.interrupt_flag := Cat(uart.io.signal_interrupt, timer.io.signal_interrupt) cpu.io.interrupt_flag := Cat(uart.io.signal_interrupt, timer.io.signal_interrupt)
// cpu.io.csr_regs_debug_read_address := 0.U cpu.io.csr_regs_debug_read_address := 0.U
// cpu.io.regs_debug_read_address := 0.U cpu.io.regs_debug_read_address := 0.U
cpu.io.debug_read_address := 0.U cpu.io.debug_read_address := 0.U
// cpu.io.memory_bundle.read_data := 0.U // cpu.io.memory_bundle.read_data := 0.U
cpu.io.instruction_valid := rom_loader.io.load_finished cpu.io.instruction_valid := rom_loader.io.load_finished
mem.io.instruction_address := cpu.io.instruction_address mem.io.instruction_address := cpu.io.instruction_address
cpu.io.instruction := mem.io.instruction cpu.io.instruction := mem.io.instruction
// when(!rom_loader.io.load_finished) { when(!rom_loader.io.load_finished) {
// rom_loader.io.bundle <> mem.io.bundle rom_loader.io.bundle <> mem.io.bundle
// cpu.io.memory_bundle.read_data := 0.U cpu.io.memory_bundle.read_data := 0.U
// }.otherwise { }.otherwise {
// rom_loader.io.bundle.read_data := 0.U rom_loader.io.bundle.read_data := 0.U
// when(cpu.io.deviceSelect === 2.U) { when(cpu.io.deviceSelect === 2.U) {
// cpu.io.memory_bundle <> uart.io.bundle cpu.io.memory_bundle <> uart.io.bundle
// }.otherwise { }.otherwise {
// cpu.io.memory_bundle <> mem.io.bundle cpu.io.memory_bundle <> mem.io.bundle
// } }
// } }
when(!rom_loader.io.load_finished) { when(!rom_loader.io.load_finished) {
rom_loader.io.bundle <> mem.io.bundle rom_loader.io.bundle <> mem.io.bundle

View File

@@ -80,6 +80,18 @@ set wrapper_path [make_wrapper -fileset sources_1 -files [ get_files -norecurse
add_files -norecurse -fileset sources_1 $wrapper_path add_files -norecurse -fileset sources_1 $wrapper_path
``` ```
3. 修正脚本中使用了导出电脑上绝对路径的命令,在 `Adding sources referenced in BDs, if not already added`Line 191处使用的绝对路径替换为项目文件夹下相对路径。
```tcl
# Adding sources referenced in BDs, if not already added
if { [get_files Top.v] == "" } {
import_files -quiet -fileset sources_1 "${origin_dir}/../../verilog/z710/Top.v"
}
if { [get_files clock_control.v] == "" } {
import_files -quiet -fileset sources_1 "${origin_dir}/../../verilog/z710/clock_control.v"
}
```
修改后上述脚本就能重建项目。 修改后上述脚本就能重建项目。
`open_project.tcl` 直接打开项目的 .xpr 项目文件,`generate_bitstream.tcl` 再生成比特流,并额外导出硬件平台。 `open_project.tcl` 直接打开项目的 .xpr 项目文件,`generate_bitstream.tcl` 再生成比特流,并额外导出硬件平台。

View File

@@ -80,6 +80,18 @@ set wrapper_path [make_wrapper -fileset sources_1 -files [ get_files -norecurse
add_files -norecurse -fileset sources_1 $wrapper_path add_files -norecurse -fileset sources_1 $wrapper_path
``` ```
3. 修正脚本中使用了导出电脑上绝对路径的命令,在 `Adding sources referenced in BDs, if not already added`Line 191处使用的绝对路径替换为项目文件夹下相对路径。
```tcl
# Adding sources referenced in BDs, if not already added
if { [get_files Top.v] == "" } {
import_files -quiet -fileset sources_1 "${origin_dir}/../../verilog/z710/Top.v"
}
if { [get_files clock_control.v] == "" } {
import_files -quiet -fileset sources_1 "${origin_dir}/../../verilog/z710/clock_control.v"
}
```
修改后上述脚本就能重建项目。 修改后上述脚本就能重建项目。
`open_project.tcl` 直接打开项目的 .xpr 项目文件,`generate_bitstream.tcl` 再生成比特流,并额外导出硬件平台。 `open_project.tcl` 直接打开项目的 .xpr 项目文件,`generate_bitstream.tcl` 再生成比特流,并额外导出硬件平台。

View File

@@ -80,6 +80,18 @@ set wrapper_path [make_wrapper -fileset sources_1 -files [ get_files -norecurse
add_files -norecurse -fileset sources_1 $wrapper_path add_files -norecurse -fileset sources_1 $wrapper_path
``` ```
3. 修正脚本中使用了导出电脑上绝对路径的命令,在 `Adding sources referenced in BDs, if not already added`Line 191处使用的绝对路径替换为项目文件夹下相对路径。
```tcl
# Adding sources referenced in BDs, if not already added
if { [get_files Top.v] == "" } {
import_files -quiet -fileset sources_1 "${origin_dir}/../../verilog/z710/Top.v"
}
if { [get_files clock_control.v] == "" } {
import_files -quiet -fileset sources_1 "${origin_dir}/../../verilog/z710/clock_control.v"
}
```
修改后上述脚本就能重建项目。 修改后上述脚本就能重建项目。
`open_project.tcl` 直接打开项目的 .xpr 项目文件,`generate_bitstream.tcl` 再生成比特流,并额外导出硬件平台。 `open_project.tcl` 直接打开项目的 .xpr 项目文件,`generate_bitstream.tcl` 再生成比特流,并额外导出硬件平台。

View File

@@ -80,6 +80,18 @@ set wrapper_path [make_wrapper -fileset sources_1 -files [ get_files -norecurse
add_files -norecurse -fileset sources_1 $wrapper_path add_files -norecurse -fileset sources_1 $wrapper_path
``` ```
3. 修正脚本中使用了导出电脑上绝对路径的命令,在 `Adding sources referenced in BDs, if not already added`Line 191处使用的绝对路径替换为项目文件夹下相对路径。
```tcl
# Adding sources referenced in BDs, if not already added
if { [get_files Top.v] == "" } {
import_files -quiet -fileset sources_1 "${origin_dir}/../../verilog/z710/Top.v"
}
if { [get_files clock_control.v] == "" } {
import_files -quiet -fileset sources_1 "${origin_dir}/../../verilog/z710/clock_control.v"
}
```
修改后上述脚本就能重建项目。 修改后上述脚本就能重建项目。
`open_project.tcl` 直接打开项目的 .xpr 项目文件,`generate_bitstream.tcl` 再生成比特流,并额外导出硬件平台。 `open_project.tcl` 直接打开项目的 .xpr 项目文件,`generate_bitstream.tcl` 再生成比特流,并额外导出硬件平台。