Skip to content

Commit

Permalink
rv: Return to posedge for the memory
Browse files Browse the repository at this point in the history
  • Loading branch information
cpitclaudel committed Mar 31, 2020
1 parent c2f78db commit df8bb7f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/rv/RVCore.v
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ Module RV32ICore.
Definition T:= struct_t fetch_bookkeeping.
End FifoFetch.
Module fromFetch := Fifo1 FifoFetch.
Module waitFromFetch := Fifo1Bypass FifoFetch.
Module waitFromFetch := Fifo1 FifoFetch.

Module FifoDecode <: Fifo.
Definition T:= struct_t decode_bookkeeping.
Expand Down
2 changes: 1 addition & 1 deletion examples/rv/etc/sv/memory.v
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ module memory(input CLK,
wire put_wf = put_valid && put_ready;
wire get_wf = get_valid && get_ready;

always @(negedge CLK) begin
always @(posedge CLK) begin
`ifdef SIMULATION
if (put_wf && put_request_addr == EXIT_ADDRESS) begin
if (put_request_data == 0)
Expand Down
2 changes: 1 addition & 1 deletion examples/rv/rv32.v
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Require Import RV.RVCore.
Import RV32ICore.

Definition rv_schedule : scheduler :=
Writeback |> Execute |> StepMultiplier |> WaitImem |> Decode |> Fetch |> Imem |> Dmem |> UART_write |> Tick |> done.
Writeback |> Execute |> StepMultiplier |> Decode |> WaitImem |> Fetch |> Imem |> Dmem |> UART_write |> Tick |> done.

Definition circuits :=
compile_scheduler rv_rules rv_external rv_schedule.
Expand Down

0 comments on commit df8bb7f

Please sign in to comment.