0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

simulide配線が絡まる問題

0
Posted at

まずは一部配線

z80_1
z80_1.sim1
<circuit version="1.1.0-SR0" rev="1917" stepSize="1000000" stepsPS="1000000" NLsteps="100000" reaStep="1000000" animate="0" >

<item itemtype="MCU" CircId="Z80-1" mainComp="false" Show_id="true" Show_Val="false" Pos="-172,-92" rotation="0" hflip="1" vflip="1" label="Z80-1" idLabPos="0,-20" labelrot="0" valLabPos="-16,20" valLabRot="0" Logic_Symbol="false" Producer="Zilog" CMOS="false" Single cycle I/O="false" Int_Vector="false" />

<item itemtype="Memory" CircId="Memory-2" mainComp="false" Show_id="false" Show_Val="false" Pos="-36,-24" rotation="0" hflip="1" vflip="1" label="Memory-2" idLabPos="-16,-24" labelrot="0" valLabPos="-16,20" valLabRot="0" Address_Bits="8 _bits" Data_Bits="8 _bits" Persistent="true" Asynch="true" Input_High_V="2.5 V" Input_Low_V="2.5 V" Input_Imped="1000 MΩ" Out_High_V="5 V" Out_Low_V="0 V" Out_Imped="40 Ω" Inverted="false" Open_Collector="true" pd_n="1 _Gates" Tpd_ps="10 ns" Tr_ps="3 ns" Tf_ps="4 ns" />

<item itemtype="Connector" uid="Connector-1" startpinid="Memory-2-in0" endpinid="Z80-1-PORTA0" pointList="-60,-56,-116,-56,-116,-4" />

<item itemtype="Connector" uid="Connector-2" startpinid="Memory-2-out0" endpinid="Z80-1-PORTD0" pointList="-12,-56,-180,-56,-180,20" />

<item itemtype="Connector" uid="Connector-3" startpinid="Memory-2-Pin_We" endpinid="Z80-1-CPORT0WR" pointList="-60,8,-116,8,-116,60" />

<item itemtype="Connector" uid="Connector-4" startpinid="Memory-2-Pin_outEnable" endpinid="Z80-1-CPORT0RD" pointList="-60,16,-60,68,-116,68" />

<item itemtype="Connector" uid="Connector-5" startpinid="Memory-2-Pin_Cs" endpinid="Z80-1-CPORT0MREQ" pointList="-12,16,-12,60,-180,60" />

</circuit>

各ピンのXML上の名前を調べる

startpinid endpinidの名称はチップのCircId + - + 各ピンの名称となっている。

メモリ側のピン
A0-A7 : in0~
D0-D7 : out0~
WE : Pin_We
OE : Pin_outEnable
CS : Pin_Cs

Z80側のピン
A0-A7 : PORTA0~
D0-D7 : PORTD0~
WR : CPORT0WR
RD : CPORT0RD
MREQ : CPORT0MREQ

XMLを編集して他の線も繋ぐ

XMLで配線して、開いて保存しなおすと座標は再設定された。

z80_2
z80_2.sim1
<circuit version="1.1.0-SR0" rev="1917" stepSize="1000000" stepsPS="1000000" NLsteps="100000" reaStep="1000000" animate="0" >

<item itemtype="MCU" CircId="Z80-1" mainComp="false" Show_id="true" Show_Val="false" Pos="-172,-92" rotation="0" hflip="1" vflip="1" label="Z80-1" idLabPos="0,-20" labelrot="0" valLabPos="-16,20" valLabRot="0" Logic_Symbol="false" Producer="Zilog" CMOS="false" Single cycle I/O="false" Int_Vector="false" />

<item itemtype="Memory" CircId="Memory-2" mainComp="false" Show_id="false" Show_Val="false" Pos="-36,-24" rotation="0" hflip="1" vflip="1" label="Memory-2" idLabPos="-16,-24" labelrot="0" valLabPos="-16,20" valLabRot="0" Address_Bits="8 _bits" Data_Bits="8 _bits" Persistent="true" Asynch="true" Input_High_V="2.5 V" Input_Low_V="2.5 V" Input_Imped="1000 MΩ" Out_High_V="5 V" Out_Low_V="0 V" Out_Imped="40 Ω" Inverted="false" Open_Collector="true" pd_n="1 _Gates" Tpd_ps="10 ns" Tr_ps="3 ns" Tf_ps="4 ns" />

<item itemtype="Connector" uid="Connector-1" startpinid="Memory-2-in0" endpinid="Z80-1-PORTA0" pointList="-60,-56,-116,-56,-116,-4" />

<item itemtype="Connector" uid="Connector-2" startpinid="Memory-2-in1" endpinid="Z80-1-PORTA1" pointList="-60,-48,-116,-48,-116,-12" />

<item itemtype="Connector" uid="Connector-3" startpinid="Memory-2-in2" endpinid="Z80-1-PORTA2" pointList="-60,-40,-116,-40,-116,-20" />

<item itemtype="Connector" uid="Connector-4" startpinid="Memory-2-in3" endpinid="Z80-1-PORTA3" pointList="-60,-32,-116,-32,-116,-28" />

<item itemtype="Connector" uid="Connector-5" startpinid="Memory-2-in4" endpinid="Z80-1-PORTA4" pointList="-60,-24,-116,-24,-116,-36" />

<item itemtype="Connector" uid="Connector-6" startpinid="Memory-2-in5" endpinid="Z80-1-PORTA5" pointList="-60,-16,-116,-16,-116,-44" />

<item itemtype="Connector" uid="Connector-7" startpinid="Memory-2-in6" endpinid="Z80-1-PORTA6" pointList="-60,-8,-116,-8,-116,-52" />

<item itemtype="Connector" uid="Connector-8" startpinid="Memory-2-in7" endpinid="Z80-1-PORTA7" pointList="-60,0,-116,0,-116,-60" />

<item itemtype="Connector" uid="Connector-9" startpinid="Memory-2-out0" endpinid="Z80-1-PORTD0" pointList="-12,-56,-180,-56,-180,20" />

<item itemtype="Connector" uid="Connector-10" startpinid="Memory-2-out1" endpinid="Z80-1-PORTD1" pointList="-12,-48,-180,-48,-180,28" />

<item itemtype="Connector" uid="Connector-11" startpinid="Memory-2-out2" endpinid="Z80-1-PORTD2" pointList="-12,-40,-180,-40,-180,4" />

<item itemtype="Connector" uid="Connector-12" startpinid="Memory-2-out3" endpinid="Z80-1-PORTD3" pointList="-12,-32,-180,-32,-180,-28" />

<item itemtype="Connector" uid="Connector-13" startpinid="Memory-2-out4" endpinid="Z80-1-PORTD4" pointList="-12,-24,-180,-24,-180,-36" />

<item itemtype="Connector" uid="Connector-14" startpinid="Memory-2-out5" endpinid="Z80-1-PORTD5" pointList="-12,-16,-180,-16,-180,-20" />

<item itemtype="Connector" uid="Connector-15" startpinid="Memory-2-out6" endpinid="Z80-1-PORTD6" pointList="-12,-8,-180,-8,-180,-12" />

<item itemtype="Connector" uid="Connector-16" startpinid="Memory-2-out7" endpinid="Z80-1-PORTD7" pointList="-12,0,-180,0,-180,12" />

<item itemtype="Connector" uid="Connector-17" startpinid="Memory-2-Pin_We" endpinid="Z80-1-CPORT0WR" pointList="-60,8,-116,8,-116,60" />

<item itemtype="Connector" uid="Connector-18" startpinid="Memory-2-Pin_outEnable" endpinid="Z80-1-CPORT0RD" pointList="-60,16,-60,68,-116,68" />

<item itemtype="Connector" uid="Connector-19" startpinid="Memory-2-Pin_Cs" endpinid="Z80-1-CPORT0MREQ" pointList="-12,16,-12,60,-180,60" />

</circuit>

次からはこの方法で配線をしていく

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?