Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrolarus committed Mar 7, 2024
1 parent 3bd03de commit 9c4ad84
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 206 deletions.
2 changes: 0 additions & 2 deletions clash-vexriscv/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ clean:
$(CPU_DIR)/VexRiscv.v: $(CPU_DIR)/src/main/scala/example/ExampleCpu.scala
cd $(CPU_DIR); sbt "runMain example.ExampleCpu"
cd $(CPU_DIR); sed -i -E '/\/\/ Git hash :.*$$/d' VexRiscv.v
# cd $(CPU_DIR); sed -i 's/module VexRiscv/module VexRiscvInner/g' VexRiscv.v
# cd $(CPU_DIR); cat ../example-cpu/VexRiscvWrapped.v >> VexRiscv.v

$(OUT_DIR)/VexRiscv.v: $(CPU_DIR)/VexRiscv.v
mkdir -p $(OUT_DIR)
Expand Down
186 changes: 0 additions & 186 deletions clash-vexriscv/src/VexRiscv/JtagTcpBridgeHaskell.hs

This file was deleted.

18 changes: 0 additions & 18 deletions clash-vexriscv/src/ffi/impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ typedef struct {
int32_t rx_buffer_size;
int32_t rx_buffer_remaining;
JTAG_INPUT prev_input;

uint64_t tck_change_counter;
} vexr_jtag_bridge_data;

extern "C" {
Expand Down Expand Up @@ -172,8 +170,6 @@ vexr_jtag_bridge_data *vexr_jtag_bridge_init(uint16_t port)

d->prev_input = { 0, 0, 0 };

d->tck_change_counter = 0;

d->timer = 0;
d->self_sleep = 0;
d->check_new_connections_timer = 0;
Expand Down Expand Up @@ -214,7 +210,6 @@ vexr_jtag_bridge_data *vexr_jtag_bridge_init(uint16_t port)

void vexr_jtag_bridge_step(vexr_jtag_bridge_data *d, const JTAG_OUTPUT *output, JTAG_INPUT *input)
{
const int WAIT_PERIOD = 83333;
// We set the input values to their last here
// so that only the "successful" path has to update them

Expand Down Expand Up @@ -273,19 +268,6 @@ void vexr_jtag_bridge_step(vexr_jtag_bridge_data *d, const JTAG_OUTPUT *output,
input->tdi = (buffer & 2) != 0;
input->tck = (buffer & 8) != 0;

// printf("\n[JTAG_BRIDGE] ");
// printf("%d %d %d %d\n",
// d->tck_change_counter,
// input->jtag_TCK,
// input->jtag_TMS,
// input->jtag_TDI
// );

if (input->tck != d->prev_input.tck) {
d->tck_change_counter++;
}



d->prev_input = *input;
if(buffer & 4){
Expand Down

0 comments on commit 9c4ad84

Please sign in to comment.