schema_editor/examples/simplified FRISC model/comdel.system

53 lines
1.0 KiB
Plaintext
Raw Normal View History

2022-05-25 05:39:45 +00:00
// Version 0.0.1
#include "libraries\frisc\vjezba1\FRISC.cdl"
#include "libraries\frisc\vjezba1\memory.cdl"
component System
{
clock 100MHz;
//glavnaSabirnica
wire<32> ADR;
wire<32> DATA;
wire READ;
wire WRITE;
wired_and WAIT;
wired_and INT0;
wired_and INT1;
wired_and INT2;
wired_and INT3;
wire<3> SIZE;
wire --IACK;
wire --BREQ;
wire --BACK;
2022-05-27 06:18:17 +00:00
//directRam
wire INT;
2022-05-25 05:39:45 +00:00
// components --------------------------------------------
subcomponent Memorija memorija<false, 1, 65536, 8, 0>(ADR, DATA, READ, WRITE, SIZE, WAIT, INT);
subcomponent FRISC procesor(ADR, DATA, READ, WRITE, SIZE, WAIT, INT0, INT1, INT2, INT3, --IACK, 1, *, INT) uses memorija;
display {
2022-05-27 06:18:17 +00:00
component { x: -582; y: -296; ref: "procesor"; }
component { x: -446; y: -12; ref: "memorija"; }
2022-05-25 05:39:45 +00:00
// glavnaSabirnica bus
rectangle {
2022-05-27 06:18:17 +00:00
x: -581; y: -37;
2022-05-25 05:39:45 +00:00
w: 100; h: 20;
}
2022-05-27 06:18:17 +00:00
// directRam bus
line {x1:-532; y1:-180; x2:-530; y2:-26;}
line {x1:-462; y1:16; x2:-466; y2:-246;}
line {x1:-396; y1:-28; x2:-530; y2:-26;}
2022-05-25 05:39:45 +00:00
}
}