Compare commits
1 Commits
838a8abe7b
...
f9335f202e
Author | SHA1 | Date | |
---|---|---|---|
f9335f202e |
@ -29,6 +29,7 @@ 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...
|
||||||
@ -45,12 +46,6 @@ 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 is None:
|
if r != b'7\x03\x00\x81':
|
||||||
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