URL
https://opencores.org/ocsvn/zet86/zet86/trunk
Subversion Repositories zet86
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 16 to Rev 17
- ↔ Reverse comparison
Rev 16 → Rev 17
/trunk/rtl-model/defines.v
1,3 → 1,21
/* |
* Copyright (c) 2008 Zeus Gomez Marmolejo <zeus@opencores.org> |
* |
* This file is part of the Zet processor. This processor is free |
* hardware; you can redistribute it and/or modify it under the terms of |
* the GNU General Public License as published by the Free Software |
* Foundation; either version 3, or (at your option) any later version. |
* |
* This Zet processor is distrubuted in the hope that it will be useful, |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
* General Public License for more details. |
* |
* You should have received a copy of the GNU General Public License |
* along with GCC; see the file COPYING. If not, see |
* <http://www.gnu.org/licenses/>. |
*/ |
|
`include "rom_def.v" |
|
`define IR_SIZE 36 |
/trunk/rtl-model/regfile.v
1,3 → 1,21
/* |
* Copyright (c) 2008 Zeus Gomez Marmolejo <zeus@opencores.org> |
* |
* This file is part of the Zet processor. This processor is free |
* hardware; you can redistribute it and/or modify it under the terms of |
* the GNU General Public License as published by the Free Software |
* Foundation; either version 3, or (at your option) any later version. |
* |
* This Zet processor is distrubuted in the hope that it will be useful, |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
* General Public License for more details. |
* |
* You should have received a copy of the GNU General Public License |
* along with GCC; see the file COPYING. If not, see |
* <http://www.gnu.org/licenses/>. |
*/ |
|
`timescale 1ns/10ps |
|
module regfile(a, b, c, cs, ip, d, s, flags, wr, wrfl, wrhi, clk, rst, |
/trunk/rtl-model/alu.v
1,3 → 1,21
/* |
* Copyright (c) 2008 Zeus Gomez Marmolejo <zeus@opencores.org> |
* |
* This file is part of the Zet processor. This processor is free |
* hardware; you can redistribute it and/or modify it under the terms of |
* the GNU General Public License as published by the Free Software |
* Foundation; either version 3, or (at your option) any later version. |
* |
* This Zet processor is distrubuted in the hope that it will be useful, |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
* General Public License for more details. |
* |
* You should have received a copy of the GNU General Public License |
* along with GCC; see the file COPYING. If not, see |
* <http://www.gnu.org/licenses/>. |
*/ |
|
`timescale 1ns/10ps |
|
module alu(x, y, out, t, func, iflags, oflags, word_op, seg, off); |
260,6 → 278,9
assign ofo = 1'b0; |
endmodule |
|
// |
// This module implements the instructions shl/sal, sar, shr |
// |
module shifts(x, y, out, func, word_op, cfi, ofi, cfo, ofo); |
// IO ports |
input [15:0] x, y; |
/trunk/rtl-model/exec.v
1,3 → 1,21
/* |
* Copyright (c) 2008 Zeus Gomez Marmolejo <zeus@opencores.org> |
* |
* This file is part of the Zet processor. This processor is free |
* hardware; you can redistribute it and/or modify it under the terms of |
* the GNU General Public License as published by the Free Software |
* Foundation; either version 3, or (at your option) any later version. |
* |
* This Zet processor is distrubuted in the hope that it will be useful, |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
* General Public License for more details. |
* |
* You should have received a copy of the GNU General Public License |
* along with GCC; see the file COPYING. If not, see |
* <http://www.gnu.org/licenses/>. |
*/ |
|
`timescale 1ns/10ps |
|
`include "defines.v" |
/trunk/rtl-model/cpu.v
1,3 → 1,21
/* |
* Copyright (c) 2008 Zeus Gomez Marmolejo <zeus@opencores.org> |
* |
* This file is part of the Zet processor. This processor is free |
* hardware; you can redistribute it and/or modify it under the terms of |
* the GNU General Public License as published by the Free Software |
* Foundation; either version 3, or (at your option) any later version. |
* |
* This Zet processor is distrubuted in the hope that it will be useful, |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
* General Public License for more details. |
* |
* You should have received a copy of the GNU General Public License |
* along with GCC; see the file COPYING. If not, see |
* <http://www.gnu.org/licenses/>. |
*/ |
|
`timescale 1ns/10ps |
|
`include "defines.v" |
/trunk/rtl-model/fetch.v
1,3 → 1,21
/* |
* Copyright (c) 2008 Zeus Gomez Marmolejo <zeus@opencores.org> |
* |
* This file is part of the Zet processor. This processor is free |
* hardware; you can redistribute it and/or modify it under the terms of |
* the GNU General Public License as published by the Free Software |
* Foundation; either version 3, or (at your option) any later version. |
* |
* This Zet processor is distrubuted in the hope that it will be useful, |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
* General Public License for more details. |
* |
* You should have received a copy of the GNU General Public License |
* along with GCC; see the file COPYING. If not, see |
* <http://www.gnu.org/licenses/>. |
*/ |
|
`timescale 1ns/10ps |
|
`include "defines.v" |
/trunk/rtl-model/jmp_cond.v
1,3 → 1,21
/* |
* Copyright (c) 2008 Zeus Gomez Marmolejo <zeus@opencores.org> |
* |
* This file is part of the Zet processor. This processor is free |
* hardware; you can redistribute it and/or modify it under the terms of |
* the GNU General Public License as published by the Free Software |
* Foundation; either version 3, or (at your option) any later version. |
* |
* This Zet processor is distrubuted in the hope that it will be useful, |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
* General Public License for more details. |
* |
* You should have received a copy of the GNU General Public License |
* along with GCC; see the file COPYING. If not, see |
* <http://www.gnu.org/licenses/>. |
*/ |
|
`timescale 1ns/10ps |
|
module jmp_cond ( |
/trunk/rtl-model/util/primitives.v
1,3 → 1,21
/* |
* Copyright (c) 2008 Zeus Gomez Marmolejo <zeus@opencores.org> |
* |
* This file is part of the Zet processor. This processor is free |
* hardware; you can redistribute it and/or modify it under the terms of |
* the GNU General Public License as published by the Free Software |
* Foundation; either version 3, or (at your option) any later version. |
* |
* This Zet processor is distrubuted in the hope that it will be useful, |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
* General Public License for more details. |
* |
* You should have received a copy of the GNU General Public License |
* along with GCC; see the file COPYING. If not, see |
* <http://www.gnu.org/licenses/>. |
*/ |
|
// |
// Multiplexor 8:1 de 16 bits d'amplada |
// |