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;
|
|
|
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
|
// Register validity checking
|
|
//-----------------------------------------------------------------------------
|
|
wire ck_error_stop, ck_acc_check_light, ck_prog_check_light,
|
|
ck_dist_check_light;
|
|
|
|
//-----------------------------------------------------------------------------
|
// General storage
|
// General storage
|
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
wire [0:4] gs_out;
|
wire [0:4] gs_out;
|
wire gs_double_write, gs_no_write;
|
wire gs_double_write, gs_no_write;
|
|
|
Line 149... |
Line 155... |
accumulator ac (
|
accumulator ac (
|
.rst(rst),
|
.rst(rst),
|
.ap(ap),
|
.ap(ap),
|
.bp(bp),
|
.bp(bp),
|
.dp(dp),
|
.dp(dp),
|
|
.dx(dx),
|
.d1(d1),
|
.d1(d1),
|
.d2(d2),
|
.d2(d2),
|
.d10(d10),
|
.d10(d10),
|
.dxu(dxu),
|
.dxu(dxu),
|
.d0u(d0u),
|
.d0u(d0u),
|
Line 170... |
Line 177... |
.early_out(ac_early_out),
|
.early_out(ac_early_out),
|
.ontime_out(ac_ontime_out),
|
.ontime_out(ac_ontime_out),
|
.ped_out(ac_ped_out)
|
.ped_out(ac_ped_out)
|
);
|
);
|
|
|
|
checking ck (
|
|
.rst(rst),
|
|
.bp(bp),
|
|
.d1_dx(d1_dx),
|
|
.acc_ontime(ac_ontime_out),
|
|
.prog_ontime(7'b0),
|
|
.dist_ontime(7'b0),
|
|
.error_reset(oc_err_reset),
|
|
.tlu_or_zero_check(1'b0),
|
|
.error_stop(ck_error_stop),
|
|
.acc_check_light(ck_acc_check_light),
|
|
.prog_check_light(ck_prog_check_light),
|
|
.dist_check_light(ck_dist_check_light)
|
|
);
|
|
|
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),
|