Generation fix
This commit is contained in:
1 parent
6ed60a2c26
commit
edfd7fdf37
16 files changed
+108
-121
No files matched your search
@@ -2,10 +2,10 @@
|
||||
@info "Primjer ARM biblioteke"
|
||||
@directory "."
|
||||
@header `
|
||||
\\ Version 0.0.1
|
||||
// Version 0.0.1
|
||||
set load_performs_init;
|
||||
`
|
||||
@componentHeader " clock 100MHz;"
|
||||
@componentHeader " clock 100 MHz;"
|
||||
|
||||
// adresni prostori
|
||||
@address adresniProstor(0,0xFFFFFFFF)
|
||||
@@ -611,7 +611,7 @@ set load_performs_init;
|
||||
pin {
|
||||
x: 15; y: 30; w: 10; h: 10;
|
||||
type: "in";
|
||||
orientation: "top";
|
||||
orientation: "bottom";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -729,8 +729,9 @@ set load_performs_init;
|
||||
irq wired_or, fiq wired_or, nmreq wired_and,
|
||||
// hsel_*
|
||||
sel_mem hidden, sel_bridge, sel_dmac
|
||||
sel_mem hidden, sel_bridge, sel_dmac
|
||||
// dmac
|
||||
busreq, grant
|
||||
busreq terminate_with 0, grant
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,67 +0,0 @@
|
||||
|
||||
\\ Version 0.0.1
|
||||
set load_performs_init;
|
||||
|
||||
#include ".\arm7tdmi.comdel"
|
||||
#include ".\decoder.comdel"
|
||||
#include ".\memory.comdel"
|
||||
|
||||
|
||||
|
||||
component System
|
||||
{
|
||||
clock 100MHz;
|
||||
//ahb
|
||||
wire<32> addr;
|
||||
wire<32> rdata;
|
||||
wire<32> wdata;
|
||||
wire<3> size;
|
||||
wire write;
|
||||
wired_or ready;
|
||||
wired_or irq;
|
||||
wired_or fiq;
|
||||
wired_and nmreq;
|
||||
wire --sel_mem;
|
||||
wire sel_bridge;
|
||||
wire sel_dmac;
|
||||
wire busreq;
|
||||
wire grant;
|
||||
|
||||
|
||||
//gpio_port
|
||||
wire --xp0;
|
||||
wire --xp1;
|
||||
wire --xp2;
|
||||
wire --xp3;
|
||||
wire --xp4;
|
||||
wire --xp5;
|
||||
wire --xp6;
|
||||
wire --xp7;
|
||||
|
||||
|
||||
// components --------------------------------------------
|
||||
subcomponent Memory64KiB memorija(addr, rdata, wdata, size, write, ready, --sel_mem);
|
||||
subcomponent ARM7tdmi arm(addr, rdata, wdata, size, write, ready, irq, fiq, nmreq, busreq, grant, *, *) uses memorija;
|
||||
subcomponent Decoder decoder(addr, nmreq, --sel_mem, sel_bridge, sel_dmac, 1, 1);
|
||||
|
||||
display {
|
||||
component { x: -473; y: -283; ref: "arm"; }
|
||||
component { x: -433; y: 6; ref: "memorija"; }
|
||||
component { x: -537; y: -202; ref: "decoder"; }
|
||||
|
||||
// ahb bus
|
||||
|
||||
rectangle {
|
||||
x: -514; y: -86;
|
||||
w: 249; h: 20;
|
||||
}
|
||||
|
||||
|
||||
// gpio_port bus
|
||||
|
||||
|
||||
line {x1:-428; y1:6; x2:-389; y2:-75;}
|
||||
line {x1:-418; y1:-152; x2:-389; y2:-75;}
|
||||
line {x1:-517; y1:-172; x2:-389; y2:-75;}
|
||||
}
|
||||
}
|
||||
@@ -2,20 +2,20 @@
|
||||
|
||||
@schema {
|
||||
@instance arm ARM7tdmi {
|
||||
@position (-473, -283)
|
||||
@position (1179, 326)
|
||||
@attribute _memory memorija
|
||||
}
|
||||
|
||||
@instance memorija Memory64KiB {
|
||||
@position (-433, 6)
|
||||
@position (1148, 521)
|
||||
}
|
||||
|
||||
@instance decoder Decoder {
|
||||
@position (-537, -202)
|
||||
@position (1070, 381)
|
||||
}
|
||||
|
||||
@instance ahb AHB {
|
||||
@position (-514, -86)
|
||||
@position (1027, 465)
|
||||
@size 249
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user