-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
95 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,31 @@ | ||
:020000041000EA | ||
:10008000970100009381C1091381016E9300000064 | ||
:10009000130200009302000013030000930300000A | ||
:1000A00013040000930400001305000093050000F2 | ||
:1000B00013060000930600001307000093070000DA | ||
:1000C000EF004001970200F3938242F423A0A200C4 | ||
:1000D00073005010130101FE232E8100130401024E | ||
:1000E000930750002326F4FE9307A0002324F4FE78 | ||
:1000F000930780002322F4FE0327C4FE832784FE97 | ||
:100100003307F700832744FEB307F7401385070042 | ||
:0C0110000324C1011301010267800000FC | ||
:040000051000008067 | ||
:00000001FF | ||
:020000041000EA | ||
:100000009701000083A10119170100000321C11805 | ||
:10001000930000001302000093020000130300008D | ||
:100020009303000013040000930400001305000074 | ||
:10003000930500001306000093060000130700005C | ||
:1000400093070000EF0000149702000083A202153E | ||
:0800500023A0A2007300501070 | ||
:10005800B727000323820700130700F82386E70069 | ||
:10006800130750002380E70023820700130730009E | ||
:100078002386E700130770FC2384E70013070002B8 | ||
:100088002388E70067800000B727000303C54701FE | ||
:100098001375150067800000372700038347470161 | ||
:1000A80093F70702E38C07FE2300A7006780000090 | ||
:1000B800130101FF2324810023229100232611002C | ||
:1000C80013040500B304B500631C94008320C10029 | ||
:1000D800032481008324410013010101678000008B | ||
:1000E8000345040013041400EFF01FFB6FF0DFFD5D | ||
:1000F800372700038347470193F70702E38C07FE7E | ||
:100108008347470193F70704E38607FE67800000EB | ||
:10011800130101FF23261100EFF01FF7E30E05FE80 | ||
:100128008320C100B727000303C50700130101019D | ||
:1001380067800000130101FF23248100232291001E | ||
:100148002326110013040500B304B500631C9400B2 | ||
:100158008320C1000324810083244100130101018D | ||
:1001680067800000EFF0DFFA2300A40013041400F6 | ||
:100178006FF0DFFD6FF05FF26FF09FF9130570000D | ||
:04018800678000008C | ||
:10018C000000000098010010000800100800000397 | ||
:08019C00FFFFFFFF000000005F | ||
:0400000510000000E7 | ||
:00000001FF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,33 @@ | ||
read_slang --top croc_soc -F ../third_party/croc/croc.f \ | ||
-D SYNTHESIS -D COMMON_CELLS_ASSERTS_OFF --compat-mode \ | ||
--allow-use-before-declare --keep-hierarchy -D TARGET_SYNTHESIS | ||
read_slang --top croc_soc -F ../../../croc/croc.f \ | ||
-D SYNTHESIS -D COMMON_CELLS_ASSERTS_OFF \ | ||
--allow-use-before-declare -D TARGET_SYNTHESIS \ | ||
--keep-hierarchy | ||
hierarchy -top croc_soc | ||
stat | ||
check -assert | ||
prep -nomem | ||
async2sync | ||
opt -mux_undef | ||
setattr -mod -set keep_hierarchy 1 | ||
|
||
clk2fflogic | ||
chtype -map $ff __ff | ||
|
||
read_verilog -icells <<EOF | ||
(* do_flatten *) | ||
module __ff (D, Q, gclk); | ||
parameter WIDTH = 1; | ||
input gclk; | ||
input [WIDTH-1:0] D; | ||
output reg [WIDTH-1:0] Q; | ||
$dff #(.CLK_POLARITY(1), .WIDTH(WIDTH)) dff(.D(D), .Q(Q), .CLK(gclk)); | ||
endmodule | ||
EOF | ||
|
||
add -global_input gclk 1 | ||
hierarchy -top croc_soc | ||
flatten | ||
stat | ||
|
||
bwmuxmap | ||
write_cxxrtl croc_soc.cc | ||
write_cxxrtl -noflatten -g0 croc_soc.cc | ||
exec -- g++ -std=c++14 -o main main.cc -I `yosys-config --datdir`/include/backends/cxxrtl/runtime -Wno-shift-count-overflow -Wno-array-bounds -O1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.