mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
minor comments
This commit is contained in:
parent
5ba6e4da0f
commit
cb37beaccd
@ -72,7 +72,7 @@ module dm import cvw::*; #(parameter cvw_t P) (
|
||||
// JTAG ID for Wally:
|
||||
// [31:27] = 1 (4 bits)
|
||||
// ver [27:12] = 0x2A (42)
|
||||
// JEDEC number [11:1] = 0x002 (Open HW Group)
|
||||
// JEDEC number [11:1] = 000_0000_0010 (Open HW Group)
|
||||
// [0] set to 1
|
||||
localparam JTAG_DEVICE_ID = 32'h1002_A005;
|
||||
|
||||
@ -162,10 +162,10 @@ module dm import cvw::*; #(parameter cvw_t P) (
|
||||
logic [2:0] CmdErr;
|
||||
const logic [3:0] DataCount = (P.LLEN/32);
|
||||
|
||||
// Pack registers
|
||||
assign DMControl = {2'b0, 1'b0, 2'b0, 1'b0, 10'b0,
|
||||
10'b0, 4'b0, NdmReset, DmActive};
|
||||
// See spec 3.14.2
|
||||
assign DMControl = {2'b0, 1'b0, 2'b0, 1'b0, 10'b0, 10'b0, 4'b0, NdmReset, DmActive};
|
||||
|
||||
// See spec 3.14.1
|
||||
assign DMStatus = {7'b0, 1'b0, StickyUnavail, ImpEBreak, 2'b0,
|
||||
AllHaveReset, AnyHaveReset, AllResumeAck, AnyResumeAck, AllNonExistent,
|
||||
AnyNonExistent, AllUnavail, AnyUnavail, AllRunning, AnyRunning, AllHalted,
|
||||
|
@ -29,14 +29,14 @@
|
||||
|
||||
module hartcontrol(
|
||||
input logic clk, rst,
|
||||
input logic NdmReset, // Triggers HaltOnReset behavior
|
||||
input logic NdmReset, // Triggers HaltOnReset behavior
|
||||
input logic AckHaveReset, // Clears *HaveReset status
|
||||
|
||||
input logic HaltReq, // Initiate core halt
|
||||
input logic ResumeReq, // Initiates core resume
|
||||
input logic HaltOnReset, // Halts core immediately on hart reset
|
||||
input logic HaltReq, // Initiate core halt
|
||||
input logic ResumeReq, // Initiates core resume
|
||||
input logic HaltOnReset, // Halts core immediately on hart reset
|
||||
|
||||
output logic DebugStall, // Stall signal goes to hazard unit
|
||||
output logic DebugStall, // Stall signal goes to hazard unit
|
||||
|
||||
// DMStatus bits
|
||||
output logic Halted,
|
||||
|
Loading…
Reference in New Issue
Block a user