Skip to content

Commit

Permalink
fix inverted SRQ en line for R3 #736
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Gardner-Stephen committed Aug 18, 2024
1 parent 700d399 commit 619acc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/vhdl/mega65r3.vhdl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ entity container is
iec_atn_en_n : out std_logic;
iec_data_en : out std_logic;
iec_clk_en : out std_logic;
iec_srq_en_n : out std_logic;
iec_srq_en : out std_logic;
iec_clk_o : out std_logic := '0';
iec_data_o : out std_logic := '0';
iec_srq_o : out std_logic := '0';
Expand Down Expand Up @@ -1194,7 +1194,7 @@ begin
-- Finally, because we have the output value of 0 hard-wired
-- on the output drivers, we need only gate the EN line.
-- But we only do this if the DDR is set to output
iec_srq_en_n <= iec_srq_en_n_drive;
iec_srq_en <= not iec_srq_en_n_drive;
iec_clk_en <= not iec_clk_en_n_drive;
iec_data_en <= not iec_data_en_n_drive;

Expand Down
2 changes: 1 addition & 1 deletion src/vhdl/mega65r3.xdc
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ set_property -dict {PACKAGE_PIN Y19 IOSTANDARD LVCMOS33} [get_ports iec_clk_o]
set_property -dict {PACKAGE_PIN Y18 IOSTANDARD LVCMOS33 PULLUP true} [get_ports iec_clk_i]
set_property -dict {PACKAGE_PIN U20 IOSTANDARD LVCMOS33} [get_ports iec_srq_o]
set_property -dict {PACKAGE_PIN AA18 IOSTANDARD LVCMOS33} [get_ports iec_srq_i]
set_property -dict {PACKAGE_PIN AB20 IOSTANDARD LVCMOS33} [get_ports iec_srq_en_n]
set_property -dict {PACKAGE_PIN AB20 IOSTANDARD LVCMOS33} [get_ports iec_srq_en]

# C64 Cartridge port control lines
# *_dir=1 means FPGA->Port, =0 means Port->FPGA
Expand Down

0 comments on commit 619acc8

Please sign in to comment.