Line 118... |
Line 118... |
// Accumulator
|
// Accumulator
|
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
wire [0:6] ac_early_out, ac_ontime_out, ac_ped_out;
|
wire [0:6] ac_early_out, ac_ontime_out, ac_ped_out;
|
|
|
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
|
// Distributor
|
|
//-----------------------------------------------------------------------------
|
|
wire [0:6] ds_early_out, ds_ontime_out;
|
|
wire ds_back_sig;
|
|
|
|
//-----------------------------------------------------------------------------
|
// Register validity checking
|
// Register validity checking
|
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
wire ck_error_stop, ck_acc_check_light, ck_prog_check_light,
|
wire ck_error_stop, ck_acc_check_light, ck_prog_check_light,
|
ck_dist_check_light;
|
ck_dist_check_light;
|
|
|
Line 144... |
Line 150... |
wire oc_man_pgm_reset, oc_man_acc_reset, oc_set_8000, oc_reset_8000,
|
wire oc_man_pgm_reset, oc_man_acc_reset, oc_set_8000, oc_reset_8000,
|
oc_hard_reset;
|
oc_hard_reset;
|
assign display_digit = oc_display_digit;
|
assign display_digit = oc_display_digit;
|
|
|
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
|
// Program step register
|
|
//-----------------------------------------------------------------------------
|
|
wire [0:6] ps_early_out, ps_ontime_out, ps_ped_out;
|
|
wire ps_restart_sig;
|
|
|
|
//-----------------------------------------------------------------------------
|
// Translators
|
// Translators
|
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
wire tr_gs_write;
|
wire tr_gs_write;
|
wire [0:4] tr_gs_in;
|
wire [0:4] tr_gs_in;
|
wire [0:6] tr_select_out;
|
wire [0:6] tr_select_out;
|
Line 158... |
Line 170... |
.bp(bp),
|
.bp(bp),
|
.dp(dp),
|
.dp(dp),
|
.dx(dx),
|
.dx(dx),
|
.d1(d1),
|
.d1(d1),
|
.d2(d2),
|
.d2(d2),
|
.d10(d10),
|
|
.dxu(dxu),
|
.dxu(dxu),
|
.d0u(d0u),
|
.d0u(d0u),
|
.wu(wu),
|
.wu(wu),
|
.wl(wl),
|
.wl(wl),
|
.adder_out(`biq_0),
|
.adder_out(`biq_0),
|
Line 182... |
Line 193... |
checking ck (
|
checking ck (
|
.rst(rst),
|
.rst(rst),
|
.bp(bp),
|
.bp(bp),
|
.d1_dx(d1_dx),
|
.d1_dx(d1_dx),
|
.acc_ontime(ac_ontime_out),
|
.acc_ontime(ac_ontime_out),
|
.prog_ontime(7'b0),
|
.prog_ontime(ps_ontime_out),
|
.dist_ontime(7'b0),
|
.dist_ontime(ds_ontime_out),
|
.error_reset(oc_err_reset),
|
.error_reset(oc_err_reset),
|
.tlu_or_zero_check(1'b0),
|
.tlu_or_zero_check(1'b0),
|
.error_stop(ck_error_stop),
|
.error_stop(ck_error_stop),
|
.acc_check_light(ck_acc_check_light),
|
.acc_check_light(ck_acc_check_light),
|
.prog_check_light(ck_prog_check_light),
|
.prog_check_light(ck_prog_check_light),
|
.dist_check_light(ck_dist_check_light)
|
.dist_check_light(ck_dist_check_light)
|
);
|
);
|
|
|
|
distributor ds (
|
|
.rst(rst),
|
|
.ap(ap),
|
|
.cp(cp),
|
|
.dp(dp),
|
|
.dx(dx),
|
|
.d0(d0),
|
|
.d10(d10),
|
|
.selected_storage(7'd0),
|
|
.ri_dist(1'd0),
|
|
.acc_ontime(ac_ontime_out),
|
|
.start_acc_dist_ri(1'd0),
|
|
.end_acc_dist_ri(1'd0),
|
|
.acc_dist_ri(1'd0),
|
|
.man_acc_reset(oc_man_acc_reset),
|
|
.early_idx(early_idx),
|
|
.ontime_idx(ontime_idx),
|
|
.ontime_out(ds_ontime_out),
|
|
.early_out(ds_early_out),
|
|
.dist_back_sig(ds_back_sig)
|
|
);
|
|
|
gen_store gs (
|
gen_store gs (
|
.rst(oc_hard_reset),
|
.rst(oc_hard_reset),
|
.ap(ap),
|
.ap(ap),
|
.dp(dp),
|
.dp(dp),
|
.write_gate(tr_gs_write),
|
.write_gate(tr_gs_write),
|
Line 234... |
Line 267... |
.ontime_idx(ontime_idx),
|
.ontime_idx(ontime_idx),
|
.cmd_digit_in(cmd_digit_in),
|
.cmd_digit_in(cmd_digit_in),
|
.io_buffer_in(io_buffer_in),
|
.io_buffer_in(io_buffer_in),
|
.gs_in(tr_select_out),
|
.gs_in(tr_select_out),
|
.acc_ontime(ac_ontime_out),
|
.acc_ontime(ac_ontime_out),
|
.dist_ontime(`biq_blank),
|
.dist_ontime(ds_ontime_out),
|
.prog_ontime(`biq_blank),
|
.prog_ontime(ps_ontime_out),
|
.command(command),
|
.command(command),
|
.data_out(oc_data_out),
|
.data_out(oc_data_out),
|
.addr_out(oc_addr_out),
|
.addr_out(oc_addr_out),
|
.console_out(oc_console_out),
|
.console_out(oc_console_out),
|
.display_digit(oc_display_digit),
|
.display_digit(oc_display_digit),
|
Line 267... |
Line 300... |
.punch_card(punch_card),
|
.punch_card(punch_card),
|
.read_card(read_card),
|
.read_card(read_card),
|
.card_digit_ready(card_digit_ready)
|
.card_digit_ready(card_digit_ready)
|
);
|
);
|
|
|
|
prog_step ps (
|
|
.rst(rst),
|
|
.ap(ap),
|
|
.dp(dp),
|
|
.dx(dx),
|
|
.d0(d0),
|
|
.d10(d10),
|
|
.early_idx(early_idx),
|
|
.ontime_idx(ontime_idx),
|
|
.man_prog_reset(oc_man_pgm_reset),
|
|
.rips(1'b0),
|
|
.adder_out(7'b0),
|
|
.sel_store_out(7'b0),
|
|
.prog_ped_regen(1'b1),
|
|
.prog_add(1'b0),
|
|
.early_out(ps_early_out),
|
|
.ontime_out(ps_ontime_out),
|
|
.ped_out(ps_ped_out),
|
|
.prog_restart_sig(ps_restart_sig)
|
|
);
|
|
|
translators tr (
|
translators tr (
|
.dist_early_out(`biq_blank),
|
.dist_early_out(`biq_blank),
|
.bs_out(`biq_blank),
|
.bs_out(`biq_blank),
|
.console_out(oc_console_out),
|
.console_out(oc_console_out),
|
.ri_gs(1'b0),
|
.ri_gs(1'b0),
|