Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge with dev #78

Merged
merged 241 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
241 commits
Select commit Hold shift + click to select a range
636d6e3
Initial work on editor, start with ctrl+e
vaneri-9 Jul 13, 2023
be66429
quick cleanup
vaneri-9 Jul 13, 2023
c7da50c
Moving components works, connections do not change/work
vaneri-9 Jul 14, 2023
31505a2
Left side library (very limited), drag in new objects (to be better)
vaneri-9 Jul 14, 2023
d06db4f
properties window (only for add right now)
vaneri-9 Jul 19, 2023
91603b1
merge with master to get new ids
vaneri-9 Jul 19, 2023
3ecaad9
properties window now allows to select inputs and their fields as wel…
vaneri-9 Jul 19, 2023
4e04f01
merge with wire-vec
vaneri-9 Jul 21, 2023
1521379
wire work on the editor, massive changes coming
vaneri-9 Jul 21, 2023
401a7a5
Wires now somewhat work properly, small overhaul
vaneri-9 Jul 22, 2023
31bd526
Added an input mode
vaneri-9 Jul 22, 2023
a9ea568
can now connect inputs and outputs, workable state
vaneri-9 Jul 23, 2023
48580b4
big ui rework for egui, a lot less code
vaneri-9 Jul 23, 2023
5f21d01
Removed the useage of refcell and enabled serialize and deserialize a…
vaneri-9 Jul 24, 2023
210c68c
merge with master and add saving
vaneri-9 Jul 24, 2023
f6847f1
Fixed bug with the tmp id not being set when default is made
vaneri-9 Jul 24, 2023
e561f31
Fix almost all tests/examples
vaneri-9 Jul 24, 2023
9a4854d
Fixed issues with vizia (doesn't compile still though for some reason)
vaneri-9 Jul 24, 2023
0cd1376
Forgot to readd the paths for EguiExtra
vaneri-9 Jul 24, 2023
e3bb2a4
Renamed InputId to InputPort
vaneri-9 Jul 25, 2023
1683a1b
Fixed warnings, renamed files/functions moved most editor struct enum…
vaneri-9 Jul 25, 2023
63684b6
Fixed mem bug
vaneri-9 Jul 25, 2023
9e2eb01
Fixed all clippy messages
vaneri-9 Jul 25, 2023
502e7cc
Merge with master
vaneri-9 Jul 25, 2023
db9c50c
Missed one merge conflict...
vaneri-9 Jul 25, 2023
79288e6
apparently there was a new component added, but not for egui
vaneri-9 Jul 25, 2023
21b0c4d
ci :upside_down_smile:
vaneri-9 Jul 25, 2023
ea3bd8b
Fixed various bugs
vaneri-9 Jul 25, 2023
3244876
Fixed properties window out of bounds clicking and clippy error
vaneri-9 Jul 25, 2023
d3978d7
Auto-save when switching between editor and simulator mode
vaneri-9 Jul 25, 2023
b809dad
Fixed setting constant value, mixed up keyword for clippy so fixed it
vaneri-9 Jul 25, 2023
5a5a044
Added loading functionality
vaneri-9 Jul 25, 2023
db61e9b
Added open/save/save as
vaneri-9 Jul 25, 2023
cb56b50
Fixed numerous issues with wires
vaneri-9 Jul 26, 2023
1f81071
clippy
vaneri-9 Jul 26, 2023
5cc773d
Massve rework #3 or 4, don't remember
vaneri-9 Jul 26, 2023
53fd94e
Forgot to fix 3 examples
vaneri-9 Jul 26, 2023
c8c7657
Added sext and mem and fixed some stuff
vaneri-9 Jul 27, 2023
2ee6468
Added mux
vaneri-9 Jul 27, 2023
677597c
Added reg
vaneri-9 Jul 27, 2023
4615651
mux removable/addable inputs
vaneri-9 Jul 27, 2023
329534d
right click to get out of wire and input mode
vaneri-9 Jul 27, 2023
6312fbf
Merge with master and fix riscv
vaneri-9 Aug 7, 2023
5e33d27
Changed Slider into DragValue for positions and constants, fixed form…
vaneri-9 Aug 7, 2023
8f877d8
Added wire mode button
vaneri-9 Aug 7, 2023
0b936c0
Probe edit
vaneri-9 Aug 7, 2023
2470e3e
Visualize port locations, fix id change bug
vaneri-9 Aug 8, 2023
ee980c7
Fixed scaling not taken into account when placing components
vaneri-9 Aug 10, 2023
d62a372
Added view and breakpoints to riscv instruction memory, WIP
onsdagens Aug 11, 2023
3f65e43
Added current instruction highlight and breakpoint marker in vizia vi…
onsdagens Aug 11, 2023
fe79b30
Draw rectangle for instruction memory vizia component
onsdagens Aug 11, 2023
9155b7d
Fixed wire properties ui, added possible to add/remove wire segments
vaneri-9 Aug 18, 2023
29b0e14
Added grid
vaneri-9 Aug 18, 2023
13394f0
Added grid snapping for wires
vaneri-9 Aug 18, 2023
7fbf9d6
Delete with del key
vaneri-9 Aug 19, 2023
1e7ee57
Added snapping to grid with placing components
vaneri-9 Aug 19, 2023
56e7d70
Fixed grid
vaneri-9 Aug 19, 2023
feb5924
Fixed snapping when moving components
vaneri-9 Aug 19, 2023
bea39b1
Merge branch 'master' into egui-editor
vaneri-9 Aug 19, 2023
058aedd
Fix merge errors
vaneri-9 Aug 19, 2023
38d7c57
Fixed linter error since I used github gui
vaneri-9 Aug 19, 2023
6ce2e6f
Simulator::new now returns result
vaneri-9 Aug 26, 2023
f64ca54
Fixed simulator for vizia frontend
vaneri-9 Aug 26, 2023
7bb3f58
Fixed all tests broken previously
vaneri-9 Aug 26, 2023
3f9ca1e
Also fix mips and riscv tests
vaneri-9 Aug 26, 2023
2d91836
Fix bug with open crashing egui
vaneri-9 Aug 30, 2023
ebd1d09
Also fix crash for when opening in editor mode
vaneri-9 Aug 30, 2023
16f9ad6
clic CSR ops added
onsdagens Sep 4, 2023
01b4bb3
pushed local dependencies
onsdagens Sep 4, 2023
8935111
CLIC tentatively working
onsdagens Sep 6, 2023
544e73a
ENEST
onsdagens Sep 7, 2023
1c25eec
formatting
onsdagens Sep 7, 2023
9b09fb6
formatting
onsdagens Sep 7, 2023
66ad86a
formatting
onsdagens Sep 7, 2023
693323e
ENEST improvement
onsdagens Sep 7, 2023
b18ea3b
formatting
onsdagens Sep 7, 2023
5caed72
update
onsdagens Sep 11, 2023
f33e176
for now semiworking
onsdagens Sep 13, 2023
638fcb9
endianness fix, rtic working
onsdagens Sep 14, 2023
fc9da0f
endianness fix, rtic working
onsdagens Sep 14, 2023
c155ef0
update readme with rust related instructions
onsdagens Sep 27, 2023
8bdf9c4
typo
onsdagens Sep 27, 2023
85b8c84
remove local deps
onsdagens Sep 28, 2023
a94a0e9
Merge branch 'riscv-clic' of github.com:perlindgren/syncrim into risc…
onsdagens Sep 28, 2023
d46a9d5
comment fix
onsdagens Sep 28, 2023
6c1e6e4
Update README.md
onsdagens Sep 28, 2023
f2ad53c
editor library is now an argument
onsdagens Oct 8, 2023
6ca851b
use generic dummy generators to avoid hard coded match statement in e…
onsdagens Oct 10, 2023
868b3e5
some risc-v components implemented for egui
onsdagens Oct 10, 2023
0f2718e
all standard rv32i components implemented for egui
onsdagens Oct 10, 2023
2ec424f
example of combining default and riscv lib
onsdagens Oct 12, 2023
683af96
hacky autosave on each change, for now just dump it all in autosave.json
onsdagens Oct 12, 2023
cae7ccf
Merge pull request #66 from perlindgren/master
onsdagens Oct 12, 2023
6e1e418
Merge pull request #67 from perlindgren/instr_mem
onsdagens Oct 12, 2023
6c2f2aa
autosave fixes + match statement on panicking unwrap
onsdagens Oct 12, 2023
92b6a78
Merge branch 'egui_generic' of github.com:perlindgren/syncrim into eg…
onsdagens Oct 12, 2023
3cffc23
riscv model view implemented, some bugifxes to the editor and egui co…
onsdagens Oct 12, 2023
38e77c6
merge with clic branch
onsdagens Oct 12, 2023
6dcd23a
trying to fix performance issues
onsdagens Oct 13, 2023
a9c1c5f
checkpoint
onsdagens Oct 23, 2023
6b05564
checkpoint
onsdagens Oct 23, 2023
c1f22dc
working
onsdagens Oct 30, 2023
3e5f1b7
working
onsdagens Oct 30, 2023
3f0bf9d
make gui less ugly, clean up warnings, add ascii view to data memory,…
onsdagens Nov 27, 2023
17d90d7
cleanup, update tests, clippy wrangling
onsdagens Nov 28, 2023
128cdcf
added example lab1b solution
onsdagens Nov 28, 2023
bf5c9c1
Play and step back functionality improved, clippy wrangling
onsdagens Dec 1, 2023
eda3595
performance improvement to rendering of egui memory view
onsdagens Dec 4, 2023
a9ceb92
performance improvements
onsdagens Dec 4, 2023
241346a
fix memory reset
onsdagens Dec 4, 2023
0b37f64
fix clic unclock
onsdagens Dec 4, 2023
64918b1
clean riscv_asm crate before building on windows
onsdagens Dec 7, 2023
0cedcf9
quickfix regfile scaling issue
onsdagens Dec 8, 2023
8653566
fix warning
onsdagens Dec 8, 2023
8af9571
fix reg file scaling issue
onsdagens Dec 8, 2023
8cc8758
fix wire naming in riscv model
onsdagens Dec 8, 2023
3e02df2
fix adder labels in egui
onsdagens Dec 8, 2023
c865954
add writeback data wire
onsdagens Dec 8, 2023
c3ebbe7
rf-stack
perlindgren Jan 30, 2024
f5f48d8
fix memory rendering bugs
onsdagens Jan 30, 2024
b7a1d56
crash
perlindgren Jan 30, 2024
db3502b
regfile now loads
perlindgren Jan 31, 2024
ab6a98e
loads at least
perlindgren Jan 31, 2024
17200dd
wip
perlindgren Jan 31, 2024
db36107
wip2
perlindgren Jan 31, 2024
785d232
wip3
perlindgren Jan 31, 2024
04fab3e
add wb ctl component
onsdagens Feb 1, 2024
e75ee85
wip layout
perlindgren Feb 1, 2024
de38ce4
riscv
perlindgren Feb 1, 2024
f77a890
any
perlindgren Feb 1, 2024
75e945a
any works, but RVMem fails on data
perlindgren Feb 1, 2024
47d21b6
fix model, stateful component init, component reset on sim init, stat…
onsdagens Feb 1, 2024
55fc860
changes to reg file
onsdagens Feb 1, 2024
091801d
changes to reg file
onsdagens Feb 1, 2024
c844b90
mux update
perlindgren Feb 2, 2024
fe68550
checkpointing
onsdagens Feb 2, 2024
2472376
Merge branch 'wb_ctl' into equi_instr_data_rfstack
onsdagens Feb 2, 2024
5e6589f
Merge pull request #70 from perlindgren/equi_instr_data_rfstack
onsdagens Feb 2, 2024
6e0aaa0
cross
perlindgren Feb 2, 2024
bd6cb1a
merge
perlindgren Feb 2, 2024
aff1a9c
render stack depth
onsdagens Feb 2, 2024
407ffac
Merge branch 'wb_ctl' into equi_instr_data_rfstack
onsdagens Feb 2, 2024
370660c
add ra wb machinery, WiP
onsdagens Feb 2, 2024
5529bc6
broken
perlindgren Feb 2, 2024
47b91c0
only semi-broken now
onsdagens Feb 2, 2024
1038709
works
perlindgren Feb 2, 2024
5f79e6d
crash
perlindgren Feb 2, 2024
17d7bec
polish
perlindgren Feb 2, 2024
6208c77
compiles
perlindgren Feb 2, 2024
10b75a8
ra out from reg_file
perlindgren Feb 2, 2024
0f03c37
A bit mor Rust like
perlindgren Feb 2, 2024
38e1a59
its a mess
perlindgren Feb 3, 2024
942f2f7
now works a bit
perlindgren Feb 3, 2024
af8b59a
upperHex
perlindgren Feb 4, 2024
cdb0f0d
wip
perlindgren Feb 4, 2024
558c0ac
wip memory.x
perlindgren Feb 4, 2024
4e63610
no return
perlindgren Feb 4, 2024
aec9fcb
almost there
perlindgren Feb 4, 2024
5760ba9
wip
perlindgren Feb 4, 2024
ae764ee
combinatorial loop
perlindgren Feb 4, 2024
226ac42
branch logic wip
perlindgren Feb 4, 2024
bbccb67
wip
perlindgren Feb 5, 2024
2ea3527
works
perlindgren Feb 5, 2024
ca92575
add CLIC vanilla mode
onsdagens Feb 5, 2024
df54695
warnings and formatting
onsdagens Feb 5, 2024
9fca3a5
remove random println
onsdagens Feb 5, 2024
b9fed00
fix negative stack depth display in egui reg file
onsdagens Feb 5, 2024
c742396
fixes
perlindgren Feb 5, 2024
00f002a
polish
perlindgren Feb 5, 2024
42b3a3a
fix
perlindgren Feb 5, 2024
b3bf148
fixed alu op_a mux
perlindgren Feb 5, 2024
ffbe8fb
add isr/mret mux
onsdagens Feb 5, 2024
ea1a8d5
wip
perlindgren Feb 6, 2024
9c2e15c
kind of works
perlindgren Feb 6, 2024
5e52556
fix test bug, fix memory display bugs
onsdagens Feb 6, 2024
5dcbab8
add CSRs for accessing interrupt config MMIO, add SW example from pap…
onsdagens Feb 8, 2024
78ae4a1
fix warnings
onsdagens Feb 8, 2024
04c50cd
refactor clic, clear pending bit on interrupt
onsdagens Feb 9, 2024
5e988c2
warnings
onsdagens Feb 9, 2024
c426e5a
cleanup
perlindgren Feb 9, 2024
a5e4b97
DARK_GREY
perlindgren Feb 9, 2024
ea4f63e
probe update
perlindgren Feb 9, 2024
8bfe492
move some pixels
perlindgren Feb 9, 2024
8528a56
lighter assembly
perlindgren Feb 9, 2024
c07ce0d
rtic example
onsdagens Feb 12, 2024
d5bdb25
testing
onsdagens Feb 12, 2024
2976991
fix clic edge cases
onsdagens Feb 13, 2024
237dde7
Merge pull request #72 from perlindgren/rtic
onsdagens Feb 13, 2024
5af4ac3
remove bad trace
onsdagens Feb 13, 2024
5bc35c4
pend interrupts by csrrsi
onsdagens Feb 13, 2024
131ca02
add GPIO, LED, point Rust example to new PAC generated from SVD
onsdagens Feb 14, 2024
93f49b7
rust example now does blinky using the HAL once finished with the int…
onsdagens Feb 15, 2024
17f603f
rust example now properly uses cx.device and passes the led as a reso…
onsdagens Feb 15, 2024
a4c0be3
add mtime, use it in Rust example
onsdagens Feb 19, 2024
652d440
not sure if working
onsdagens Feb 19, 2024
224e133
experimenting
onsdagens Feb 20, 2024
6748cb7
experimenting
onsdagens Feb 23, 2024
eb49e37
point to git dependencies
onsdagens Feb 23, 2024
aa93b98
flip display order of GPIO pins
onsdagens Feb 23, 2024
7534728
Merge pull request #74 from perlindgren/fixed_locks
onsdagens Feb 23, 2024
a161a53
Merge branch 'egui_instr_data' into equi_instr_data_rfstack
onsdagens Feb 23, 2024
d1e1fd0
give GPIO table explicit ID as required by spec
onsdagens Feb 23, 2024
090f219
mem and branch tests
perlindgren Feb 25, 2024
33acc8b
move model closer to hippomenes
onsdagens Feb 26, 2024
d3a1110
add labeled probe, still a bit ugly
onsdagens Feb 27, 2024
a8165b6
add signals for each immediate, and mux to select the proper one
onsdagens Feb 27, 2024
c122283
start replacing imm signals in GUI with imm mux probes
onsdagens Feb 27, 2024
be0ab4f
split imm signal again, adjust model view
onsdagens Feb 27, 2024
512b88b
add branch/jump target wire
onsdagens Feb 27, 2024
2277d8c
model GUI changes, add example of rtclic breaking
onsdagens Feb 28, 2024
3383def
add GPIO CSR interface. the underlying implementation supports reads …
onsdagens Feb 28, 2024
6c5d619
add GPIO state RW CSR
onsdagens Feb 28, 2024
9d3e5e2
breaking example in asm_break.s
onsdagens Mar 4, 2024
99de69a
write magic number to RA on interrupt instead of mepc
onsdagens Mar 5, 2024
9bed1dc
update model view to reflect new way of handling interrupt return
onsdagens Mar 5, 2024
90078a1
riscv.json polish
perlindgren Mar 8, 2024
7b95140
align GPIO interface to hippo
onsdagens Mar 9, 2024
1e12f0f
gpio example
onsdagens Mar 9, 2024
879d680
pack interrupt config CSRs like hippo
onsdagens Mar 10, 2024
5358289
n-clic now uses CSRs to define vectors, this breaks backwards compati…
onsdagens Mar 11, 2024
d5e71be
add timestamping
onsdagens Mar 11, 2024
5e08430
add timer interrupt, fix warnings
onsdagens Mar 11, 2024
bb57e94
remove deprecated mux, fix what fixing warnings broke
onsdagens Mar 11, 2024
9150996
fix timestamping (add separate monotonic)
onsdagens Mar 11, 2024
3b5fc49
rust example now uses hippomenes-core
onsdagens Mar 13, 2024
9e79f21
use hippomenes-rt instead of riscv-rt
onsdagens Mar 13, 2024
f9c2c6a
asm_timer
perlindgren Mar 15, 2024
a71e76b
use github dependencies
onsdagens Mar 16, 2024
8b3736d
fix branch sign extend
onsdagens Mar 17, 2024
a74c1df
bug fixes
onsdagens Mar 22, 2024
6d4142d
SW UART example (here we just blink the LED since we have no monitor
onsdagens Mar 22, 2024
8ab6260
fix example Rust crate
onsdagens Jun 4, 2024
83e83c4
Merge branch 'master' into hippomenes
onsdagens Jun 4, 2024
cced0bd
rustfmt
onsdagens Jun 4, 2024
60dd5b7
Merge branch 'hippomenes' of github.com:perlindgren/syncrim into hipp…
onsdagens Jun 4, 2024
3f035e9
rustfmt
onsdagens Jun 4, 2024
9348950
fix vizia build, move default to egui
onsdagens Jun 7, 2024
3668302
add empty default model
onsdagens Jun 7, 2024
3819153
add default empty model path
onsdagens Jun 7, 2024
1a58ef7
as_any impl for mips components
onsdagens Jun 7, 2024
1d81c2f
fix tests, warnings
onsdagens Jun 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Rust

on:
push:
branches: ["master"]
branches: ["master", "egui_generic"]
pull_request:
branches: ["master"]

Expand Down Expand Up @@ -42,4 +42,4 @@ jobs:
- uses: Swatinem/rust-cache@v2

- name: rustfmt
run: cargo fmt --all -- --check
run: cargo fmt --all -- --check
18 changes: 18 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,38 @@
"Swatinem",
"Textbox",
"Tpdf",
"bgeu",
"bltu",
"blueviolet",
"clic",
"clicintattr",
"clicintctl",
"clicintie",
"clicintip",
"csrstore",
"darkgray",
"eframe",
"egui",
"epaint",
"graphviz",
"hoverable",
"imem",
"interactable",
"jalr",
"librust",
"lightcoral",
"lightgray",
"lightgreen",
"lsbzero",
"menubutton",
"mepc",
"mintthresh",
"mmio",
"mret",
"petgraph",
"println",
"regfile",
"regs",
"repr",
"rgbaf",
"rgbf",
Expand All @@ -39,6 +56,7 @@
"struct",
"stylesheet",
"syncrim",
"szext",
"toposort",
"trik",
"typetag",
Expand Down
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ optional = true

[dependencies.egui]
optional = true
version = "0.22.0"
version = "0.23.0"

[dependencies.eframe]
optional = true
version = "0.22.0"
version = "0.23.0"

[dependencies.epaint]
optional = true
version = "0.22.0"
version = "0.23.0"

[features]
default = ["gui-vizia"]
default = ["gui-egui"]
components = []
gui-vizia = ["vizia", "components"]
gui-egui = ["egui", "eframe", "epaint", "components"]
Expand Down
3 changes: 3 additions & 0 deletions empty.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"store": []
}
6 changes: 4 additions & 2 deletions examples/add.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
use std::path::PathBuf;
#[cfg(feature = "gui-egui")]
use syncrim::gui_egui::editor::Library;
use syncrim::{
common::{ComponentStore, Input},
components::*,
Expand Down Expand Up @@ -40,8 +42,8 @@ fn main() {
cs.save_file(&path);

#[cfg(feature = "gui-egui")]
syncrim::gui_egui::gui(&cs, &path).ok();
syncrim::gui_egui::gui(cs, &path, Library::default()).ok();

#[cfg(feature = "gui-vizia")]
syncrim::gui_vizia::gui(&cs, &path);
syncrim::gui_vizia::gui(cs, &path);
}
6 changes: 4 additions & 2 deletions examples/add_edit.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
use std::path::PathBuf;
#[cfg(feature = "gui-egui")]
use syncrim::gui_egui::editor::Library;
use syncrim::{
common::{ComponentStore, Input},
components::*,
Expand Down Expand Up @@ -40,8 +42,8 @@ fn main() {
cs.save_file(&path);

#[cfg(feature = "gui-egui")]
syncrim::gui_egui::gui(&cs, &path).ok();
syncrim::gui_egui::gui(cs, &path, Library::default()).ok();

#[cfg(feature = "gui-vizia")]
syncrim::gui_vizia::gui(&cs, &path);
syncrim::gui_vizia::gui(cs, &path);
}
7 changes: 4 additions & 3 deletions examples/add_mux.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
use std::path::PathBuf;
#[cfg(feature = "gui-egui")]
use syncrim::gui_egui::editor::Library;
use syncrim::{
common::{ComponentStore, Input},
components::*,
fern::fern_setup,
};

fn main() {
fern_setup();
let cs = ComponentStore {
Expand Down Expand Up @@ -107,8 +108,8 @@ fn main() {
cs.save_file(&path);

#[cfg(feature = "gui-egui")]
syncrim::gui_egui::gui(&cs, &path).ok();
syncrim::gui_egui::gui(cs, &path, Library::default()).ok();

#[cfg(feature = "gui-vizia")]
syncrim::gui_vizia::gui(&cs, &path);
syncrim::gui_vizia::gui(cs, &path);
}
7 changes: 4 additions & 3 deletions examples/add_reg.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
use std::path::PathBuf;
#[cfg(feature = "gui-egui")]
use syncrim::gui_egui::editor::Library;
use syncrim::{
common::{ComponentStore, Input, SignalFmt, SignalSize},
components::*,
fern::fern_setup,
};

fn main() {
fern_setup();

Expand Down Expand Up @@ -66,8 +67,8 @@ fn main() {
cs.save_file(&path);

#[cfg(feature = "gui-egui")]
syncrim::gui_egui::gui(&cs, &path).ok();
syncrim::gui_egui::gui(cs, &path, Library::default()).ok();

#[cfg(feature = "gui-vizia")]
syncrim::gui_vizia::gui(&cs, &path);
syncrim::gui_vizia::gui(cs, &path);
}
7 changes: 4 additions & 3 deletions examples/add_reg_compound_wire.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
use std::path::PathBuf;
#[cfg(feature = "gui-egui")]
use syncrim::gui_egui::editor::Library;
use syncrim::{
common::{ComponentStore, Input},
components::*,
fern::fern_setup,
};

fn main() {
fern_setup();
let cs = ComponentStore {
Expand Down Expand Up @@ -48,8 +49,8 @@ fn main() {
cs.save_file(&path);

#[cfg(feature = "gui-egui")]
syncrim::gui_egui::gui(&cs, &path).ok();
syncrim::gui_egui::gui(cs, &path, Library::default()).ok();

#[cfg(feature = "gui-vizia")]
syncrim::gui_vizia::gui(&cs, &path);
syncrim::gui_vizia::gui(cs, &path);
}
7 changes: 4 additions & 3 deletions examples/data_mem.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
use std::{ops::Range, path::PathBuf};
#[cfg(feature = "gui-egui")]
use syncrim::gui_egui::editor::Library;
use syncrim::{
common::{ComponentStore, Input, SignalUnsigned},
components::*,
fern::fern_setup,
};

fn main() {
fern_setup();
let cs = ComponentStore {
Expand Down Expand Up @@ -79,8 +80,8 @@ fn main() {
cs.save_file(&path);

#[cfg(feature = "gui-egui")]
syncrim::gui_egui::gui(&cs, &path).ok();
syncrim::gui_egui::gui(cs, &path, Library::default()).ok();

#[cfg(feature = "gui-vizia")]
syncrim::gui_vizia::gui(&cs, &path);
syncrim::gui_vizia::gui(cs, &path);
}
7 changes: 4 additions & 3 deletions examples/mux_edit.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
use std::path::PathBuf;
#[cfg(feature = "gui-egui")]
use syncrim::gui_egui::editor::Library;
use syncrim::{
common::{ComponentStore, Input},
components::*,
fern::fern_setup,
};

fn main() {
fern_setup();
let cs = ComponentStore {
Expand Down Expand Up @@ -63,8 +64,8 @@ fn main() {
cs.save_file(&path);

#[cfg(feature = "gui-egui")]
syncrim::gui_egui::gui(&cs, &path).ok();
syncrim::gui_egui::gui(cs, &path, Library::default()).ok();

#[cfg(feature = "gui-vizia")]
syncrim::gui_vizia::gui(&cs, &path);
syncrim::gui_vizia::gui(cs, &path);
}
7 changes: 4 additions & 3 deletions examples/probe_constant.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::path::PathBuf;
#[cfg(feature = "gui-egui")]
use syncrim::gui_egui::editor::Library;
use syncrim::{common::ComponentStore, components::*, fern::fern_setup};

fn main() {
fern_setup();

Expand All @@ -15,8 +16,8 @@ fn main() {
cs.save_file(&path);

#[cfg(feature = "gui-egui")]
syncrim::gui_egui::gui(&cs, &path).ok();
syncrim::gui_egui::gui(cs, &path, Library::default()).ok();

#[cfg(feature = "gui-vizia")]
syncrim::gui_vizia::gui(&cs, &path);
syncrim::gui_vizia::gui(cs, &path);
}
7 changes: 4 additions & 3 deletions examples/probe_edit.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
use std::path::PathBuf;
#[cfg(feature = "gui-egui")]
use syncrim::gui_egui::editor::Library;
use syncrim::{
common::{ComponentStore, Input},
components::*,
fern::fern_setup,
};

fn main() {
fern_setup();
let cs = ComponentStore {
Expand All @@ -18,8 +19,8 @@ fn main() {
cs.save_file(&path);

#[cfg(feature = "gui-egui")]
syncrim::gui_egui::gui(&cs, &path).ok();
syncrim::gui_egui::gui(cs, &path, Library::default()).ok();

#[cfg(feature = "gui-vizia")]
syncrim::gui_vizia::gui(&cs, &path);
syncrim::gui_vizia::gui(cs, &path);
}
7 changes: 4 additions & 3 deletions examples/probe_stim.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::path::PathBuf;
#[cfg(feature = "gui-egui")]
use syncrim::gui_egui::editor::Library;
use syncrim::{common::ComponentStore, components::*, fern::fern_setup};

fn main() {
fern_setup();
let cs = ComponentStore {
Expand All @@ -11,8 +12,8 @@ fn main() {
cs.save_file(&path);

#[cfg(feature = "gui-egui")]
syncrim::gui_egui::gui(&cs, &path).ok();
syncrim::gui_egui::gui(cs, &path, Library::default()).ok();

#[cfg(feature = "gui-vizia")]
syncrim::gui_vizia::gui(&cs, &path);
syncrim::gui_vizia::gui(cs, &path);
}
7 changes: 4 additions & 3 deletions examples/probe_stim_assert.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
use std::path::PathBuf;
#[cfg(feature = "gui-egui")]
use syncrim::gui_egui::editor::Library;
use syncrim::{
common::{ComponentStore, Input},
components::*,
fern::fern_setup,
};

fn main() {
fern_setup();
let cs = ComponentStore {
Expand All @@ -23,8 +24,8 @@ fn main() {
cs.save_file(&path);

#[cfg(feature = "gui-egui")]
syncrim::gui_egui::gui(&cs, &path).ok();
syncrim::gui_egui::gui(cs, &path, Library::default()).ok();

#[cfg(feature = "gui-vizia")]
syncrim::gui_vizia::gui(&cs, &path);
syncrim::gui_vizia::gui(cs, &path);
}
9 changes: 5 additions & 4 deletions examples/sext.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
use std::path::PathBuf;
#[cfg(feature = "gui-egui")]
use syncrim::gui_egui::editor::Library;
use syncrim::{
common::{ComponentStore, Input},
components::*,
fern::fern_setup,
};

fn main() {
fern_setup();
let cs = ComponentStore {
Expand All @@ -21,16 +22,16 @@ fn main() {
vec![(220.0, 100.0), (250.0, 100.0)],
Input::new("sxt0", "out"),
),
Probe::rc_new("p1", (260.0, 100.0), Input::new("sxt0", "out")),
Cross::rc_new("p1", (260.0, 100.0), Input::new("sxt0", "out")),
],
};

let path = PathBuf::from("sext.json");
cs.save_file(&path);

#[cfg(feature = "gui-egui")]
syncrim::gui_egui::gui(&cs, &path).ok();
syncrim::gui_egui::gui(cs, &path, Library::default()).ok();

#[cfg(feature = "gui-vizia")]
syncrim::gui_vizia::gui(&cs, &path);
syncrim::gui_vizia::gui(cs, &path);
}
4 changes: 2 additions & 2 deletions mips/examples/mips.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ fn main() {
cs.save_file(&path);

#[cfg(feature = "gui-egui")]
syncrim::gui_egui::gui(&cs, &path).ok();
syncrim::gui_egui::gui(cs, &path).ok();

#[cfg(feature = "gui-vizia")]
syncrim::gui_vizia::gui(&cs, &path);
syncrim::gui_vizia::gui(cs, &path);
}
4 changes: 2 additions & 2 deletions mips/examples/reg_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ fn main() {
cs.save_file(&path);

#[cfg(feature = "gui-egui")]
syncrim::gui_egui::gui(&cs, &path).ok();
syncrim::gui_egui::gui(cs, &path).ok();

#[cfg(feature = "gui-vizia")]
syncrim::gui_vizia::gui(&cs, &path);
syncrim::gui_vizia::gui(cs, &path);
}
Loading
Loading