Skip to content

Commit

Permalink
hyperram: Fix constraints, address map
Browse files Browse the repository at this point in the history
Signed-off-by: Nils Wistoff <[email protected]>
  • Loading branch information
niwis committed May 31, 2024
1 parent da5f338 commit 0a6fe6d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion hw/cheshire_pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ package cheshire_pkg;
LlcAmoPostCut : 1,
LlcOutConnect : 1,
LlcOutRegionStart : 'h8000_0000,
LlcOutRegionEnd : 'h1_0000_0000,
LlcOutRegionEnd : 'h8200_0000,
// VGA: RGB332
VgaRedWidth : 3,
VgaGreenWidth : 3,
Expand Down
8 changes: 3 additions & 5 deletions target/xilinx/constraints/genesys2.xdc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ set soc_clk [get_clocks -of_objects [get_pins i_clkwiz/clk_50]]
# Hyperram #
############

set period_hyperbus 100
set period_hyperbus 40

## Create RWDS clock (10MHz)
create_clock -period [expr $period_hyperbus] -name rwds0_clk [get_ports FMC_hyper0_rwds]
Expand All @@ -33,10 +33,8 @@ create_clock -period [expr $period_hyperbus] -name rwds1_clk [get_ports FMC_hype
set_property CLOCK_DEDICATED_ROUTE FALSE [get_nets iobuf_rwds1_i/O]

## Create the PHY clock
create_generated_clock [get_nets i_hyperbus/clk_phy_i_0] \
-name clk_phy -source [get_pins i_clkwiz/clk_50] -divide_by 2
create_generated_clock [get_nets i_hyperbus/clk_phy_i_90] \
-name clk_phy_90 -source [get_pins i_clkwiz/clk_50] -edges {2 4 6}
create_generated_clock [get_pins i_hyperbus/clock_generator.ddr_clk/clk0_o] -name clk_phy -source [get_pins i_clkwiz/clk_50] -divide_by 2
create_generated_clock [get_pins i_hyperbus/clock_generator.ddr_clk/clk90_o] -name clk_phy_90 -source [get_pins i_clkwiz/clk_50] -edges {2 4 6}

## PHY0
set clk_rx_shift [expr $period_hyperbus/10]
Expand Down
2 changes: 1 addition & 1 deletion target/xilinx/src/cheshire_top_xilinx.sv
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ module cheshire_top_xilinx (
ret.RegExtNumRules = 1;
ret.RegExtRegionIdx [0] = 0;
ret.RegExtRegionStart [0] = 'h4000_0000;
ret.RegExtRegionEnd [0] = 'h6000_0000;
ret.RegExtRegionEnd [0] = 'h4010_0000;
return ret;
endfunction

Expand Down

0 comments on commit 0a6fe6d

Please sign in to comment.