Skip to content

Commit

Permalink
rnemae proc.sv to core.sv
Browse files Browse the repository at this point in the history
  • Loading branch information
hughperkins committed Apr 9, 2022
1 parent 5c635fa commit 51b36b7
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def run(args):
' src/int/chunked_add_task.sv src/int/chunked_sub_task.sv '
' src/generated/mul_pipeline_cycle_24bit_2bpc.sv src/float/float_mul_pipeline.sv'
' src/generated/mul_pipeline_cycle_32bit_2bpc.sv src/int/mul_pipeline_32bit.sv'
' src/proc.sv src/comp.sv'
' src/core.sv src/comp.sv'
' src/mem_delayed_large.sv src/mem_delayed.sv build/comp_driver.sv') == 0
os.system('./a.out | tee /tmp/out.txt')
with open('/tmp/out.txt') as f:
Expand Down
2 changes: 1 addition & 1 deletion src/comp.sv
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ module comp(
.oob_wen(oob_wen)
);

proc proc1(
core core1(
.rst(rst), .clk(clk), .out(out),
// .c2_op(op), .c2_imm1(imm1),
.pc(pc),
Expand Down
2 changes: 1 addition & 1 deletion src/proc.sv → src/core.sv
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ As of mar 28 2022:
Max propagation delay: 82.8 nand units
Area: 30956.0 nand units
*/
module proc(
module core(
input rst, clk,
output reg [data_width - 1:0] out,
output reg outen,
Expand Down
2 changes: 1 addition & 1 deletion src/verilator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ verilate(comp SOURCES ${BASE}/assert.sv ${BASE}/const.sv ${BASE}/op_const.sv
${BASE}/generated/mul_pipeline_cycle_24bit_2bpc.sv
${BASE}/generated/mul_pipeline_cycle_32bit_2bpc.sv
${BASE}/int/int_div_regfile.sv
${BASE}/proc.sv
${BASE}/core.sv
${BASE}/mem_delayed_large.sv ${BASE}/mem_delayed.sv
${BASE}/comp.sv
TOP_MODULE comp
Expand Down
2 changes: 1 addition & 1 deletion test/behav/verilator_compile_comp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ verilator -sv --cc src/op_const.sv src/assert.sv src/const.sv \
src/generated/mul_pipeline_cycle_24bit_2bpc.sv src/float/float_mul_pipeline.sv \
src/int/mul_pipeline_32bit.sv src/generated/mul_pipeline_cycle_32bit_2bpc.sv \
src/int/int_div_regfile.sv \
src/proc.sv \
src/core.sv \
src/mem_delayed_small.sv src/mem_delayed.sv \
src/comp.sv
2 changes: 1 addition & 1 deletion test/behav/verilator_compile_proc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ verilator -sv --cc src/op_const.sv src/assert.sv src/const.sv \
src/generated/mul_pipeline_cycle_24bit_2bpc.sv src/float/float_mul_pipeline.sv \
src/int/mul_pipeline_32bit.sv src/generated/mul_pipeline_cycle_32bit_2bpc.sv \
src/int/int_div_regfile.sv \
src/proc.sv
src/core.sv
3 changes: 2 additions & 1 deletion test/gls/comp_gls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ if [[ -f build/netlist/6.v ]]; then {
rm build/netlist/6.v
} fi

python verigpu/run_yosys.py --in-verilog src/assert_ignore.sv src/op_const.sv src/const.sv src/int/int_div_regfile.sv src/proc.sv \
python verigpu/run_yosys.py --in-verilog src/assert_ignore.sv \
src/op_const.sv src/const.sv src/int/int_div_regfile.sv src/core.sv \
src/float/float_params.sv src/float/float_add_pipeline.sv \
src/int/chunked_add_task.sv src/int/chunked_sub_task.sv \
src/mem_delayed_large.sv src/mem_delayed.sv src/comp.sv \
Expand Down
2 changes: 1 addition & 1 deletion test/gls/int_div_regfile_comp_test_gls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ iverilog -g2012 tech/osu018/osu018_stdcells.v build/netlist/6.v src/const.sv \
src/int/chunked_add_task.sv src/int/chunked_sub_task.sv \
src/generated/mul_pipeline_cycle_32bit_2bpc.sv src/int/mul_pipeline_32bit.sv \
src/float/float_params.sv src/float/float_add_pipeline.sv \
src/op_const.sv src/proc.sv src/mem_delayed.sv src/comp.sv src/comp_driver.sv
src/op_const.sv src/core.sv src/mem_delayed.sv src/comp.sv src/comp_driver.sv

./a.out
4 changes: 2 additions & 2 deletions test/gls/proc_gls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ python verigpu/run_yosys.py --in-verilog src/assert_ignore.sv src/op_const.sv sr
src/int/chunked_add_task.sv src/int/chunked_sub_task.sv \
src/generated/mul_pipeline_cycle_24bit_2bpc.sv src/float/float_mul_pipeline.sv \
src/generated/mul_pipeline_cycle_32bit_2bpc.sv src/int/mul_pipeline_32bit.sv \
src/int/int_div_regfile.sv src/proc.sv \
--top-module proc >/dev/null
src/int/int_div_regfile.sv src/core.sv \
--top-module core >/dev/null

for prog in ${progs}; do {
python verigpu/assembler.py --offset 128 --in-asm examples/direct/${prog}.asm --out-hex build/prog.hex
Expand Down
4 changes: 2 additions & 2 deletions test/gls/proc_gls_vtor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ python verigpu/run_yosys.py --in-verilog src/assert_ignore.sv src/op_const.sv sr
src/int/chunked_add_task.sv src/int/chunked_sub_task.sv \
src/generated/mul_pipeline_cycle_24bit_2bpc.sv src/float/float_mul_pipeline.sv \
src/generated/mul_pipeline_cycle_32bit_2bpc.sv src/int/mul_pipeline_32bit.sv \
src/int/int_div_regfile.sv src/proc.sv \
--top-module proc >/dev/null
src/int/int_div_regfile.sv src/core.sv \
--top-module core >/dev/null

for prog in ${progs}; do {
python verigpu/assembler.py --offset 128 --in-asm examples/direct/${prog}.asm --out-hex build/prog.hex
Expand Down

0 comments on commit 51b36b7

Please sign in to comment.