Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSmolBoi committed Aug 31, 2024
2 parents 2b04af7 + 99dd957 commit 08e8dd8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions target/sim/src/vip_cheshire_soc.sv
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,12 @@ module vip_cheshire_soc import cheshire_pkg::*; #(
uart_boot_byte = bite;
uart_boot_ena = 0;
end else if (bite == "\n") begin
$display("[UART] %s", {>>8{uart_read_buf}});
uart_read_buf.delete();
if (uart_read_buf.size() > 0) begin
$display("[UART] %s", {>>8{uart_read_buf}});
uart_read_buf.delete();
end else begin
$display("[UART]");
end
end else if (bite == UartDebugEoc) begin
uart_boot_eoc = 1;
end else begin
Expand Down
6 changes: 3 additions & 3 deletions target/xilinx/xilinx.mk
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ $(CHS_XILINX_DIR)/build/%/out.xci: \
$$(wildcard $(CHS_XILINX_DIR)/src/ips/$$*.prj) \
| $(CHS_XILINX_DIR)/build/%/
@rm -f $(CHS_XILINX_DIR)/build/$(*)*.log $(CHS_XILINX_DIR)/build/$(*)*.jou
cd $| && $(VIVADO) -mode batch -log ../$*.log -jou ../$*.jou -source $< -tclargs "$(subst ., ,$*)"
cd $| && $(VIVADO) -mode batch -log ../$*.log -jou ../$*.jou -source $< -tclargs $(subst ., ,$*)

##############
# Bitstreams #
Expand All @@ -52,7 +52,7 @@ $$(CHS_XILINX_DIR)/out/%.$(1).bit: \
| $$(CHS_XILINX_DIR)/build/$(1).%/
@rm -f $$(CHS_XILINX_DIR)/build/$$*.$(1)*.log $$(CHS_XILINX_DIR)/build/$$*.$(1)*.jou
cd $$| && $$(VIVADO) -mode batch -log ../$$*.$(1).log -jou ../$$*.$(1).jou -source $$< \
-tclargs "$(1) $$* $$(CHS_XILINX_IPS_$(1):%=$$(CHS_XILINX_DIR)/build/$(1).%/out.xci)"
-tclargs $(1) $$* $$(CHS_XILINX_IPS_$(1):%=$$(CHS_XILINX_DIR)/build/$(1).%/out.xci)

.PHONY: chs-xilinx-$(1)
chs-xilinx-$(1): $$(CHS_XILINX_DIR)/out/cheshire.$(1).bit
Expand All @@ -77,7 +77,7 @@ chs-xilinx-$(1)-%: $$(CHS_XILINX_DIR)/scripts/util/$(1).tcl | $$(CHS_XILINX_DIR)
[ -e $(subst %,$$*,$(2)) ] || $$(MAKE) $(subst %,$$*,$(2))
@rm -f $$(CHS_XILINX_DIR)/build/$$(*)*.$(1).log $$(CHS_XILINX_DIR)/build/$$(*)*.$(1).jou
cd $$| && $$(VIVADO) -mode batch -log ../$$(*).$(1).log -jou ../$$(*).$(1).jou -source $$< \
-tclargs "$$(CHS_XILINX_HWS_URL) $$(or $$(CHS_XILINX_HWS_PATH_$$*),*) $$* $(subst %,$$*,$(2)) 0"
-tclargs $$(CHS_XILINX_HWS_URL) $$(or $$(CHS_XILINX_HWS_PATH_$$*),*) $$* $(subst %,$$*,$(2)) 0
endef

# Program bitstream onto board
Expand Down

0 comments on commit 08e8dd8

Please sign in to comment.