URL
https://opencores.org/ocsvn/t6507lp/t6507lp/trunk
Subversion Repositories t6507lp
Compare Revisions
- This comparison shows the changes necessary to convert path
/t6507lp
- from Rev 205 to Rev 204
- ↔ Reverse comparison
Rev 205 → Rev 204
/trunk/rtl/verilog/t6507lp_fsm.v
145,8 → 145,7
reg plp; |
reg jsr; |
reg tsx; |
reg txs; |
reg nop; |
reg txs; |
|
wire [ADDR_SIZE_:0] next_pc; // a simple logic to add one to the PC |
assign next_pc = pc + 13'b0000000000001; |
608,10 → 607,8
end |
FETCH_LOW: begin |
if (accumulator || implied || txs) begin |
if (!nop) begin |
alu_opcode = ir; |
alu_enable = 1'b1; |
end |
alu_opcode = ir; |
alu_enable = 1'b1; |
next_state = FETCH_OP; |
end |
else if (tsx) begin |
902,17 → 899,12
jsr = 1'b0; |
tsx = 1'b0; |
txs = 1'b0; |
nop = 1'b0; |
|
case (ir) |
CLC_IMP, CLD_IMP, CLI_IMP, CLV_IMP, DEX_IMP, DEY_IMP, INX_IMP, INY_IMP, SEC_IMP, SED_IMP, SEI_IMP, TAX_IMP, |
TAY_IMP, TXA_IMP, TYA_IMP: begin |
CLC_IMP, CLD_IMP, CLI_IMP, CLV_IMP, DEX_IMP, DEY_IMP, INX_IMP, INY_IMP, NOP_IMP, |
SEC_IMP, SED_IMP, SEI_IMP, TAX_IMP, TAY_IMP, TXA_IMP, TYA_IMP: begin |
implied = 1'b1; |
end |
NOP_IMP: begin |
implied = 1'b1; |
nop = 1'b1; |
end |
ASL_ACC, LSR_ACC, ROL_ACC, ROR_ACC: begin |
accumulator = 1'b1; |
end |