Skip to content

Commit

Permalink
Docs: MUX pins
Browse files Browse the repository at this point in the history
  • Loading branch information
rejunity committed Nov 3, 2024
1 parent bce6d4b commit 53d893b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
4 changes: 2 additions & 2 deletions info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ pinout:
ui[3]: "/BUSRQ"
ui[4]: ""
ui[5]: ""
ui[6]: ""
ui[7]: ""
ui[6]: "MUX -- address lo/hi bits on the output pins"
ui[7]: "MUX -- control signals on the output pins"

# Outputs
uo[0]: "/M1, A0, A8"
Expand Down
10 changes: 0 additions & 10 deletions src/tt_um_rejunity_z80.v
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,11 @@ module tt_um_rejunity_z80 (
// [01] --- {A8 - A15}
// [1?] --- control signals {m1_n, mreq_n, iorq_n, rd_n, wr_n, rfsh_n, halt_n, busak_n}

// reg [1:0] clk_counter;
// always @(posedge clk)
// clk_counter <= (rst_n) ? clk_counter + 1 : 0;
// wire z80_clk = (rst_n) ? clk_counter[1:0] == 0: clk; // Z80 clock is pulsed once every 4 TinyTapeout clock cycles

// assign uo_out = (clk_counter[0] == 0) ? ctrl_signals :
// (clk_counter[1] == 0) ? addr_bus[7:0] :
// addr_bus[15:8];

wire z80_clk = clk;
wire [1:0] mux_control = ui_in[7:6];
assign uo_out = (mux_control[1] == 1) ? ctrl_signals :
(mux_control[0] == 0) ? addr_bus[7:0] :
addr_bus[15:8];

// reg [7:0] mux_out;
// assign uo_out = mux_out;
// always @(*) begin
Expand Down

0 comments on commit 53d893b

Please sign in to comment.