Compare commits
2 Commits
f9335f202e
...
838a8abe7b
Author | SHA1 | Date | |
---|---|---|---|
838a8abe7b | |||
e7d9f391ef |
@ -29,7 +29,6 @@ entity pll0 is
|
|||||||
end pll0;
|
end pll0;
|
||||||
|
|
||||||
architecture Structure of pll0 is
|
architecture Structure of pll0 is
|
||||||
signal clk_int_osc : std_logic;
|
|
||||||
signal clk_out_i : std_logic;
|
signal clk_out_i : std_logic;
|
||||||
begin
|
begin
|
||||||
-- Not clean, but it works...
|
-- Not clean, but it works...
|
||||||
@ -46,6 +45,12 @@ begin
|
|||||||
GLOBAL_BUFFER_OUTPUT => clk_out
|
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_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 = 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;
|
assert F_CLK_PHY = 50000000 report "clk_phy: PLL generates clock different from specified." severity failure;
|
||||||
|
@ -56,7 +56,7 @@ def get_diff(a, b):
|
|||||||
|
|
||||||
def probe():
|
def probe():
|
||||||
r = sread(0, 4, quiet = True);
|
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.")
|
eprint("ERROR: Probe failed! Check that the device is in bootloader mode.")
|
||||||
return 1
|
return 1
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user