Skip to content

Commit

Permalink
table editor for signals, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
JosephAbbey committed Nov 5, 2022
1 parent f39b1e7 commit 7668028
Show file tree
Hide file tree
Showing 44 changed files with 534 additions and 573 deletions.
15 changes: 15 additions & 0 deletions examples.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@
"explorer.fileNesting.enabled": true,
"material-icon-theme.languages.associations": {
"vhdl": "Verilog"
},
"scratch-vhdl-vscode.templates": {
"led4_button4": {
"entity": {
"clk": ["in", "std_logic"],
"reset": ["in", "std_logic"],
"incr": ["in", "std_logic"],
"buttons": ["in", "std_logic_vector(3 downto 0)"],
"leds": ["out", "std_logic_vector(3 downto 0)"]
},
"name": "led4_button4",
"constants": {
"button_tab_c": ["natural", "1"]
}
}
}
},
"extensions": {
Expand Down
2 changes: 1 addition & 1 deletion examples/adder_binary.vhdl.sbd
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"blocks":{"languageVersion":0,"blocks":[{"type":"process","id":"J*iiC|~UcjaY*-2N#tAo","x":287,"y":63,"extraState":{"depCount":1,"all":false},"fields":{"1":{"id":"8Pm2mSFhfaHJE=YF.`d/"}},"inputs":{"body":{"block":{"type":"controls_if","id":"%6S:-/u-/I8KQ?$udE-`","inputs":{"IF0":{"block":{"type":"logic_rising_edge","id":")sDG2+tAPMZ]tEpc!9V_","fields":{"dep":{"id":"8Pm2mSFhfaHJE=YF.`d/"}}}},"DO0":{"block":{"type":"controls_if","id":"k[jhJKNV{V#ZxHO4+hAp","extraState":{"hasElse":true},"inputs":{"IF0":{"block":{"type":"logic_compare","id":"n#wG,w4r6IjyzaIo`677","fields":{"OP":"EQ"},"inputs":{"A":{"block":{"type":"variables_get","id":"*n!X]K1b+}SK$@J$alxi","fields":{"VAR":{"id":"n]8$87^8lmrtaEACnE1d"}}}},"B":{"block":{"type":"value_std_logic","id":"8MU*K]_cMJfjg^L.D(b-","fields":{"VALUE":1}}}}}},"DO0":{"block":{"type":"variables_set","id":"!|^{v!m0aUKs?kpx;gDb","fields":{"VAR":{"id":"~iiWRA*lb9mbHGhV[$Wf"}},"inputs":{"VALUE":{"block":{"type":"value_std_logic_vector","id":")5F7jZ~zy3_2I:HcN+E1","fields":{"VALUE":"0000"}}}}}},"ELSE":{"block":{"type":"controls_case","id":"}pewB^0Aq7_N+8N5^y^}","inputs":{"ON":{"block":{"type":"variables_get","id":"16Dw__7SO;rgwlSKF*g)","fields":{"VAR":{"id":"{GR_E^Dq2y@4IV]`kg(b"}}}},"body":{"block":{"type":"controls_when","id":"S[ZF{)*Ama?[{oTF(01m","inputs":{"TEST":{"block":{"type":"value_std_logic_vector","id":"F}4(mB]cOVb7Y:C-phyL","fields":{"VALUE":"0000"}}},"body":{"block":{"type":"variables_set","id":"xCBd1`6wF(rroUuo`tRs","fields":{"VAR":{"id":"~iiWRA*lb9mbHGhV[$Wf"}},"inputs":{"VALUE":{"block":{"type":"value_std_logic_vector","id":";,hEK6MEmB30{qT_v4Ph","fields":{"VALUE":"0000"}}}}}}},"next":{"block":{"type":"controls_when","id":"j[c=REidZPG0$qk=u*qk","inputs":{"TEST":{"block":{"type":"logic_or","id":"G0c#VA~h/Pqj10u|o)@e","inputs":{"A":{"block":{"type":"logic_or","id":"h8ha*OW?#kW4DL[1Np$.","inputs":{"A":{"block":{"type":"value_std_logic_vector","id":"0yz8K0h6$PR~hwkEncc-","fields":{"VALUE":"0001"}}},"B":{"block":{"type":"value_std_logic_vector","id":"M+*;@Lban4Qx0L}MZJsh","fields":{"VALUE":"0010"}}}}}},"B":{"block":{"type":"logic_or","id":"P;Wb@aAU]TlbY1F$$cyv","inputs":{"A":{"block":{"type":"value_std_logic_vector","id":"bPj=%g~//CL`}E;FE-QN","fields":{"VALUE":"0100"}}},"B":{"block":{"type":"value_std_logic_vector","id":"XB?JsoiP]X72,9/g#[?p","fields":{"VALUE":"1000"}}}}}}}}},"body":{"block":{"type":"variables_set","id":"r8}2E5Z#U6~5GN9uP[TN","fields":{"VAR":{"id":"~iiWRA*lb9mbHGhV[$Wf"}},"inputs":{"VALUE":{"block":{"type":"value_std_logic_vector","id":"*5.m~w5KfSlyvtQe2Uc#","fields":{"VALUE":"0001"}}}}}}},"next":{"block":{"type":"controls_when","id":":xiKq|Xk9i}A3J!ksu+*","inputs":{"TEST":{"block":{"type":"logic_or","id":"VA]:Vm)BkunSt:GA:f+b","inputs":{"A":{"block":{"type":"logic_or","id":"AZVOQJWLDyP(-MlqT!Bd","inputs":{"A":{"block":{"type":"value_std_logic_vector","id":"KM%ku:!6]zxl@-_NDe8*","fields":{"VALUE":"0011"}}},"B":{"block":{"type":"value_std_logic_vector","id":"fJ!e^$nN)c8Ga{rj,?|A","fields":{"VALUE":"0101"}}}}}},"B":{"block":{"type":"logic_or","id":"6{AtX8{C,d{txK{hmmvT","inputs":{"A":{"block":{"type":"logic_or","id":"v}vIx+?Ey=)BO,eRMT_G","inputs":{"A":{"block":{"type":"value_std_logic_vector","id":"aP8f(HPSp8k(4E){kV0,","fields":{"VALUE":"0110"}}},"B":{"block":{"type":"value_std_logic_vector","id":"+MklKiUm++9o^H25z@{A","fields":{"VALUE":"1010"}}}}}},"B":{"block":{"type":"logic_or","id":"kpz!_=[*8L)j{}l~{7e.","inputs":{"A":{"block":{"type":"value_std_logic_vector","id":"zPD|~oAq#3+/U{HA+S1b","fields":{"VALUE":"1100"}}},"B":{"block":{"type":"value_std_logic_vector","id":"[Du;9k=~),SGWnk}7w-E","fields":{"VALUE":"1001"}}}}}}}}}}}},"body":{"block":{"type":"variables_set","id":"CSyLee$So:OHipYf1l^+","fields":{"VAR":{"id":"~iiWRA*lb9mbHGhV[$Wf"}},"inputs":{"VALUE":{"block":{"type":"value_std_logic_vector","id":",TjP2Ki~AztB5102atRf","fields":{"VALUE":"0010"}}}}}}},"next":{"block":{"type":"controls_when","id":"gVha|X2-^Ru;?#Ux{5`h","inputs":{"TEST":{"block":{"type":"logic_or","id":"4C4vzE_7Npeh?/M2~zR#","inputs":{"A":{"block":{"type":"logic_or","id":"d=Go#vnW[^F%,N$j_.f2","inputs":{"A":{"block":{"type":"value_std_logic_vector","id":"U=t6H5nzT;{Wlr7@R5tZ","fields":{"VALUE":"0111"}}},"B":{"block":{"type":"value_std_logic_vector","id":"#*QmbDpEdFTL!8L@N3}W","fields":{"VALUE":"1011"}}}}}},"B":{"block":{"type":"logic_or","id":"`8X~NC1:K_Ll(jFy/}zU","inputs":{"A":{"block":{"type":"value_std_logic_vector","id":"{g;_F,_~wPSuqd;SHg=!","fields":{"VALUE":"1101"}}},"B":{"block":{"type":"value_std_logic_vector","id":"Rjge#xK|[rtE?T)|Yf`1","fields":{"VALUE":"111"}}}}}}}}},"body":{"block":{"type":"variables_set","id":"7iGd7!%4XmAardf2UTi#","fields":{"VAR":{"id":"~iiWRA*lb9mbHGhV[$Wf"}},"inputs":{"VALUE":{"block":{"type":"value_std_logic_vector","id":"mQi%i9?:2;dqtaASogn[","fields":{"VALUE":"0011"}}}}}}},"next":{"block":{"type":"controls_when","id":"5QvE!ECPOhc2p%2xg^W~","inputs":{"TEST":{"block":{"type":"value_std_logic_vector","id":"JdIBA5XO6RV}-|+^QWvr","fields":{"VALUE":"1111"}}},"body":{"block":{"type":"variables_set","id":"[F|;0Zs(5ECH/=!4!1ks","fields":{"VAR":{"id":"~iiWRA*lb9mbHGhV[$Wf"}},"inputs":{"VALUE":{"block":{"type":"value_std_logic_vector","id":"qQDe1BTJay|_QRUA-#~t","fields":{"VALUE":"0100"}}}}}}},"next":{"block":{"type":"controls_when","id":".r8TdjWli~`9L2Wg`,bO","icons":{"comment":{"text":"Cover the other bit values: 'U', 'X', 'Z', 'W', 'L' & 'H'","pinned":false,"height":80,"width":160}},"inputs":{"TEST":{"block":{"type":"logic_others","id":"_xS4yHrxO!-g_cbxj`iB"}},"body":{"block":{"type":"variables_set","id":"`DA!Q9nHbrjBuy{h0K8*","fields":{"VAR":{"id":"~iiWRA*lb9mbHGhV[$Wf"}},"inputs":{"VALUE":{"block":{"type":"value_std_logic_vector","id":"5u;{42F1YGrwwYPMGtpI","fields":{"VALUE":"1111"}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}]},"variables":[{"name":"clk","id":"8Pm2mSFhfaHJE=YF.`d/"},{"name":"reset","id":"n]8$87^8lmrtaEACnE1d"},{"name":"incr","id":"BN8?u[FUgn1J0IG|csF4"},{"name":"buttons","id":"{GR_E^Dq2y@4IV]`kg(b"},{"name":"leds","id":"~iiWRA*lb9mbHGhV[$Wf"}],"signals":{}}
{"blocks":{"languageVersion":0,"blocks":[{"type":"process","id":"J*iiC|~UcjaY*-2N#tAo","x":287,"y":63,"extraState":{"depCount":1,"all":false},"fields":{"1":{"id":"8Pm2mSFhfaHJE=YF.`d/"}},"inputs":{"body":{"block":{"type":"controls_if","id":"%6S:-/u-/I8KQ?$udE-`","inputs":{"IF0":{"block":{"type":"logic_rising_edge","id":")sDG2+tAPMZ]tEpc!9V_","fields":{"dep":{"id":"8Pm2mSFhfaHJE=YF.`d/"}}}},"DO0":{"block":{"type":"controls_if","id":"k[jhJKNV{V#ZxHO4+hAp","extraState":{"hasElse":true},"inputs":{"IF0":{"block":{"type":"logic_compare","id":"n#wG,w4r6IjyzaIo`677","fields":{"OP":"EQ"},"inputs":{"A":{"block":{"type":"variables_get","id":"*n!X]K1b+}SK$@J$alxi","fields":{"VAR":{"id":"n]8$87^8lmrtaEACnE1d"}}}},"B":{"block":{"type":"value_std_logic","id":"8MU*K]_cMJfjg^L.D(b-","fields":{"VALUE":1}}}}}},"DO0":{"block":{"type":"variables_set","id":"!|^{v!m0aUKs?kpx;gDb","fields":{"VAR":{"id":"~iiWRA*lb9mbHGhV[$Wf"}},"inputs":{"VALUE":{"block":{"type":"value_std_logic_vector","id":")5F7jZ~zy3_2I:HcN+E1","fields":{"VALUE":"0000"}}}}}},"ELSE":{"block":{"type":"controls_case","id":"}pewB^0Aq7_N+8N5^y^}","inputs":{"ON":{"block":{"type":"variables_get","id":"16Dw__7SO;rgwlSKF*g)","fields":{"VAR":{"id":"{GR_E^Dq2y@4IV]`kg(b"}}}},"body":{"block":{"type":"controls_when","id":"S[ZF{)*Ama?[{oTF(01m","inputs":{"TEST":{"block":{"type":"value_std_logic_vector","id":"F}4(mB]cOVb7Y:C-phyL","fields":{"VALUE":"0000"}}},"body":{"block":{"type":"variables_set","id":"xCBd1`6wF(rroUuo`tRs","fields":{"VAR":{"id":"~iiWRA*lb9mbHGhV[$Wf"}},"inputs":{"VALUE":{"block":{"type":"value_std_logic_vector","id":";,hEK6MEmB30{qT_v4Ph","fields":{"VALUE":"0000"}}}}}}},"next":{"block":{"type":"controls_when","id":"j[c=REidZPG0$qk=u*qk","inputs":{"TEST":{"block":{"type":"logic_or","id":"G0c#VA~h/Pqj10u|o)@e","inputs":{"A":{"block":{"type":"logic_or","id":"h8ha*OW?#kW4DL[1Np$.","inputs":{"A":{"block":{"type":"value_std_logic_vector","id":"0yz8K0h6$PR~hwkEncc-","fields":{"VALUE":"0001"}}},"B":{"block":{"type":"value_std_logic_vector","id":"M+*;@Lban4Qx0L}MZJsh","fields":{"VALUE":"0010"}}}}}},"B":{"block":{"type":"logic_or","id":"P;Wb@aAU]TlbY1F$$cyv","inputs":{"A":{"block":{"type":"value_std_logic_vector","id":"bPj=%g~//CL`}E;FE-QN","fields":{"VALUE":"0100"}}},"B":{"block":{"type":"value_std_logic_vector","id":"XB?JsoiP]X72,9/g#[?p","fields":{"VALUE":"1000"}}}}}}}}},"body":{"block":{"type":"variables_set","id":"r8}2E5Z#U6~5GN9uP[TN","fields":{"VAR":{"id":"~iiWRA*lb9mbHGhV[$Wf"}},"inputs":{"VALUE":{"block":{"type":"value_std_logic_vector","id":"*5.m~w5KfSlyvtQe2Uc#","fields":{"VALUE":"0001"}}}}}}},"next":{"block":{"type":"controls_when","id":":xiKq|Xk9i}A3J!ksu+*","inputs":{"TEST":{"block":{"type":"logic_or","id":"VA]:Vm)BkunSt:GA:f+b","inputs":{"A":{"block":{"type":"logic_or","id":"AZVOQJWLDyP(-MlqT!Bd","inputs":{"A":{"block":{"type":"value_std_logic_vector","id":"KM%ku:!6]zxl@-_NDe8*","fields":{"VALUE":"0011"}}},"B":{"block":{"type":"value_std_logic_vector","id":"fJ!e^$nN)c8Ga{rj,?|A","fields":{"VALUE":"0101"}}}}}},"B":{"block":{"type":"logic_or","id":"6{AtX8{C,d{txK{hmmvT","inputs":{"A":{"block":{"type":"logic_or","id":"v}vIx+?Ey=)BO,eRMT_G","inputs":{"A":{"block":{"type":"value_std_logic_vector","id":"aP8f(HPSp8k(4E){kV0,","fields":{"VALUE":"0110"}}},"B":{"block":{"type":"value_std_logic_vector","id":"+MklKiUm++9o^H25z@{A","fields":{"VALUE":"1010"}}}}}},"B":{"block":{"type":"logic_or","id":"kpz!_=[*8L)j{}l~{7e.","inputs":{"A":{"block":{"type":"value_std_logic_vector","id":"zPD|~oAq#3+/U{HA+S1b","fields":{"VALUE":"1100"}}},"B":{"block":{"type":"value_std_logic_vector","id":"[Du;9k=~),SGWnk}7w-E","fields":{"VALUE":"1001"}}}}}}}}}}}},"body":{"block":{"type":"variables_set","id":"CSyLee$So:OHipYf1l^+","fields":{"VAR":{"id":"~iiWRA*lb9mbHGhV[$Wf"}},"inputs":{"VALUE":{"block":{"type":"value_std_logic_vector","id":",TjP2Ki~AztB5102atRf","fields":{"VALUE":"0010"}}}}}}},"next":{"block":{"type":"controls_when","id":"gVha|X2-^Ru;?#Ux{5`h","inputs":{"TEST":{"block":{"type":"logic_or","id":"4C4vzE_7Npeh?/M2~zR#","inputs":{"A":{"block":{"type":"logic_or","id":"d=Go#vnW[^F%,N$j_.f2","inputs":{"A":{"block":{"type":"value_std_logic_vector","id":"U=t6H5nzT;{Wlr7@R5tZ","fields":{"VALUE":"0111"}}},"B":{"block":{"type":"value_std_logic_vector","id":"#*QmbDpEdFTL!8L@N3}W","fields":{"VALUE":"1011"}}}}}},"B":{"block":{"type":"logic_or","id":"`8X~NC1:K_Ll(jFy/}zU","inputs":{"A":{"block":{"type":"value_std_logic_vector","id":"{g;_F,_~wPSuqd;SHg=!","fields":{"VALUE":"1101"}}},"B":{"block":{"type":"value_std_logic_vector","id":"Rjge#xK|[rtE?T)|Yf`1","fields":{"VALUE":"111"}}}}}}}}},"body":{"block":{"type":"variables_set","id":"7iGd7!%4XmAardf2UTi#","fields":{"VAR":{"id":"~iiWRA*lb9mbHGhV[$Wf"}},"inputs":{"VALUE":{"block":{"type":"value_std_logic_vector","id":"mQi%i9?:2;dqtaASogn[","fields":{"VALUE":"0011"}}}}}}},"next":{"block":{"type":"controls_when","id":"5QvE!ECPOhc2p%2xg^W~","inputs":{"TEST":{"block":{"type":"value_std_logic_vector","id":"JdIBA5XO6RV}-|+^QWvr","fields":{"VALUE":"1111"}}},"body":{"block":{"type":"variables_set","id":"[F|;0Zs(5ECH/=!4!1ks","fields":{"VAR":{"id":"~iiWRA*lb9mbHGhV[$Wf"}},"inputs":{"VALUE":{"block":{"type":"value_std_logic_vector","id":"qQDe1BTJay|_QRUA-#~t","fields":{"VALUE":"0100"}}}}}}},"next":{"block":{"type":"controls_when","id":".r8TdjWli~`9L2Wg`,bO","icons":{"comment":{"text":"Cover the other bit values: 'U', 'X', 'Z', 'W', 'L' & 'H'","pinned":false,"height":80,"width":160}},"inputs":{"TEST":{"block":{"type":"logic_others","id":"_xS4yHrxO!-g_cbxj`iB"}},"body":{"block":{"type":"variables_set","id":"`DA!Q9nHbrjBuy{h0K8*","fields":{"VAR":{"id":"~iiWRA*lb9mbHGhV[$Wf"}},"inputs":{"VALUE":{"block":{"type":"value_std_logic_vector","id":"5u;{42F1YGrwwYPMGtpI","fields":{"VALUE":"1111"}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}]},"variables":[{"name":"clk","id":"8Pm2mSFhfaHJE=YF.`d/"},{"name":"reset","id":"n]8$87^8lmrtaEACnE1d"},{"name":"incr","id":"BN8?u[FUgn1J0IG|csF4"},{"name":"buttons","id":"{GR_E^Dq2y@4IV]`kg(b"},{"name":"leds","id":"~iiWRA*lb9mbHGhV[$Wf"}]}
35 changes: 1 addition & 34 deletions examples/adder_binary.vhdl.sbe
Original file line number Diff line number Diff line change
@@ -1,34 +1 @@
{
"entity": {
"clk": [
"in",
"std_logic"
],
"reset": [
"in",
"std_logic"
],
"incr": [
"in",
"std_logic"
],
"buttons": [
"in",
"std_logic_vector(3 downto 0)"
],
"leds": [
"out",
"std_logic_vector(3 downto 0)"
]
},
"name": "led4_button4",
"constants": {
"button_tab_c": [
"natural",
"2"
]
},
"libraries": {
"ieee": {}
}
}
{"entity":{"clk":["in","std_logic"],"reset":["in","std_logic"],"incr":["in","std_logic"],"buttons":["in","std_logic_vector(3 downto 0)"],"leds":["out","std_logic_vector(3 downto 0)"]},"name":"led4_button4","constants":{"button_tab_c":["natural","2"]},"libraries":{"ieee":{}},"signals":{},"aliases":{}}
Loading

0 comments on commit 7668028

Please sign in to comment.