Compare commits

..

2 Commits

Author SHA1 Message Date
838a8abe7b tools: Update flasher script to new bus layout 2024-08-09 14:03:00 +02:00
e7d9f391ef fpga: Clean up clocking code 2024-08-09 14:01:16 +02:00
2 changed files with 8 additions and 3 deletions

View File

@ -29,8 +29,7 @@ entity pll0 is
end pll0;
architecture Structure of pll0 is
signal clk_int_osc : std_logic;
signal clk_out_i : std_logic;
signal clk_out_i : std_logic;
begin
-- Not clean, but it works...
ckdiv2 : process(clk_out_phy) is
@ -46,6 +45,12 @@ begin
GLOBAL_BUFFER_OUTPUT => clk_out
);
SB_GB2_inst : component SB_GB
port map(
USER_SIGNAL_TO_GLOBAL_BUFFER => clk_in,
GLOBAL_BUFFER_OUTPUT => clk_out_phy
);
assert F_IN = 50000000 report "clk_in: PLL expects clock different from specified." severity failure;
assert F_CLK = 25000000 report "clk: PLL generates clock different from specified." severity failure;
assert F_CLK_PHY = 50000000 report "clk_phy: PLL generates clock different from specified." severity failure;

View File

@ -56,7 +56,7 @@ def get_diff(a, b):
def probe():
r = sread(0, 4, quiet = True);
if r != b'7\x03\x00\x81':
if r is None:
eprint("ERROR: Probe failed! Check that the device is in bootloader mode.")
return 1
return 0