mirror of
https://github.com/mist-devel/mist-board.git
synced 2026-02-05 07:34:41 +00:00
C64: [C1541] use programmed value for speedzone
This commit is contained in:
@@ -199,7 +199,7 @@ port map
|
||||
mode => mode, -- read/write
|
||||
-- stp => stp, -- stepper motor control
|
||||
mtr => mtr, -- stepper motor on/off
|
||||
-- freq => freq, -- motor (gcr_bit) frequency
|
||||
freq => freq, -- motor (gcr_bit) frequency
|
||||
sync_n => sync_n, -- reading SYNC bytes
|
||||
byte_n => byte_n, -- byte ready
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ port(
|
||||
mode : in std_logic; -- read/write
|
||||
-- stp : in std_logic_vector(1 downto 0); -- stepper motor control
|
||||
mtr : in std_logic; -- stepper motor on/off
|
||||
-- freq : in std_logic_vector(1 downto 0); -- motor (gcr_bit) frequency
|
||||
freq : in std_logic_vector(1 downto 0); -- motor (gcr_bit) frequency
|
||||
sync_n : out std_logic; -- reading SYNC bytes
|
||||
byte_n : out std_logic; -- byte ready
|
||||
|
||||
@@ -160,10 +160,11 @@ with gcr_nibble_out select
|
||||
X"E" when "11110",--"01111",
|
||||
X"F" when others; --"10101",
|
||||
|
||||
bit_clk_div <= x"67" when track_num < std_logic_vector(to_unsigned(18,6)) else
|
||||
x"6F" when track_num < std_logic_vector(to_unsigned(25,6)) else
|
||||
x"77" when track_num < std_logic_vector(to_unsigned(31,6)) else
|
||||
x"7F";
|
||||
with freq select
|
||||
bit_clk_div <= x"67" when "11",
|
||||
x"6F" when "10",
|
||||
x"77" when "01",
|
||||
x"7F" when others;
|
||||
|
||||
process (clk32)
|
||||
variable bit_clk_cnt : std_logic_vector(7 downto 0) := (others => '0');
|
||||
|
||||
Reference in New Issue
Block a user