mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Added proper credit to Richard Davis, the author of the original sd card reader.
This commit is contained in:
parent
8b7cefab79
commit
545c586186
@ -27,16 +27,16 @@
|
|||||||
|
|
||||||
module hazard(
|
module hazard(
|
||||||
// Detect hazards
|
// Detect hazards
|
||||||
input logic BPPredWrongE, CSRWritePendingDEM, RetM, TrapM,
|
(* mark_debug = "true" *) input logic BPPredWrongE, CSRWritePendingDEM, RetM, TrapM,
|
||||||
input logic LoadStallD, StoreStallD, MulDivStallD, CSRRdStallD,
|
(* mark_debug = "true" *) input logic LoadStallD, StoreStallD, MulDivStallD, CSRRdStallD,
|
||||||
input logic LSUStall, ICacheStallF,
|
(* mark_debug = "true" *) input logic LSUStall, ICacheStallF,
|
||||||
input logic FPUStallD, FStallD,
|
(* mark_debug = "true" *) input logic FPUStallD, FStallD,
|
||||||
input logic DivBusyE,FDivBusyE,
|
(* mark_debug = "true" *) input logic DivBusyE,FDivBusyE,
|
||||||
input logic EcallFaultM, BreakpointFaultM,
|
(* mark_debug = "true" *) input logic EcallFaultM, BreakpointFaultM,
|
||||||
input logic InvalidateICacheM,
|
(* mark_debug = "true" *) input logic InvalidateICacheM,
|
||||||
// Stall & flush outputs
|
// Stall & flush outputs
|
||||||
output logic StallF, StallD, StallE, StallM, StallW,
|
(* mark_debug = "true" *) output logic StallF, StallD, StallE, StallM, StallW,
|
||||||
output logic FlushF, FlushD, FlushE, FlushM, FlushW
|
(* mark_debug = "true" *) output logic FlushF, FlushD, FlushE, FlushM, FlushW
|
||||||
);
|
);
|
||||||
|
|
||||||
logic StallFCause, StallDCause, StallECause, StallMCause, StallWCause;
|
logic StallFCause, StallDCause, StallECause, StallMCause, StallWCause;
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
// clock divider.sv
|
// clock divider.sv
|
||||||
//
|
//
|
||||||
// Written: Ross Thompson September 18, 2021
|
// Written: Richard Davis
|
||||||
// Modified:
|
// Modified: Ross Thompson September 18, 2021
|
||||||
|
// Converted to system verilog.
|
||||||
//
|
//
|
||||||
// Purpose: clock divider for sd flash
|
// Purpose: clock divider for sd flash
|
||||||
//
|
//
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
// counter.sv
|
// counter.sv
|
||||||
//
|
//
|
||||||
// Written: Ross Thompson
|
// Written: Richard Davis
|
||||||
// Modified:
|
// Modified: Ross Thompson
|
||||||
|
// Converted to system verilog.
|
||||||
//
|
//
|
||||||
// Purpose: basic up counter
|
// Purpose: basic up counter
|
||||||
//
|
//
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
// crc16 sipo np ce
|
// crc16 sipo np ce
|
||||||
//
|
//
|
||||||
// Written: Ross Thompson September 18, 2021
|
// Written: Richard Davis
|
||||||
// Modified:
|
// Modified: Ross Thompson September 18, 2021
|
||||||
|
// Converted to system verilog.
|
||||||
//
|
//
|
||||||
// Purpose: CRC16 generator SIPO using register_ce
|
// Purpose: CRC16 generator SIPO using register_ce
|
||||||
// w/o appending any zero-bits to the message
|
// w/o appending any zero-bits to the message
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
// crc7 sipo np ce
|
// crc7 sipo np ce
|
||||||
//
|
//
|
||||||
// Written: Ross Thompson September 18, 2021
|
// Written: Richard Davis
|
||||||
// Modified:
|
// Modified: Ross Thompson September 18, 2021
|
||||||
|
// Converted to system verilog.
|
||||||
//
|
//
|
||||||
// Purpose: takes 40 bits of input, generates 7 bit CRC after a single
|
// Purpose: takes 40 bits of input, generates 7 bit CRC after a single
|
||||||
// clock cycle!
|
// clock cycle!
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
// crc16 sipo np ce
|
// crc16 sipo np ce
|
||||||
//
|
//
|
||||||
// Written: Ross Thompson September 18, 2021
|
// Written: Richard Davis
|
||||||
// Modified:
|
// Modified: Ross Thompson September 18, 2021
|
||||||
//
|
//
|
||||||
// Purpose: CRC7 generator SIPO using register_ce
|
// Purpose: CRC7 generator SIPO using register_ce
|
||||||
// w/o appending any zero-bits othe message
|
// w/o appending any zero-bits othe message
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
// piso generic ce
|
// piso generic ce
|
||||||
//
|
//
|
||||||
// Written: Ross Thompson September 18, 2021
|
// Written: Richard Davis
|
||||||
// Modified:
|
// Modified: Ross Thompson September 18, 2021
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// A component of the Wally configurable RISC-V project.
|
// A component of the Wally configurable RISC-V project.
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
// sd_clk_fsm.sv
|
// sd_clk_fsm.sv
|
||||||
//
|
//
|
||||||
// Written: Ross Thompson September 19, 2021
|
// Written: Richard Davis
|
||||||
// Modified:
|
// Modified: Ross Thompson September 19, 2021
|
||||||
//
|
//
|
||||||
// Purpose: Controls clock dividers.
|
// Purpose: Controls clock dividers.
|
||||||
// Replaces s_disable_sd_clocks, s_select_hs_clk, s_enable_hs_clk
|
// Replaces s_disable_sd_clocks, s_select_hs_clk, s_enable_hs_clk
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
// sd_clk_fsm.sv
|
// sd_clk_fsm.sv
|
||||||
//
|
//
|
||||||
// Written: Ross Thompson September 19, 2021
|
// Written: Richard Davis
|
||||||
// Modified:
|
// Modified: Ross Thompson September 19, 2021
|
||||||
//
|
//
|
||||||
// Purpose: Finite state machine for the SD CMD bus
|
// Purpose: Finite state machine for the SD CMD bus
|
||||||
//
|
//
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
// sd_dat_fsm.sv
|
// sd_dat_fsm.sv
|
||||||
//
|
//
|
||||||
// Written: Ross Thompson September 19, 2021
|
// Written: Richard Davis
|
||||||
// Modified:
|
// Modified: Ross Thompson September 19, 2021
|
||||||
//
|
//
|
||||||
// Purpose: Runs in parallel with sd_cmd_fsm to control activity on the DAT
|
// Purpose: Runs in parallel with sd_cmd_fsm to control activity on the DAT
|
||||||
// bus of the SD card.
|
// bus of the SD card.
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
// sd_top.sv
|
// sd_top.sv
|
||||||
//
|
//
|
||||||
// Written: Ross Thompson September 19, 2021
|
// Written: Richard Davis
|
||||||
// Modified:
|
// Modified: Ross Thompson September 19, 2021
|
||||||
//
|
//
|
||||||
// Purpose: SD card controller
|
// Purpose: SD card controller
|
||||||
//
|
//
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
// sipo_generic_ce
|
// sipo_generic_ce
|
||||||
//
|
//
|
||||||
// Written: Ross Thompson September 20, 2021
|
// Written: Richard Davis
|
||||||
// Modified:
|
// Modified: Ross Thompson September 20, 2021
|
||||||
//
|
//
|
||||||
// Purpose: serial to n-bit parallel shift register using register_ce.
|
// Purpose: serial to n-bit parallel shift register using register_ce.
|
||||||
// When given a n-bit word as input transmit the message serially MSB (leftmost)
|
// When given a n-bit word as input transmit the message serially MSB (leftmost)
|
||||||
|
Loading…
Reference in New Issue
Block a user