Skip to content

Commit

Permalink
Update part name for zcu104.toml, reset port_width (#94)
Browse files Browse the repository at this point in the history
* Update part name for zcu104.toml

* Update solver.py, force port_width = 64
  • Loading branch information
lgxi24 authored Jul 17, 2024
1 parent 6af6879 commit 20d720a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/platforms/zcu104.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[device]
name = "zcu104"
#family = ""
part = "xczu7ev-ffvb1156-2-e"
part = "xczu7ev-ffvc1156-2-e"
board = "" #TODO: add board file

[resources]
Expand Down
11 changes: 10 additions & 1 deletion fpgaconvnet/optimiser/solvers/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,16 @@ def update_io_port_width(self):
if not self.constrain_port_width:
return

port_width = self.platform.eth_port_width if self.multi_fpga else self.platform.port_width
# port_width = self.platform.eth_port_width if self.multi_fpga else self.platform.port_width
# force port_width = 64 for now
if self.multi_fpga:
port_width = self.platform.eth_port_width
else:
if (self.net.backend == "hls"):
port_width = 64
else: port_width = self.platform.port_width


for partition in self.net.partitions:
## remove auxiliary layers
partition.remove_squeeze()
Expand Down

0 comments on commit 20d720a

Please sign in to comment.